#30707 [NEW]: Segmentation fault

From: Date: Sat, 06 Nov 2004 23:09:03 +0000
Subject: #30707 [NEW]: Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68765@lists.php.net to get a copy of this message
From: guth at fiifo dot u-psud dot fr Operating system: Linux PHP version: 5.0.2 PHP Bug Type: Zend Engine 2 problem Bug description: Segmentation fault Description: ------------ I get another segmentation fault... You can look at the reproduce code. Reproduce code: --------------- <?php class B { public function plip() { try { $this->plap($this->plop()); } catch(Exception $e) { } } public function plap($a) { } public function plop() { throw new Exception; } } class C { public function __construct() { $b = new B; $this->byePHP($b->plip()); } public function byePHP($plop) { echo "www.haricow.org"; } } new C; ?> Expected result: ---------------- www.haricow.org Actual result: -------------- Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1075737248 (LWP 3881)] 0x403d2373 in zend_do_fcall_common_helper (execute_data=0xbfffccd0, opline=0x8170c64, op_array=0x816f784) at /usr/src/php5/Zend/zend_execute.c:2656 2656 if (EX(function_state).function->common.fn_flags & ZEND_ACC_ABSTRACT) { (gdb) bt #0 0x403d2373 in zend_do_fcall_common_helper (execute_data=0xbfffccd0, opline=0x8170c64, op_array=0x816f784) at /usr/src/php5/Zend/zend_execute.c:2656 #1 0x403d2c63 in zend_do_fcall_by_name_handler (execute_data=0xbfffccd0, opline=0x8170c64, op_array=0x816f784) at /usr/src/php5/Zend/zend_execute.c:2825 #2 0x403cebee in execute (op_array=0x816f784) at /usr/src/php5/Zend/zend_execute.c:1400 #3 0x403d2791 in zend_do_fcall_common_helper (execute_data=0xbfffce20, opline=0x816b694, op_array=0x816706c) at /usr/src/php5/Zend/zend_execute.c:2740 #4 0x403d2c63 in zend_do_fcall_by_name_handler (execute_data=0xbfffce20, opline=0x816b694, op_array=0x816706c) at /usr/src/php5/Zend/zend_execute.c:2825 #5 0x403cebee in execute (op_array=0x816706c) at /usr/src/php5/Zend/zend_execute.c:1400 #6 0x403a9f5d in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/src/php5/Zend/zend.c:1060 #7 0x40362a94 in php_execute_script (primary_file=0xbffff190) at /usr/src/php5/main/main.c:1628 #8 0x403dab14 in apache_php_module_main (r=0x815c29c, display_source_mode=0) at /usr/src/php5/sapi/apache/sapi_apache.c:54 #9 0x403dba9f in send_php (r=0x815c29c, display_source_mode=0, filename=0x815cda4 "/www/test.php") at /usr/src/php5/sapi/apache/mod_php5.c:622 #10 0x403dbb18 in send_parsed_php (r=0x815c29c) at /usr/src/php5/sapi/apache/mod_php5.c:637 #11 0x08071e77 in ap_invoke_handler () #12 0x08086ebd in process_request_internal () #13 0x08086f1c in ap_process_request () #14 0x0807df40 in child_main () #15 0x0807e0e8 in make_child () #16 0x0807e24e in startup_children () #17 0x0807e90e in standalone_main () #18 0x0807f12c in main () -- Edit bug report at http://bugs.php.net/?id=30707&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30707&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30707&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30707&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30707&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30707&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30707&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30707&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30707&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30707&r=support Expected behavior: http://bugs.php.net/fix.php?id=30707&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30707&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30707&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30707&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30707&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30707&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30707&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30707&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30707&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30707&r=mysqlcfg

« previous php.bugs (#68765) next »