Edit report at https://bugs.php.net/bug.php?id=55525&edit=1
ID: 55525 User updated by: info at ihead dot ru Reported by: info at ihead dot ru Summary: --enable-zend-multibyte cause Apache exit on signal 10 -Status: Feedback +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: I compile PHP 5.3.8 from src with: './configure' '--with-apxs=/usr/local/sbin/apxs' '--enable-debug' '--enable-zend-multibyte' I tried to get coredump, but i can find it anywhere. When i start apache (with -X) i see: php53test# apachectl13 start Processing config directory: /usr/local/apache/conf/includes13/*.conf Processing config file: /usr/local/apache/conf/includes13/13.s16.ihead.ru.conf After that i make two requests to the Apache. 1) Processed and is see text of syntax error (command line ok) 2) I see blank page (command line print "Bus error") After that i see text in the command line: Bus error /usr/local/sbin/apachectl13 start: httpd could not be started In the logs such records: [Sat Sep 3 14:19:40 2011] [warn] pid file /usr/local/apache/logs13/httpd.pid overwritten -- Unclean shutdown of previous Apache run? /usr/local/www/1/1.php(4) : Parse error - syntax error, unexpected ';' [Sat Sep 3 14:19:46 2011] Script: '/usr/local/www/1/1.php' --------------------------------------- Zend/zend_language_scanner.l(707) : Block 0x201e18220 status: Beginning: Freed Start: Overflown (magic=0x5A5A5A5A instead of 0x513AB69F) At least 4 bytes overflown Processing config directory: /usr/local/apache/conf/includes13/*.conf Processing config file: /usr/local/apache/conf/includes13/13.s16.ihead.ru.conf [Sat Sep 3 14:22:39 2011] [warn] pid file /usr/local/apache/logs13/httpd.pid overwritten -- Unclean shutdown of previous Apache run? /usr/local/www/1/1.php(4) : Parse error - syntax error, unexpected ';' [Sat Sep 3 14:22:44 2011] Script: '/usr/local/www/1/1.php' --------------------------------------- Zend/zend_language_scanner.l(707) : Block 0x201e18220 status: Beginning: Freed Start: Overflown (magic=0x5A5A5A5A instead of 0x545BD6B9) At least 4 bytes overflown Previous Comments: ------------------------------------------------------------------------ [2011-09-03 11:23:20] larue...@php.net Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2011-08-28 14:46:47] info at ihead dot ru Description: ------------ --enable-zend-multibyte in "configure" script (Zend Multibyte Support = Enabled) cause Apache's child processes outputs any result, but exit on signal 10 when in PHP-script there is syntax error and when MaxRequestPerChild != 1. Tested on Apache 1.3 and Apache 2.2 building PHP from FreeBSD ports or from source directly. Test script: --------------- <? echo '123'; func($item; ?> Expected result: ---------------- Work correctly on any next request Actual result: -------------- Apache's child proccess outputs any result (text of syntax error) and exit with signal 10. It cause fails at the next request (Apache server close connection without any result), when request is scheduled to the killed child. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55525&edit=1