Edit report at https://bugs.php.net/bug.php?id=52752&edit=1
ID: 52752 Comment by: juraj at lutter dot sk Reported by: paulgao at yeah dot net Summary: Program terminated with signal 7, Bus error. Status: Feedback Type: Bug Package: Scripting Engine problem Operating System: Centos 5 32bit PHP Version: 5.3SVN-2010-08-31 (SVN) Block user comment: N Private report: N New Comment: This same happens on Solaris 10/x86 with PHP 5.3.8 compiled using GCC4 and using Apache 2.2.21. root@[nwebs3 /var/crash/nwebs3]# pstack httpd-29691-cust_zend_apache3 core 'httpd-29691-cust_zend_apache3' of 29691: /opt/csw/apache2/sbin/httpd -f /opt/csw/apache2/etc/httpd.conf -k star fe0485d4 lex_scan (8046c74, 6c632f61, 746e6569, fe062825, 69762f63, 72656c6c) + 60 fe062863 zendlex (8046c70, 8045ae0, 8045690, fe04344b) + 4f fe043ac2 zendparse (85af794, 2, 40, 2, 81c3ecc, 9) + 69a fe047cd1 compile_file (8046e00, 8, 2, fe3630c8, 81f399c, 85b1265) + bd fdd7706c sg_compile_file (8046e00, 8, 55, 0, fe3ae224, 31) + 20 fe0abaac ???????? (8047800, 81c3e12, 8046e98, fe3ae0c0, 88b39c8, 1007800) fe0945d9 execute (81e10b4, 0, 2, 81c3ba8, 8046ecc, 8046ed4) + 195 fe074111 zend_execute_scripts (8, 0, 3, 0, 8047800, 0) + 129 fe0255af php_execute_script (8047800, 8380c78, 9c, fe0f72a9, fdc20000, 8000) + 1df fe0f7508 ???????? (8386cd0, 25, 8386fb0, 8387f60) 0807cdce ap_run_handler (8386cd0, 3b, 8047ae8, 807d135, 11e1a300, 0) + 32 0807d19f ap_invoke_handler (8386cd0, 0, 8047b18, 80712de) + af 08087fdd ap_process_request (8386cd0, 4, 8386cd0, 8386cd0) + 18d 0808599d ap_process_http_connection (837cf40, 0, 8047b78, 8082aed) + f1 08082802 ap_run_process_connection (837cf40, 837cca8, 837cc68, 80bcdd8, fec42c40, 0) + 32 0808c34a child_main (10, 808beb8, 1, 0) + 406 0808c52e make_child (fddc1a5e, feb7667a, fec43c80, 6, 0, fec43c80) + de 0808d0ae ap_mpm_run (80be830, 80ec8e8, 80c0728, 80c0728) + aea 0806c9e4 main (6, 8047e08, 8047e24) + 6f8 0806be7c _start (6, 8047ea8, 8047ec4, 8047ec7, 8047ee7, 8047eea) + 80 Previous Comments: ------------------------------------------------------------------------ [2011-02-09 12:40:08] paulgao at yeah dot net core dump: (gdb) bt #0 0x082a1ac8 in lex_scan (zendlval=0xbf85525c) at /root/php-5.3.5/Zend/zend_language_scanner.c:2063 #1 0x082b2df8 in zendlex (zendlval=0xbf855258) at /root/php-5.3.5/Zend/zend_compile.c:4949 #2 0x0829c0f9 in zendparse () at /root/php-5.3.5/Zend/zend_language_parser.c:3280 #3 0x082a0f3c in compile_file (file_handle=0xbf855330, type=8) at /root/php-5.3.5/Zend/zend_language_scanner.c:359 #4 0x082fa1ca in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER (execute_data=0x9fbd1b8) at /root/php-5.3.5/Zend/zend_vm_execute.h:5200 #5 0x082ed7e8 in execute (op_array=0x9f88d68) at /root/php-5.3.5/Zend/zend_vm_execute.h:107 #6 0x082cb847 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /root/php-5.3.5/Zend/zend.c:1194 #7 0x0827ae7e in php_execute_script (primary_file=0xbf859858) at /root/php-5.3.5/main/main.c:2265 #8 0x08352122 in main (argc=131072, argv=0x640004) at /root/php-5.3.5/sapi/fpm/fpm/fpm_main.c:1882 ------------------------------------------------------------------------ [2011-02-09 12:38:42] paulgao at yeah dot net <?php file_put_contents(__DIR__ . '/test.tpl', 'AAA<?php $string = "'. str_repeat('A', mt_rand(1, 256 * 1024)) .'"; ?>BBB' . "\r\n", LOCK_EX); require_once __DIR__ . '/test.tpl'; ?> please use âab -n 200 -n 20 http://localhost/test.phpâ to test it. ------------------------------------------------------------------------ [2010-11-24 00:20:11] fel...@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2010-09-09 07:39:16] paulgao at yeah dot net and, centos 64bit server, same result. ------------------------------------------------------------------------ [2010-09-04 18:24:58] paulgao at yeah dot net Anybody There? ------------------------------------------------------------------------ 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=52752 -- Edit this bug report at https://bugs.php.net/bug.php?id=52752&edit=1