ID: 11316 Updated by: lobbin Reported By: [EMAIL PROTECTED] Old Status: Open Status: Feedback Bug Type: XML related Operating System: Debian/stable Linux 2.2.19 PHP Version: 4.0.5 New Comment:
Can you try with 4.1.1? With debug, and provide the wierd errors. Previous Comments: ------------------------------------------------------------------------ [2001-06-07 11:36:55] [EMAIL PROTECTED] Here's the backtrace, without debugging compiled (because I get weird errors instead of a segfault when enabling debug info): Program received signal SIGSEGV, Segmentation fault. 0xbfffdee8 in ?? () (gdb) bt #0 0xbfffdee8 in ?? () #1 0x4022a803 in add_function () from /usr/lib/apache/1.3/libphp4.so #2 0x4022a589 in add_function () from /usr/lib/apache/1.3/libphp4.so #3 0x402a303c in php_if_utf8_decode () from /usr/lib/apache/1.3/libphp4.so #4 0x402a3786 in php_if_utf8_decode () from /usr/lib/apache/1.3/libphp4.so #5 0x402b53c1 in php_XML_ErrorString () from /usr/lib/apache/1.3/libphp4.so #6 0x402b4bcd in php_XML_ErrorString () from /usr/lib/apache/1.3/libphp4.so #7 0x402b6b25 in virtual_file_ex () from /usr/lib/apache/1.3/libphp4.so #8 0x402b6822 in virtual_file_ex () from /usr/lib/apache/1.3/libphp4.so #9 0x402b4749 in php_XML_ErrorString () from /usr/lib/apache/1.3/libphp4.so #10 0x402a4b1a in php_if_utf8_decode () from /usr/lib/apache/1.3/libphp4.so #11 0x40224299 in execute () from /usr/lib/apache/1.3/libphp4.so #12 0x402244ec in execute () from /usr/lib/apache/1.3/libphp4.so #13 0x4023260f in zend_hash_quick_add_or_update () from /usr/lib/apache/1.3/libphp4.so #14 0x402441c4 in destroy_uploaded_files_hash () from /usr/lib/apache/1.3/libphp4.so #15 0x4024095f in php_module_shutdown () from /usr/lib/apache/1.3/libphp4.so #16 0x402412f0 in php_handle_auth_data () from /usr/lib/apache/1.3/libphp4.so #17 0x4024132e in php_lint_script () from /usr/lib/apache/1.3/libphp4.so #18 0x8053e64 in ap_invoke_handler () #19 0x80626ec in ap_some_auth_required () #20 0x8062748 in ap_process_request () #21 0x805c4d9 in ap_child_terminate () #22 0x805c66c in ap_child_terminate () #23 0x805c789 in ap_child_terminate () #24 0x805cc3b in ap_child_terminate () #25 0x805d2ed in main () #26 0x400c0a42 in __libc_start_main () from /lib/libc.so.6 ------------------------------------------------------------------------ [2001-06-07 04:39:48] [EMAIL PROTECTED] Please attache the gdb backtrace you get. It might help at least little bit. ------------------------------------------------------------------------ [2001-06-06 14:25:25] [EMAIL PROTECTED] I get reproducable bug reports in a large PHP application using a wide scale of functions. All the code apart from each other works without a problem, but combined generates a segfault (according to error.log from Apache). The code uses a session handler based on interbase functions, a xml parser, and a lot of objects. PHP 4.0.5 is used. After compiling PHP with debugging, I didn't get a segfault anymore, but the XML parsing code complains that it can't access the data and element handlers anymore. Probably the xml parsers internal memory is trashed the same way as the segfault is caused with the normal PHP module. Since it is a large application it is very hard to pinpoint the problem. When altering the code, the segfault can be avoided by making the XML file smaller, but also by removing an unserialize() at some specific part of the code. My conclusion is that there is a buffer overrun somewhere long before in the code, which is only causing problems when the application is using a lot of memory (perhaps the PHP garbage collector is activated at some stage?) A backtrace with a regular PHP module can be provided if it is useful, just let me know. If there is a way to pinpoint the problem please let me know. I can't reproduce the crash in a short script, and since the application is rather large I decided not to include it in this posting. I realize this is not much information, but I will help you in any way if you can tell me what to do (should I try a CVS version?). The bugs looks a little like bug #10254. regards, Olivier ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=11316&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]