Edit report at https://bugs.php.net/bug.php?id=64234&edit=1
ID: 64234
User updated by: marco at m-s-d dot eu
Reported by: marco at m-s-d dot eu
Summary: PHP segfaults on startup
-Status: Open
+Status: Closed
Type: Bug
Package: *General Issues
Operating System: Linux 3.0.0-1-amd64 #1 SMP
PHP Version: master-Git-2013-02-18 (Git)
Block user comment: N
Private report: N
New Comment:
Build directory wasn't cleaned.
Previous Comments:
------------------------------------------------------------------------
[2013-02-18 10:11:50] marco at m-s-d dot eu
Description:
------------
Using commit 427de31aa690156be9abed1139b8ba8f186c4dd8, any attempt to run a PHP
script fails with a segfault.
Using php -r "echo 'hello world';", I get a segfault:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000597dd6 in php_auto_globals_create_request (name=0x7ffff7e956e0
"_REQUEST", name_len=8) at /php-src/main/php_variables.c:800
800 for (; p && *p; p++) {
(gdb) bt
#0 0x0000000000597dd6 in php_auto_globals_create_request (name=0x7ffff7e956e0
"_REQUEST", name_len=8) at /php-src/main/php_variables.c:800
#1 0x00000000005f4d77 in zend_auto_global_init (auto_global=0xaf4070) at /php-
src/Zend/zend_compile.c:6740
#2 0x0000000000620db5 in zend_hash_apply (ht=0xaf0c60, apply_func=0x5f4d2b
<zend_auto_global_init>) at /php-src/Zend/zend_hash.c:716
#3 0x00000000005f4da7 in zend_activate_auto_globals () at /php-
src/Zend/zend_compile.c:6750
#4 0x00000000005972d5 in php_hash_environment () at /php-
src/main/php_variables.c:625
#5 0x0000000000584668 in php_request_startup () at /php-src/main/main.c:1587
#6 0x0000000000769b29 in do_cli (argc=3, argv=0x7fffffffe1b8) at /php-
src/sapi/cli/php_cli.c:959
#7 0x000000000076ac4d in main (argc=3, argv=0x7fffffffe1b8) at /php-
src/sapi/cli/php_cli.c:1364
php-config output is:
Options:
--prefix [/php-inst]
--includes [-I/php-inst/include/php -I/php-inst/include/php/main -
I/php-inst/include/php/TSRM -I/php-inst/include/php/Zend -I/php-
inst/include/php/ext -I/php-inst/include/php/ext/date/lib]
--ldflags []
--libs [-lcrypt -lresolv -lcrypt -lrt -lm -ldl -lnsl -lcrypt -
lcrypt ]
--extension-dir [/php-inst/lib/php/extensions/debug-non-zts-20121212]
--include-dir [/php-inst/include/php]
--man-dir [/php-inst/php/man]
--php-binary [/php-inst/bin/php]
--php-sapis [ cli cgi]
--configure-options [--disable-all --enable-cli --enable-debug --prefix=/php-
inst/]
--version [5.6.0-dev]
--vernum [50600]
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64234&edit=1