Bug #51216 [Com]: Segmentation fault when compiling PHP with PHAR
Edit report at http://bugs.php.net/bug.php?id=51216&edit=1 ID: 51216 Comment by: holderm at lycos dot com Reported by: dtm2mcs at gmail dot com Summary: Segmentation fault when compiling PHP with PHAR Status: Open Type: Bug Package: PHAR related Operating System: Ubuntu 6.04 + CentOS 5.4 PHP Version: 5.3.2 New Comment: It looks like it's more than a phar problem. I can build it rith phar disabled but it still won't run anything other than the --version option. Build complete. Don't forget to run 'make test'. /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > make test Build complete. Don't forget to run 'make test'. Segmentation Fault - core dumped make: [test] Error 139 (ignored) /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ll ./sapi/cli/php -rwxr-xr-x 1 lmpjob lmpjob 18524408 Apr 9 16:25 ./sapi/cli/php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ./sapi/cli/php --version PHP 5.3.2 (cli) (built: Apr 8 2010 18:07:52) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies Previous Comments: -------------------- [2010-04-09 22:21:18] holderm at lycos dot com I've got a workaround. The problem seems to be that the build_precommand.php script cannot run on systems that do not have a working version of php. I think the Makefile is doing this for me already but just to be sure I tried changing the shebang from #!/usr/bin/php to my local #!/app/psoft/devl/packages/php/php-5.3.2/sapi/cli/php (based on what I thought the Makefile was doing). I kept running it from the command line and getting things like this (I was adding my own debugging info on lines that begin with // ): /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > ./build_precommand.php which php /app/psoft/devl/bin/php /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > /app/psoft/devl/bin/php --version PHP 5.0.2 (cli) (built: Oct 21 2004 17:00:20) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > ./build_precommand.php ./build_precommand.php ll ext/phar/phar.php -rw-r--r-- 1 lmpjob lmpjob 351 Apr 7 16:10 ext/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ll ext/phar/phar/phar.php -rwxr-xr-x 1 lmpjob lmpjob 992 Aug 1 2008 ext/phar/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat ext/phar/phar.php ext/phar/phar.php My configure options were: /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat config.nice #! /bin/sh # # Created by configure './configure' \ '--prefix=/app/psoft/scripts/pkg/php5' \ '--enable-cli' \ '--disable-cgi' \ '--with-bz2' \ '--with-zlib' \ '--with-png-dir=/app/psoft/scripts/pkg/png-1.4.1' \ '--with-gd' \ '--with-oci8=/app/oracle/product/10.2.0' \ "$@" [2010-03-30 17:39:38] tony at tonybibbs dot com Same issue on 32bit Ubuntu 9.10 [2010-03-26 00:16:11] mm_half3 at yahoo dot com For what it is worth, I had the same issue on Solaris 10 sparc, compiling with gcc-4.3.1, and php-5.32 (tried with stable release and latest development src). Further research found other solaris types getting segmentation faults during php 5.2.xx make test, see http://bugs.php.net/bug.php?id=47824&edit=1 . Which I also could reproduce. Setting CFLAGS=-O1, got php5.32 to compile and make test successfully with phar, and 5.2.xx to compile without fatal errors. The seg fault is probably not a php issue, but something in the gcc version. The make test looks like all the tests run, but there is an issue when the Test Summary is done for both: WARNED TEST SUMMARY - via [ext/pdo_sqlite/tests/common.phpt] SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes) via [ext/sqlite/tests/pdo/common.phpt] SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes) = You may have found a problem in PHP. We would like to send this report automatically to the PHP QA team, to give us a better understanding of how the test cases are doing. If you don
Bug #51216 [Com]: Segmentation fault when compiling PHP with PHAR
Edit report at http://bugs.php.net/bug.php?id=51216&edit=1 ID: 51216 Comment by: holderm at lycos dot com Reported by: dtm2mcs at gmail dot com Summary: Segmentation fault when compiling PHP with PHAR Status: Open Type: Bug Package: PHAR related Operating System: Ubuntu 6.04 + CentOS 5.4 PHP Version: 5.3.2 New Comment: I've got a workaround. The problem seems to be that the build_precommand.php script cannot run on systems that do not have a working version of php. I think the Makefile is doing this for me already but just to be sure I tried changing the shebang from #!/usr/bin/php to my local #!/app/psoft/devl/packages/php/php-5.3.2/sapi/cli/php (based on what I thought the Makefile was doing). I kept running it from the command line and getting things like this (I was adding my own debugging info on lines that begin with // ): /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > ./build_precommand.php which php /app/psoft/devl/bin/php /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > /app/psoft/devl/bin/php --version PHP 5.0.2 (cli) (built: Oct 21 2004 17:00:20) Copyright (c) 1997-2004 The PHP Group Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > ./build_precommand.php ./build_precommand.php ll ext/phar/phar.php -rw-r--r-- 1 lmpjob lmpjob 351 Apr 7 16:10 ext/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ll ext/phar/phar/phar.php -rwxr-xr-x 1 lmpjob lmpjob 992 Aug 1 2008 ext/phar/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat ext/phar/phar.php ext/phar/phar.php My configure options were: /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat config.nice #! /bin/sh # # Created by configure './configure' \ '--prefix=/app/psoft/scripts/pkg/php5' \ '--enable-cli' \ '--disable-cgi' \ '--with-bz2' \ '--with-zlib' \ '--with-png-dir=/app/psoft/scripts/pkg/png-1.4.1' \ '--with-gd' \ '--with-oci8=/app/oracle/product/10.2.0' \ "$@" [2010-03-30 17:39:38] tony at tonybibbs dot com Same issue on 32bit Ubuntu 9.10 [2010-03-26 00:16:11] mm_half3 at yahoo dot com For what it is worth, I had the same issue on Solaris 10 sparc, compiling with gcc-4.3.1, and php-5.32 (tried with stable release and latest development src). Further research found other solaris types getting segmentation faults during php 5.2.xx make test, see http://bugs.php.net/bug.php?id=47824&edit=1 . Which I also could reproduce. Setting CFLAGS=-O1, got php5.32 to compile and make test successfully with phar, and 5.2.xx to compile without fatal errors. The seg fault is probably not a php issue, but something in the gcc version. The make test looks like all the tests run, but there is an issue when the Test Summary is done for both: WARNED TEST SUMMARY - via [ext/pdo_sqlite/tests/common.phpt] SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes) via [ext/sqlite/tests/pdo/common.phpt] SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes) = You may have found a problem in PHP. We would like to send this report automatically to the PHP QA team, to give us a better understanding of how the test cases are doing. If you don't want to send it immediately, you can choose "s" to save the report to a file that you can send us later. Do you want to send this report now? [Yns]: s Please send /tmp/php-5.3.2/php_test_results_20100325_2040.txt to qa-repo...@lists.php.net manually, thank you. [2010-03-24 17:51:27] paul at boxuk dot com i can also reproduce this, i believe it's something to do with the fix for bug #50829 amended that bug with the details 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
Bug #51216 [Com]: Segmentation fault when compiling PHP with PHAR
Edit report at http://bugs.php.net/bug.php?id=51216&edit=1 ID: 51216 Comment by: holderm at lycos dot com Reported by: dtm2mcs at gmail dot com Summary: Segmentation fault when compiling PHP with PHAR Status: Open Type: Bug Package: PHAR related Operating System: Ubuntu 6.04 + CentOS 5.4 PHP Version: 5.3.2 New Comment: The problem is in build_precommand.php. When I run it it gets to the open curly brace and churns for a couple seconds, then it Seg faults. I'm not sure how to fix it but will try changing it. /app/psoft/devl/packages/php/php-5.3.2/ext/phar/ hdlmpdu4/blk10.1/dev > ./build_precommand.php ll ext/phar/phar.php -rw-r--r-- 1 lmpjob lmpjob 351 Apr 7 16:10 ext/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ll ext/phar/phar/phar.php -rwxr-xr-x 1 lmpjob lmpjob 992 Aug 1 2008 ext/phar/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat ext/phar/phar.php ext/phar/phar.php My configure options were: /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat config.nice #! /bin/sh # # Created by configure './configure' \ '--prefix=/app/psoft/scripts/pkg/php5' \ '--enable-cli' \ '--disable-cgi' \ '--with-bz2' \ '--with-zlib' \ '--with-png-dir=/app/psoft/scripts/pkg/png-1.4.1' \ '--with-gd' \ '--with-oci8=/app/oracle/product/10.2.0' \ "$@" [2010-03-30 17:39:38] tony at tonybibbs dot com Same issue on 32bit Ubuntu 9.10 [2010-03-26 00:16:11] mm_half3 at yahoo dot com For what it is worth, I had the same issue on Solaris 10 sparc, compiling with gcc-4.3.1, and php-5.32 (tried with stable release and latest development src). Further research found other solaris types getting segmentation faults during php 5.2.xx make test, see http://bugs.php.net/bug.php?id=47824&edit=1 . Which I also could reproduce. Setting CFLAGS=-O1, got php5.32 to compile and make test successfully with phar, and 5.2.xx to compile without fatal errors. The seg fault is probably not a php issue, but something in the gcc version. The make test looks like all the tests run, but there is an issue when the Test Summary is done for both: WARNED TEST SUMMARY - via [ext/pdo_sqlite/tests/common.phpt] SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes) via [ext/sqlite/tests/pdo/common.phpt] SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes) = You may have found a problem in PHP. We would like to send this report automatically to the PHP QA team, to give us a better understanding of how the test cases are doing. If you don't want to send it immediately, you can choose "s" to save the report to a file that you can send us later. Do you want to send this report now? [Yns]: s Please send /tmp/php-5.3.2/php_test_results_20100325_2040.txt to qa-repo...@lists.php.net manually, thank you. [2010-03-24 17:51:27] paul at boxuk dot com i can also reproduce this, i believe it's something to do with the fix for bug #50829 amended that bug with the details [2010-03-22 11:32:02] creatorbri at gmail dot com I have the same problem when attempting to compile PHP 5.3.2. Details: PHP Version: PHP 5.3.2 - I downloaded the "stable" release dated "04 Mar 2010" directly from one of the usual php.net mirrors Platform: Ubuntu 9.10 Karmic Koala x64 [Asus G60Jx-RBBx05 - Core i5-430 2.26 GHz 4.0 GB RAM] Configure Options: ./configure --prefix=PREFIX --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr -- with-mysqli=/usr/bin/mysql_config --with-pgsql=/usr --with-tidy=/usr --with- curl=/usr/bin --with-curlwrappers --with-openssl-dir=/usr --with-zlib-dir=/usr - -enable-mbstring --with-xpm-dir=/usr --with-pdo-pgsql=/usr --with-pdo-mysql=/usr --with-xsl=/usr --with-ldap --with-xmlrpc --with-iconv-dir=/usr --with-snmp=/usr --enable-exif --enable-calendar --with-bz2=/usr --with-mcrypt=/usr --with-gd -- with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype- dir=/usr --enable-mbstring --enable-zip --with-pear ERROR: ext/sqlite3/libsqlite/.libs/sqlite3.o: In function `memset': /usr/include/bits/string3.h:82: warning: memse
Bug #51216 [Com]: Segmentation fault when compiling PHP with PHAR
Edit report at http://bugs.php.net/bug.php?id=51216&edit=1 ID: 51216 Comment by: holderm at lycos dot com Reported by: dtm2mcs at gmail dot com Summary: Segmentation fault when compiling PHP with PHAR Status: Open Type: Bug Package: PHAR related Operating System: Ubuntu 6.04 + CentOS 5.4 PHP Version: 5.3.2 New Comment: I'm getting the same thing with Solaris 10 and gcc 4.4.3. It seems the Makefile is not generating a full ext/phar/phar.php (when compared to ext/phar/phar/phar.php). The code ends with an open curly brace: Generating phar.php Segmentation Fault - core dumped make: *** [ext/phar/phar.php] Error 139 /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ll ext/phar/phar.php -rw-r--r-- 1 lmpjob lmpjob 351 Apr 7 16:10 ext/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > ll ext/phar/phar/phar.php -rwxr-xr-x 1 lmpjob lmpjob 992 Aug 1 2008 ext/phar/phar/phar.php /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat ext/phar/phar.php ext/phar/phar.php My configure options were: /app/psoft/devl/packages/php/php-5.3.2/ hdlmpdu4/blk10.1/dev > cat config.nice #! /bin/sh # # Created by configure './configure' \ '--prefix=/app/psoft/scripts/pkg/php5' \ '--enable-cli' \ '--disable-cgi' \ '--with-bz2' \ '--with-zlib' \ '--with-png-dir=/app/psoft/scripts/pkg/png-1.4.1' \ '--with-gd' \ '--with-oci8=/app/oracle/product/10.2.0' \ "$@" Previous Comments: [2010-03-30 17:39:38] tony at tonybibbs dot com Same issue on 32bit Ubuntu 9.10 [2010-03-26 00:16:11] mm_half3 at yahoo dot com For what it is worth, I had the same issue on Solaris 10 sparc, compiling with gcc-4.3.1, and php-5.32 (tried with stable release and latest development src). Further research found other solaris types getting segmentation faults during php 5.2.xx make test, see http://bugs.php.net/bug.php?id=47824&edit=1 . Which I also could reproduce. Setting CFLAGS=-O1, got php5.32 to compile and make test successfully with phar, and 5.2.xx to compile without fatal errors. The seg fault is probably not a php issue, but something in the gcc version. The make test looks like all the tests run, but there is an issue when the Test Summary is done for both: WARNED TEST SUMMARY - via [ext/pdo_sqlite/tests/common.phpt] SQLite PDO Common: Bug #34630 (inserting streams as LOBs) [ext/pdo_sqlite/tests/bug_34630.phpt] (warn: XFAIL section but test passes) via [ext/sqlite/tests/pdo/common.phpt] SQLite2 PDO Common: Bug #34630 (inserting streams as LOBs) [ext/sqlite/tests/pdo/bug_34630.phpt] (warn: XFAIL section but test passes) = You may have found a problem in PHP. We would like to send this report automatically to the PHP QA team, to give us a better understanding of how the test cases are doing. If you don't want to send it immediately, you can choose "s" to save the report to a file that you can send us later. Do you want to send this report now? [Yns]: s Please send /tmp/php-5.3.2/php_test_results_20100325_2040.txt to qa-repo...@lists.php.net manually, thank you. [2010-03-24 17:51:27] paul at boxuk dot com i can also reproduce this, i believe it's something to do with the fix for bug #50829 amended that bug with the details [2010-03-22 11:32:02] creatorbri at gmail dot com I have the same problem when attempting to compile PHP 5.3.2. Details: PHP Version: PHP 5.3.2 - I downloaded the "stable" release dated "04 Mar 2010" directly from one of the usual php.net mirrors Platform: Ubuntu 9.10 Karmic Koala x64 [Asus G60Jx-RBBx05 - Core i5-430 2.26 GHz 4.0 GB RAM] Configure Options: ./configure --prefix=PREFIX --with-apxs2=/usr/bin/apxs2 --with-mysql=/usr -- with-mysqli=/usr/bin/mysql_config --with-pgsql=/usr --with-tidy=/usr --with- curl=/usr/bin --with-curlwrappers --with-openssl-dir=/usr --with-zlib-dir=/usr - -enable-mbstring --with-xpm-dir=/usr --with-pdo-pgsql=/usr --with-pdo-mysql=/usr --with-xsl=/usr --with-ldap --with-xmlrpc --with-iconv-dir=/usr --with-snmp=/usr --enable-exif --enable-calendar --with-bz2=/usr --with-mcrypt=/usr --with-gd -- with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-freetype- dir=/usr --enable-mbstring --enable-zip --with-pear ERROR: ext/sqlite3/libsqlit