Edit report at https://bugs.php.net/bug.php?id=55150&edit=1
ID: 55150 Updated by: dmi...@php.net Reported by: hannes dot magnusson at gmail dot com Summary: php -a segfaults -Status: Assigned +Status: Closed Type: Bug Package: Reproducible crash Operating System: Linux PHP Version: 5.4SVN-2011-07-06 (SVN) Assigned To: dmitry Block user comment: N Private report: N New Comment: This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2011-07-11 03:10:28] dmi...@php.net Automatic comment from SVN on behalf of dmitry Revision: http://svn.php.net/viewvc/?view=revision&revision=313125 Log: Fixed bug #55150 (php -a segfaults) ------------------------------------------------------------------------ [2011-07-09 08:02:11] fel...@php.net It's related to the literals one in interactive mode. ------------------------------------------------------------------------ [2011-07-06 14:10:03] hannes dot magnusson at gmail dot com 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 this bug report at https://bugs.php.net/bug.php?id=55150&edit=1