php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36792 Apache crashing while executing some scripts
Submitted: 2006-03-19 21:59 UTC Modified: 2006-03-28 01:00 UTC
From: webmaster at zloba dot ath dot cx Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 4.4.2 OS: Windows XP SP2
Private report: No CVE-ID: None
 [2006-03-19 21:59 UTC] webmaster at zloba dot ath dot cx
Description:
------------
Apache (2.0.55) crashes in certain situations. Tried running LoTGD (http://dragonprime.net/) and the httpd crashed. Other scripts have crashed too. It says that the actual problem was from php4ts.dll and the problem is when scripts are run, so I think it's PHP bug. The dump of Apache (over 20MB unzipped!) is here:
http://zloba.ath.cx/dumps.zip

Reproduce code:
---------------
LoTGD 1.0.6 installation scripts from http://dragonprime.net/

Expected result:
----------------
Have the software installed

Actual result:
--------------
The HTTPD crashed

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-19 22:01 UTC] tony2001@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 possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2006-03-19 22:30 UTC] webmaster at zloba dot ath dot cx
The script crashes here:
http://your.server/lotgd/installer.php?stage=1&c=1-232014
(stage 2 - license agreement)
"installer.php" has many includes so here is the full source code (the official side requires registration in order to download it):
http://zloba.ath.cx/lotgd-1.0.6.tar.gz
It doesn't require any additional modules of PHP to test the installer, so I think there shouldn't be any problems.
I forgot to quote the error log:
========
[Sun Mar 19 23:20:22 2006] [notice] Parent: child process exited with status 3221225477 -- Restarting.
========
The status is always the same.
 [2006-03-19 22:36 UTC] tony2001@php.net
If it's possible, please provide short and complete reproduce code.
 [2006-03-20 09:02 UTC] webmaster at zloba dot ath dot cx
After some tracing I founded that the problem is caused by the "installer.php" here:
http://zloba.ath.cx/lotgd-installer.zip
There are many cut-offs of code and this installer crashes without any arguments passed (because actually there aren't any argument checks). The error logged is the same as I pasted above. I left only the libraries and common.php too, but it is still very hard job to trace the problem, there are too much includes. I will continue working to realize which instruction(s) cause the crash of Apache.
 [2006-03-20 19:38 UTC] tony2001@php.net
I can't reproduce any crashes and/or different problems with Apache1/Apache2 prefork/Apache2 threaded.
Valgrind doesn't report any memory issues also.
 [2006-03-28 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 12:01:30 2024 UTC