Edit report at http://bugs.php.net/bug.php?id=51216&edit=1

 ID:                 51216
 Comment by:         david at universe dot sonoma dot edu
 Reported by:        dtm2mcs at gmail dot com
 Summary:            Segmentation fault when compiling PHP with PHAR
 Status:             Bogus
 Type:               Bug
 Package:            PHAR related
 Operating System:   Ubuntu 6.04 + CentOS 5.4
 PHP Version:        5.3.2
 Block user comment: N
 Private report:     N

 New Comment:

and if I disable-phar:



Build complete.

Don't forget to run 'make test'.





Build complete.

Don't forget to run 'make test'.



/bin/sh: line 19: 22851 Segmentation fault     
TEST_PHP_EXECUTABLE=/usr/local/src/php-5.3.5/sapi/cli/php
TEST_PHP_SRCDIR=/usr/local/src/php-5.3.5 CC="gcc"
/usr/local/src/php-5.3.5/sapi/cli/php -n -c /

usr/local/src/php-5.3.5/tmp-php.ini -d 'open_basedir=' -d
'output_buffering=0' -d 'memory_limit=-1'
/usr/local/src/php-5.3.5/run-tests.php -n -c
/usr/local/src/php-5.3.5/tmp-php.ini -d extension_dir=/u

sr/local/src/php-5.3.5/modules/ ` if test "x" != "x"; then for i in "";
do . $i; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d
extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""

; do . $i; /usr/local/src/php-5.3.5/build/shtool echo -n -- " -d
zend_extension=/usr/local/src/php-5.3.5/modules/$dlname"; done; fi`

PATH="$PATH:/sbin" ldconfig -n /usr/local/src/php-5.3.5/libs


Previous Comments:
------------------------------------------------------------------------
[2011-03-24 21:05:32] david at universe dot sonoma dot edu

I have a working php 5.3.5 and all I'm trying to add is gd stuff:



Generating phar.php

/bin/sh: line 1: 17327 Segmentation fault



./configure \

        --with-mysql=/usr/bin\ \

        --with-mysql-sock=/var/lib/mysql/mysql.sock \

        --with-mysqli=mysqlnd \

        --with-apxs2=/usr/local/apache2/bin/apxs \

        --with-openssl-dir=/usr/local/ssl \

        --with-libxml-dir=/usr/lib64 \

        --disable-cgi \

        --with-zlib-dir=/usr/local/lib \

        --with-imap=/usr/local/imap-2007e \

        --with-imap-ssl \

        --with-mcrypt=/usr/lib \

        --enable-zip \

        --with-gettext \

        --enable-mbstring \

        --with-curl=/usr/bin/curl \

        --enable-sockets \

        --with-jpeg-dir=/usr/lib64 \

        --with-png-dir=/usr/lib64 \

        --with-gd

------------------------------------------------------------------------
[2010-07-24 17:31:03] sneakyimp at hotmail dot com

I can also confirm this problem on Mac OSX 10.5.8 with php source for
5.3.2.



I'm compiling with --enable-maintainer-zts because I want to work on a
php extension.



Generating phar.php

/bin/sh: line 1: 61359 Segmentation fault      ` if test -x
"/Users/christopherwalsh/src/php-5.3.2/sapi/cli/php"; then
/Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n --
"/Users/christopherwalsh/src/php-5.3.2/sapi/cli/php -n"; if test "x" !=
"x"; then /Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n --
" -d extension_dir=/Users/christopherwalsh/src/php-5.3.2/modules"; for i
in bz2 zlib phar; do if test -f
"/Users/christopherwalsh/src/php-5.3.2/modules/$i.la"; then .
/Users/christopherwalsh/src/php-5.3.2/modules/$i.la;
/Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n -- " -d
extension=$dlname"; fi; done; fi; else
/Users/christopherwalsh/src/php-5.3.2/build/shtool echo -n --
"/Users/christopherwalsh/src/php-5.3.2/sapi/cli/php"; fi;` -d
'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' -d
phar.readonly=0 -d 'safe_mode=0'
/Users/christopherwalsh/src/php-5.3.2/ext/phar/build_precommand.php >
ext/phar/phar.php

make: *** [ext/phar/phar.php] Error 139

------------------------------------------------------------------------
[2010-07-14 20:08:40] srina...@php.net

closing it as not reproducible with latest release (5.3.3)

------------------------------------------------------------------------
[2010-07-14 04:51:15] ywliu at hotmail dot com

Just tried 5.3.3RC2. This problem on the latest CentOS 5.5 is gone.

------------------------------------------------------------------------
[2010-07-13 23:01:20] srina...@php.net

please see if this issue can be reproduced with php 5.3.3 (RC2)-
http://qa.php.net/ 



and if yes, please provide us a stack trace as mentioned here. 

http://bugs.php.net/bugs-generating-backtrace.php

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=51216


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51216&edit=1

Reply via email to