From: Operating system: Linux PHP version: 5.4SVN-2011-07-06 (SVN) Package: Reproducible crash Bug Type: Bug Bug description:php -a segfaults
Description: ------------ Running the following under interactive php shell segfaults :] <?php header("foobar: baz"); flush(); ?> Test script: --------------- bjori@mini:~/Work/php/5.4$ gdb ./sapi/cli/php GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 [..] Reading symbols from /home/bjori/Work/src/php/php/php-src/branches/PHP_5_4/sapi/cli/php...done. (gdb) run -a Starting program: /home/bjori/Work/src/php/php/php-src/branches/PHP_5_4/sapi/cli/php -a [Thread debugging using libthread_db enabled] Interactive mode enabled <?php header("foobar: baz"); flush(); Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. 0x000000000072e088 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7f910e8) at /home/bjori/Work/php/5.4/Zend/zend_vm_execute.h:580 580 if (UNEXPECTED((fbc->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) != 0)) { (gdb) bt #0 0x000000000072e088 in zend_do_fcall_common_helper_SPEC (execute_data=0x7ffff7f910e8) at /home/bjori/Work/php/5.4/Zend/zend_vm_execute.h:580 #1 0x0000000000735921 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x7ffff7f910e8) at /home/bjori/Work/php/5.4/Zend/zend_vm_execute.h:2209 #2 0x000000000072d1eb in execute (op_array=0x7ffff7fc84f0) at /home/bjori/Work/php/5.4/Zend/zend_vm_execute.h:410 #3 0x00000000006df3b9 in execute_new_code () at /home/bjori/Work/php/5.4/Zend/zend_execute_API.c:1314 #4 0x0000000000699b7e in zendparse () at /home/bjori/Work/php/5.4/Zend/zend_language_parser.y:161 #5 0x00000000006a0cbe in compile_file (file_handle=0x7fffffffddb0, type=8) at Zend/zend_language_scanner.l:576 #6 0x00000000006f09da in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /home/bjori/Work/php/5.4/Zend/zend.c:1213 #7 0x0000000000669f16 in php_execute_script (primary_file=0x7fffffffddb0) at /home/bjori/Work/php/5.4/main/main.c:2382 #8 0x000000000083098e in do_cli (argc=2, argv=0x7fffffffe168) at /home/bjori/Work/php/5.4/sapi/cli/php_cli.c:990 #9 0x0000000000831856 in main (argc=2, argv=0x7fffffffe168) at /home/bjori/Work/php/5.4/sapi/cli/php_cli.c:1358 (gdb) -- Edit bug report at https://bugs.php.net/bug.php?id=55150&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55150&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55150&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55150&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55150&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55150&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55150&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55150&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55150&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55150&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55150&r=support Expected behavior: https://bugs.php.net/fix.php?id=55150&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55150&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55150&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55150&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55150&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55150&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55150&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55150&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55150&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55150&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55150&r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55150&r=trysnapshot54