|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-02-23 14:44 UTC] 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 ?? ()
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 23:00:01 2025 UTC |
Hi, I'm also having this problem but I'm not sure what type of information I can provide that will aide in reproducing the crash. A simple snippet of "throw new Exception('Hello, Crash!');" causes Apache 2.2.8 to restart all its threads. I'm not sure what I can do to help or provide more information. It's XP SP2 (all latest updates, ie6) on a windows domain. It's an Intel Pentium D 3.4GHz, 4GiB of RAM installed but only utilizes 3.25 of it. Apache 2.2.8 runs with mod_ssl/2.2.8 OpenSSL/0.9.8g. If there's any more information I can provide please let me know. I've been trying to take the time to figure out how to compile a debug build but i've been busy with work-related stuff.