Edit report at https://bugs.php.net/bug.php?id=55525&edit=1
ID: 55525 Comment by: m dot krasilnikov at yandex dot ru Reported by: info at ihead dot ru Summary: --enable-zend-multibyte cause Apache exit on signal 10 Status: Open Type: Bug Package: Apache related Operating System: FreeBSD 7.4 PHP Version: 5.3.8 Block user comment: N Private report: N New Comment: We have the same issue with PHP 5.3.19 on FreeBSD 7.4 Reproducable with test script from original report. (gdb) bt #0 0x00000008018acd50 in _zend_mm_free_int () from /usr/local/libexec/apache22/libphp5.so #1 0x000000080189cf5e in zend_multibyte_read_script () from /usr/local/libexec/apache22/libphp5.so #2 0x000000080189d37f in open_file_for_scanning () from /usr/local/libexec/apache22/libphp5.so #3 0x000000080189db9c in compile_file () from /usr/local/libexec/apache22/libphp5.so #4 0x0000000809022844 in phar_compile_file () from /usr/local/lib/php/20090626/phar.so #5 0x0000000804e0bdda in xdebug_compile_file () from /usr/local/lib/php/20090626/xdebug.so #6 0x00000008018cb00a in zend_execute_scripts () from /usr/local/libexec/apache22/libphp5.so #7 0x00000008018759a7 in php_execute_script () from /usr/local/libexec/apache22/libphp5.so #8 0x000000080195577e in php_handler () from /usr/local/libexec/apache22/libphp5.so Previous Comments: ------------------------------------------------------------------------ [2012-02-03 01:30:13] anoni at mo dot us To reproduce try php from ports, make config with multibyte, then install magento shop 1.6 and keep refreshing... :) ------------------------------------------------------------------------ [2012-02-03 01:23:42] anoni at mo dot us Confirm bug happening on php5.3.9 apache 2.2.21 Freebsd8. PHP compiled with zend_multibyte support. pid xxxx (httpd), uid 80: exited on signal 11 another simptom in vhost error.log : PHP Fatal error: require_once() Failed opening required '1' (intermittent, file exists and works 90% of the time). Browser gets white screen of death. Refreshing the page will work ok usually. ------------------------------------------------------------------------ [2011-09-06 03:12:49] info at ihead dot ru It was tested on Apache 1.3.41 and 2.2.19. I will try on another server later. ------------------------------------------------------------------------ [2011-09-06 02:50:34] larue...@php.net I can not reproduce this in my environ, and your apache seems to be ancient version, could you test with a newer version of it? thanks ------------------------------------------------------------------------ [2011-09-03 20:04:16] info at ihead dot ru Here is bugtrace php53test# gdb /usr/local/apache/bin/httpd13 /usr/local/apache/httpd13.core GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)... Core was generated by `httpd13'. Program terminated with signal 10, Bus error. Reading symbols from /lib/libcrypt.so.4...(no debugging symbols found)...done. Loaded symbols for /lib/libcrypt.so.4 Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.7 Reading symbols from /usr/local/apache/libexec/libphp5.so...done. Loaded symbols for /usr/local/apache/libexec/libphp5.so Reading symbols from /usr/lib/librt.so.1...done. Loaded symbols for /usr/lib/librt.so.1 Reading symbols from /lib/libm.so.5...done. Loaded symbols for /lib/libm.so.5 Reading symbols from /lib/libz.so.4...done. Loaded symbols for /lib/libz.so.4 Reading symbols from /usr/local/lib/libxml2.so.5...done. Loaded symbols for /usr/local/lib/libxml2.so.5 Reading symbols from /usr/local/lib/libiconv.so.3...done. Loaded symbols for /usr/local/lib/libiconv.so.3 Reading symbols from /libexec/ld-elf.so.1...done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x0000000200802324 in memcmp () from /lib/libc.so.7 (gdb) bt #0 0x0000000200802324 in memcmp () from /lib/libc.so.7 #1 0x0000000200f68a05 in zend_mm_check_ptr (heap=0x201e5d000, ptr=0x201e18220, silent=0, __zend_filename=0x201312554 "Zend/zend_language_scanner.l", __zend_lineno=707, __zend_orig_filename=0x0, __zend_orig_lineno=0) at /root/php/php-5.3.8/Zend/zend_alloc.c:1492 #2 0x0000000200f6853d in zend_mm_check_ptr (heap=0x201e5d000, ptr=0x201e18220, silent=1, __zend_filename=0x201312554 "Zend/zend_language_scanner.l", __zend_lineno=707, __zend_orig_filename=0x0, __zend_orig_lineno=0) at /root/php/php-5.3.8/Zend/zend_alloc.c:1393 #3 0x0000000200f69f71 in _zend_mm_free_int (heap=0x201e5d000, p=0x201e18220, __zend_filename=0x201312554 "Zend/zend_language_scanner.l", __zend_lineno=707, __zend_orig_filename=0x0, __zend_orig_lineno=0) at /root/php/php-5.3.8/Zend/zend_alloc.c:1993 #4 0x0000000200f6b611 in _efree (ptr=0x201e18220, __zend_filename=0x201312554 "Zend/zend_language_scanner.l", __zend_lineno=707, __zend_orig_filename=0x0, __zend_orig_lineno=0) at /root/php/php-5.3.8/Zend/zend_alloc.c:2361 #5 0x0000000200f4a5e7 in zend_multibyte_read_script ( buf=0x2005c9000 "<?\necho '123';\n\nfunc($item;\n\n/*\n$i=0;\nwhile($i++<5){\n mail('d...@ihead.ru', 'test ' . $i, 'just test',\n 'From: Tester <d...@ihead.ru>' . \"\\n\" .\n 'Reply-To: ad...@ihead.ru' . \"\\r\\n\"\n "..., n=207) at zend_language_scanner.l:707 #6 0x0000000200f49178 in open_file_for_scanning (file_handle=0x7fffffffe540) at zend_language_scanner.l:279 #7 0x0000000200f4947f in compile_file (file_handle=0x7fffffffe540, type=8) at zend_language_scanner.l:352 #8 0x0000000200d96842 in phar_compile_file (file_handle=0x7fffffffe540, type=8) at /root/php/php-5.3.8/ext/phar/phar.c:3393 #9 0x0000000200f94935 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php/php-5.3.8/Zend/zend.c:1228 #10 0x0000000200f12872 in php_execute_script (primary_file=0x7fffffffe540) at /root/php/php-5.3.8/main/main.c:2284 #11 0x0000000201088bcc in apache_php_module_main (r=0x201d8f060, display_source_mode=0) at /root/php/php-5.3.8/sapi/apache/sapi_apache.c:53 #12 0x0000000201089d4e in send_php (r=0x201d8f060, display_source_mode=0, filename=0x201d90410 "/usr/local/www/1/1.php") at /root/php/php-5.3.8/sapi/apache/mod_php5.c:682 #13 0x0000000201089daf in send_parsed_php (r=0x201d8f060) at /root/php/php-5.3.8/sapi/apache/mod_php5.c:697 #14 0x0000000000422e92 in ap_invoke_handler () #15 0x000000000043b899 in process_request_internal () #16 0x000000000043b8f4 in ap_process_request () #17 0x0000000000431473 in child_main () #18 0x0000000000431784 in make_child () #19 0x0000000000431bbb in perform_idle_server_maintenance () #20 0x00000000004321a9 in standalone_main () #21 0x00000000004327f4 in main () ------------------------------------------------------------------------ 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 https://bugs.php.net/bug.php?id=55525 -- Edit this bug report at https://bugs.php.net/bug.php?id=55525&edit=1