php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70916 Apache Segmentation fault
Submitted: 2015-11-14 18:14 UTC Modified: 2015-11-16 16:41 UTC
From: velichko at networx-bg dot com Assigned:
Status: Closed Package: Apache2 related
PHP Version: 5.6.14 OS: Debian 8
Private report: No CVE-ID: None
 [2015-11-14 18:14 UTC] velichko at networx-bg dot com
Description:
------------
segfault when there is multiple concurrent connections
can simulate with 3 instances of console script using this code
while [ true ]; do
        wget http://127.0.0.1/test.php -q -O -
done


Test script:
---------------
class Bug {
	const arr = array('bg','en');

	function __construct ($language) {
		if (in_array($language,self::arr)) {
		}
	}
}
$test = new Bug('gb');


Actual result:
--------------
[core:notice] [pid 3069] AH00052: child pid 24079 exit signal Segmentation fault (11)
and page stop loading and browser receive empty response.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-11-15 02:44 UTC] laruence@php.net
-Status: Open +Status: Feedback
 [2015-11-15 02:44 UTC] laruence@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.


 [2015-11-16 16:41 UTC] velichko at networx-bg dot com
-Status: Feedback +Status: Closed -PHP Version: 5.6.15 +PHP Version: 5.6.14
 [2015-11-16 16:41 UTC] velichko at networx-bg dot com
Problem exist only with default debian package. When i compiled php from source to enable --enable-debug option problem does not exist. May be it is debian related problem.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 05:01:28 2024 UTC