php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64234 PHP segfaults on startup
Submitted: 2013-02-18 10:11 UTC Modified: 2013-02-18 10:17 UTC
From: marco at m-s-d dot eu Assigned:
Status: Closed Package: *General Issues
PHP Version: master-Git-2013-02-18 (Git) OS: Linux 3.0.0-1-amd64 #1 SMP
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marco at m-s-d dot eu
New email:
PHP Version: OS:

 

 [2013-02-18 10:11 UTC] 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]




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-02-18 10:17 UTC] marco at m-s-d dot eu
-Status: Open +Status: Closed
 [2013-02-18 10:17 UTC] marco at m-s-d dot eu
Build directory wasn't cleaned.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 00:01:33 2024 UTC