php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30405 Parent: child process exited with status 4294967295 -- Restarting
Submitted: 2004-10-11 23:39 UTC Modified: 2004-10-21 10:51 UTC
Votes:10
Avg. Score:4.9 ± 0.3
Reproduced:10 of 10 (100.0%)
Same Version:4 (40.0%)
Same OS:5 (50.0%)
From: joel at preacherboy dot net Assigned: jorton (profile)
Status: Not a bug Package: Apache2 related
PHP Version: 5.0.2 OS: Windows 2003
Private report: No CVE-ID: None
 [2004-10-11 23:39 UTC] joel at preacherboy dot net
Description:
------------
PHP 5.0.2 / Apache 2.0.52 / Windows 2003

While visiting the website, clicking through links like mad can result in the following Apache2 crash:

[Mon Oct 11 09:35:20 2004] [notice] Parent: child process exited with status 4294967295 -- Restarting.

Others have experienced this bug as well:

http://groups.yahoo.com/group/firebird-php/message/779
http://bugs.php.net/bug.php?id=25570

I'm going to downgrade to PHP 4.3.2 to get the system back to some form of stability. I have a clone of the system to test on.

Reproduce code:
---------------
PHP source doesn't need to contain PHP code. Try hosting a file of 100% HTML code with a .php extension.

Expected result:
----------------
Apache2 should not crash and restart. The crash and restart can result in a 5-10 second delay for viewing a page or a File Not Found error.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-10-12 01:26 UTC] joel at preacherboy dot net
PHP 4.3.2 / Apache 2.0.52 / Windows 2003

Same system, new \PHP4 directory, modified httpd.conf. Everything works great under PHP 4.3.2.

My guess is that bug #25570 returned.
 [2004-10-12 08:37 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2004-10-12 08:41 UTC] joel at preacherboy dot net
You're going to have to ask what details you're looking for. I've already read that page. There aren't any specific steps to get this error to occur and existing information is available in the links I provided,but I'll do my best to make this a step-by-step process

1. Install Apache 2.0.52 / PHP 5.0.2 on Windows 2003.
2. Create a website of pages linking each other.
3. View these pages, clicking through links like crazy, using another system.

After a few clicks, Apache2 will restart itself.
 [2004-10-12 09:07 UTC] derick@php.net
I don't know what details I want, it's that Windows is simply impossible to debug. You'll have to come up with some really good pointers, otherwise we can just as well delete this bugreport.
 [2004-10-12 16:26 UTC] joel at preacherboy dot net
I can't think what else I would need to do in explaining how to regress this bug. It happens quite easily. Have you even tried my suggestions? Do you need something else like my httpd.conf to get started? This bug seems identical to what was mentioned in bug #25570.
 [2004-10-12 23:24 UTC] joel at preacherboy dot net
Here's what you'll see in the \log\error_log for Apache2:

[Mon Oct 11 09:35:20 2004] [notice] Parent: child process exited with status 4294967295 -- Restarting.
[Mon Oct 11 09:35:22 2004] [notice] Parent: Created child process 4004
[Mon Oct 11 09:35:22 2004] [notice] Disabled use of AcceptEx() WinSock2 API
[Mon Oct 11 09:35:23 2004] [notice] Child 4004: Child process is running
[Mon Oct 11 09:35:23 2004] [notice] Child 4004: Acquired the start mutex.
[Mon Oct 11 09:35:23 2004] [notice] Child 4004: Starting 250 worker threads.
[Mon Oct 11 09:35:23 2004] [notice] Child 4004: Listening on port 443.
[Mon Oct 11 09:35:23 2004] [notice] Child 4004: Listening on port 80.
[Mon Oct 11 09:35:23 2004] [notice] Child 4004: Listening on port 80.

After some more time, the above will loop. I see 2 other people have voted that they are able to reproduce the issue.  Is there anything else you need to regress the bug?
 [2004-10-20 21:15 UTC] aaron at gwmicro dot com
I can consistenly reproduce this problem.

[Wed Oct 20 14:08:43 2004] [notice] Parent: child process exited with status 4294967295 -- Restarting.

Here's how we're duplicating it under Windows Server 2003, running Apache/2.0.52 (Win32) DAV/2 mod_ssl/2.0.52 OpenSSL/0.9.7d PHP/5.1.0-dev:

<?
$filename = "c:\\demo\\demo.exe";
$fileInfo = stat($filename);
$length = $fileInfo[7];

header("Content-Length: $length");
header("Content-Type:application/octet-stream");
header("Cache-Control: no-cache, must-revalidate");
header("Connection: close");
header("Content-Length: $length");
header("Content-Type:application/octet-stream");
header("Content-Disposition: inline; filename=demo.exe");
header("Pragma: no-cache");

$fh = fopen($filename, "rb");
while (!feof($fh))
{
        $buffer = fread($fh, 1024);
        print $buffer;
}
fclose($fh);
header("Connection: close");
?>

The demo file is about 35MB, and if you cancel the download half-way through, you'll consistently get this error in the apache log, and the child restarting process will happen. The line right before the restart is:

[Wed Oct 20 14:08:42 2004] [info] (OS 10054)An existing connection was forcibly closed by the remote host.  : core_output_filter: writing data to the network

I can duplicate this problem 100% of the time.
 [2004-10-21 10:29 UTC] jorton@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This looks like a duplicate of bug 25570, please try the patch referenced there.
 [2004-10-21 10:51 UTC] jorton@php.net
Fixing OS/Version/Summary here too.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 06:01:28 2024 UTC