From:             marco at m-s-d dot eu
Operating system: Linux 3.0.0-1-amd64 #1 SMP
PHP version:      master-Git-2013-02-18 (Git)
Package:          *General Issues
Bug Type:         Bug
Bug description:PHP segfaults on startup

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 bug report at https://bugs.php.net/bug.php?id=64234&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64234&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64234&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64234&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64234&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64234&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64234&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64234&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64234&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64234&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64234&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64234&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64234&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64234&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64234&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64234&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64234&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64234&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64234&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64234&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64234&r=mysqlcfg

Reply via email to