ID: 27342
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Zend Engine 2 problem
Operating System: linux x86_64
PHP Version: 5CVS-2004-03-15
New Comment:
Doesn't crash on Alpha either.
Previous Comments:
------------------------------------------------------------------------
[2004-03-15 08:46:15] [EMAIL PROTECTED]
Does not crash on 32bit system..so this is propably some 64bit issue
again?
------------------------------------------------------------------------
[2004-03-15 06:21:41] [EMAIL PROTECTED]
Re-opening as this looks like the same issue. Running Fedora Core 1
x86_64 all exceptions (wether caught or not) cause a segfault in
zend_fetch_debug_backtrace.
<?php
throw new exception("blah");
?>
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182894216928 (LWP 4233)]
0x000000000063ec12 in zend_fetch_debug_backtrace
(return_value=0x2a955a0ed8,
skip_last=0) at
/home/rrichards/php5/Zend/zend_builtin_functions.c:1554
1554 if (*args--) {
(gdb) bt
#0 0x000000000063ec12 in zend_fetch_debug_backtrace (
return_value=0x2a955a0ed8, skip_last=0)
at /home/rrichards/php5/Zend/zend_builtin_functions.c:1554
#1 0x0000000000642894 in zend_default_exception_new
(class_type=0x81d060)
at /home/rrichards/php5/Zend/zend_exceptions.c:88
#2 0x0000000000630c2b in _object_and_properties_init
(arg=0x2a955a0fc8,
class_type=0x81d060, properties=0x0,
__zend_filename=0x6ada80
"/home/rrichards/php5/Zend/zend_execute.c",
__zend_lineno=3184) at /home/rrichards/php5/Zend/zend_API.c:714
#3 0x0000000000630c70 in _object_init_ex (arg=0x2a955a0fc8,
class_type=0x81d060,
__zend_filename=0x6ada80
"/home/rrichards/php5/Zend/zend_execute.c",
__zend_lineno=3184) at /home/rrichards/php5/Zend/zend_API.c:721
#4 0x000000000065b0a2 in zend_new_handler (execute_data=0x7fbfffc830,
opline=0x2a955a1db0, op_array=0x2a955a1a00)
at /home/rrichards/php5/Zend/zend_execute.c:3184
#5 0x0000000000655416 in execute (op_array=0x2a955a1a00)
at /home/rrichards/php5/Zend/zend_execute.c:1339
#6 0x000000000062e2b3 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /home/rrichards/php5/Zend/zend.c:1041
#7 0x00000000005e0f65 in php_execute_script
(primary_file=0x7fbfffef10)
at /home/rrichards/php5/main/main.c:1650
#8 0x0000000000663ae6 in main (argc=2, argv=0x7fbffff098)
at /home/rrichards/php5/sapi/cli/php_cli.c:943
------------------------------------------------------------------------
[2004-03-10 12:32:01] [EMAIL PROTECTED]
Hi sniper,
It doesn't crash apache and windows doesn't display an error box, but
GDB still complain.
Take a look:
[EMAIL PROTECTED] /cygdrive/c/nuno/testing
$ php bug-tidy.php
[EMAIL PROTECTED] /cygdrive/c/nuno/testing
$ gdb php
(...)
(gdb) run bug-tidy.php
Starting program: /cygdrive/c/php/php.exe bug-tidy.php
---Type <return> to continue, or q <return> to quit---
Program received signal SIGSEGV, Segmentation fault.
0x1000a8a4 in zend_fetch_debug_backtrace () from
/cygdrive/c/php/php5ts.dll
(gdb) run bug-tidy2.php
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /cygdrive/c/php/php.exe bug-tidy2.php
---Type <return> to continue, or q <return> to quit---
Program received signal SIGSEGV, Segmentation fault.
0x1000a8a4 in zend_fetch_debug_backtrace () from
/cygdrive/c/php/php5ts.dll
(gdb)
Strange...
------------------------------------------------------------------------
[2004-03-09 19:30:46] [EMAIL PROTECTED]
Does not crash using latest CVS snapshot.
(neither the first script or the non-existing file test)
------------------------------------------------------------------------
[2004-02-26 10:46:25] [EMAIL PROTECTED]
This code also segfaults:
<?php
$tidy = tidy_parse_file('bogus.htm');
?>
where bogus.htm file doesn't exist
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27342
--
Edit this bug report at http://bugs.php.net/?id=27342&edit=1