#28839 [NEW]: SIGSEGV in interactive mode
| From: | curt@php.net | Date: | Fri, 18 Jun 2004 21:23:15 +0000 |
| Subject: | #28839 [NEW]: SIGSEGV in interactive mode | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-61086@lists.php.net to get a copy of this message | ||
From: curt@php.net
Operating system: FreeBSD
PHP version: 5CVS-2004-06-18 (dev)
PHP Bug Type: Reproducible crash
Bug description: SIGSEGV in interactive mode
Description:
------------
This problem only occurs when php is ran in in interactive mode, it works
perfectly fine from a script.
Reproduce code:
---------------
php -a
<?php
$k = 1 || 2;
Expected result:
----------------
no crash
Actual result:
--------------
run -a
<?php
$k = 1 or 2;
Program received signal SIGSEGV, Segmentation fault.
0x0826aa87 in execute (op_array=0x83c2c6c)
<?php $k = 1||2;
Program received signal SIGSEGV, Segmentation fault.
0x0826aa97 in execute (op_array=0x83c2c6c)
at /xxx/cvs/php/php-src/Zend/zend_execute.c:1389
1389 if (EX(opline)->handler(&execute_data, EX(opline),
op_array TSRMLS_CC)) {
(gdb) bt
#0 0x0826aa97 in execute (op_array=0x83c2c6c)
at /xxx/cvs/php/php-src/Zend/zend_execute.c:1389
#1 0x0823ba64 in execute_new_code ()
at /xxx/cvs/php/php-src/Zend/zend_execute_API.c:1069
#2 0x08220598 in zendparse ()
at /xxx/cvs/php/php-src/Zend/zend_language_parser.y:153
#3 0x082246e2 in compile_file (file_handle=0xbfbfe5c0, type=2)
at /xxx/cvs/php/php-src/Zend/zend_language_scanner.l:374
#4 0x082472b0 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /xxx/cvs/php/php-src/Zend/zend.c:1057
#5 0x0820172b in php_execute_script (primary_file=0xbfbfe5c0)
at /xxx/cvs/php/php-src/main/main.c:1627
#6 0x08277fb1 in main (argc=2, argv=0xbfbfe630)
at /xxx/cvs/php/php-src/sapi/cli/php_cli.c:943
#7 0x08084632 in _start ()
--
Edit bug report at http://bugs.php.net/?id=28839&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28839&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28839&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28839&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28839&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28839&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28839&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28839&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28839&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28839&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28839&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28839&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28839&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28839&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28839&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28839&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28839&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28839&r=float