|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44198 Apache 1.3.41 Child processed exited prematurely.
Submitted: 2008-02-21 07:44 UTC Modified: 2008-03-09 03:21 UTC
From: jean at upbear dot com Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.4.8 OS: win32 FreeBSD
Private report: No CVE-ID: None
 [2008-02-21 07:44 UTC] jean at upbear dot com
PHP Script crash apache child process

Originaly on FreeBDS virtual hosting and reproductible under winxp with apache 1.3.30 and 1.3.41 with windows version of PHP 4.4.8

Reproduce code:
unable to localize code or any specific line of code/instruction - no win32 backtrace available

Expected result:
Under FreeBSD PHP 4.4.3 (virtual hosting or not) the script is running completely and producing web pages.

Actual result:
web page with Zero byte return from Apache http request

cause :

[Thu Feb 21 02:22:00 2008] [info] master_main: Child processed exited prematurely. Restarting the child process.
[Thu Feb 21 02:22:00 2008] [info] Parent: Created child process 2176
[Thu Feb 21 02:22:00 2008] [info] Parent: Duplicating socket 156 and sending it to child process 2176
[Thu Feb 21 02:22:00 2008] [info] BytesRead = 372 WSAProtocolInfo = 2006620


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-21 14:25 UTC] jean at upbear dot com
typo : reproduction were under winxp apache version 1.3.39 (same as ISP) and apapche 1.3.41 (newess version available in the 1.3 branch).

Note : ISP in under FreeBDS virtual hosting
 [2008-03-09 03:21 UTC] jean at upbear dot com
Strange Strange Strange ...

After refactoring the application and played a bit with class definition  and code weaving, I got execution traces and error message related to the call of the function preg_match_all.  Preg_match_all was call with a variable non declared as array, I did and things were going back.

So to "solve" this, I had to rework code and declaration of code, to get error messages and then fix the code.

Strange indeed !

after fix, code worked in both environment
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Dec 07 04:05:52 2022 UTC