ID: 44226
Comment by: auroraeosrose at gmail dot com
Reported By: james dot j dot hackett at gmail dot com
Status: Open
Bug Type: Reproducible crash
Operating System: linux debian 2.6.18-5-686
PHP Version: 5.3CVS-2008-02-23 (snap)
New Comment:
Wow, pretty bug - I can confirm this with Apache 2.2.8 on windows with
a 5.3 snap - note this ONLY is an issue for the apache 2.2.x handler, I
can't get it to crash cgi, fastcgi, or cli
Here's a backtrace from a Debug_TS build
cdcdcdcd()
> php5ts_debug.dll!execute(_zend_op_array * op_array=0x026c2268, void *
* * tsrm_ls=0x0148a970) Line 91 + 0x11 bytes C
php5ts_debug.dll!zend_execute_scripts(int type=8, void * * *
tsrm_ls=0x0148a970, _zval_struct * * retval=0x00000000, int
file_count=3, ...) Line 1169 + 0x21 bytes C
php5ts_debug.dll!php_execute_script(_zend_file_handle *
primary_file=0x0262fe30, void * * * tsrm_ls=0x0148a970) Line 2077 +
0x1b bytes C
php5apache2_2.dll!php_handler(request_rec * r=0x006d3ae0) Line 630 +
0x13 bytes C
libhttpd.dll!ap_run_handler(request_rec * r=0x006d3ae0) Line 158 +
0x21 bytes C
libhttpd.dll!ap_invoke_handler(request_rec * r=0x006b0e08) Line 372
+ 0x6 bytes C
libhttpd.dll!ap_process_request(request_rec * r=0x006d3ae0) Line
262 C
libhttpd.dll!ap_process_http_connection(conn_rec * c=0x006cea90)
Line 190 + 0x6 bytes C
libhttpd.dll!ap_run_process_connection(conn_rec * c=0x006cea90) Line
43 + 0x21 bytes C
libhttpd.dll!ap_process_connection(conn_rec * c=0x006cea90, void *
csd=0x006c7a58) Line 178 + 0x6 bytes C
libhttpd.dll!worker_main(void * thread_num_val=0x006cea88) Line
778 C
msvcrt.dll!__endthreadex() + 0xa9 bytes
kernel32.dll!7c80b683()
Previous Comments:
------------------------------------------------------------------------
[2008-03-29 01:00:13] jeremy at omegavortex dot net
Just wanted to add that this still isn't fixed in the latest 5.3
snapshot, for me. Windows XP Pro with SP2. Apache 2.2.8.
------------------------------------------------------------------------
[2008-02-26 11:07:01] petr at hroch dot info
Hi,
I'm experiencing the same problem on Windows platform.
Throwing an Exception causes PHP to crash.
Using PHP5.3-dev latest snapshot, running as Apache 2.2.8 module.
Regards
Petr
------------------------------------------------------------------------
[2008-02-26 00:26:03] james dot j dot hackett at gmail dot com
There was no change when using the latest snapshot. I used a configure
of "./configure --with-apxs2=/usr/bin/apxs2".
I am able to run 5.2.5 with no problems.
------------------------------------------------------------------------
[2008-02-24 19:50:01] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.3-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.3-win32-installer-latest.msi
Does not crash for me..please try the latest CVS snapshot. And if that
fails, provide the configure line you used.
------------------------------------------------------------------------
[2008-02-23 14:44:12] james dot j dot hackett at gmail dot com
Description:
------------
Throwing an exception causes a segmentation fault
Reproduce code:
---------------
<?php
try{
throw new Exception("Hi, I am an Exception");
}
catch(Exception $e)
{
echo $e->getMessage();
}
?>
Expected result:
----------------
display "Hi, I am an Exception"
Actual result:
--------------
#0 0x0000000000000000 in ?? ()
#1 0x00002acf5c4008de in execute (op_array=0xa1af00, tsrm_ls=0xa00550)
zend_vm_execute.h:91
#2 0x00002acf5c3db6aa in zend_execute_scripts (type=8,
tsrm_ls=0xa00550, retval=0xa98be8, file_count=3) zend.c:1173
#3 0x00002acf5c38ba36 in php_execute_script (primary_file=0x4700cf40,
tsrm_ls=0xa00550) main.c:2026
#4 0x00002acf5c474849 in php_handler (r=0x9fa5b8) sapi_apache2.c:629
#5 0x0000000000437c4a in ap_run_handler ()
#6 0x000000000043affc in ap_invoke_handler ()
#7 0x0000000000447248 in ap_process_request ()
#8 0x000000000044468c in ?? ()
#9 0x000000000043ec22 in ap_run_process_connection ()
#10 0x000000000044b696 in ?? ()
#11 0x00002acf57bbd317 in start_thread () from /lib/libpthread.so.0
#12 0x00002acf580a9d5d in clone () from /lib/libc.so.6
#13 0x0000000000000000 in ?? ()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44226&edit=1