php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20487 mod_php crashes under Apache 1.3.27 & MaxRequestsPerChild=infinite
Submitted: 2002-11-18 14:54 UTC Modified: 2002-11-28 08:12 UTC
Votes:5
Avg. Score:5.0 ± 0.0
Reproduced:5 of 5 (100.0%)
Same Version:5 (100.0%)
Same OS:4 (80.0%)
From: dmitry at koteroff dot ru Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 4.3.0RC1 OS: Windows 2000
Private report: No CVE-ID: None
 [2002-11-18 14:54 UTC] dmitry at koteroff dot ru
When I use 

MaxRequestsPerChild 0

(e.g. infinite) in httpd.conf, sometimes Apache crashes.

I have tested this bug on framed page (it is phpMyAdmin, two frames in frameset). When I use only one page (without frames), I have to press Reload button (F5 in Internet Explorer) many times (I rather hold it) to produce crash. 

I think something's wrong in multithreaded code in php4apache.dll: it crashes when two requests occurs at the SAME TIME (often, but not always).

Tere is no bug in 4.2.3, but I cannot use php4apache.dll from 4.2.3 for 4.3.0 - it crashes immediately.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-19 20:00 UTC] nicos@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.

 [2002-11-20 07:39 UTC] dmitry at koteroff dot ru
Just get Apache 1.2.27, install PHP as Apache module, open http://localhost and press Reload button 20 times quickly (you may also hold Ctrl+R, it crashes too). You will see GP Fault message. No extensions are loaded in php.ini, no Apache module used instead of mod_php. 

How can I say more?
 [2002-11-20 08:03 UTC] dmitry at koteroff dot ru
Sorry, maybe this bug is hard-reproducible in other machines. Well, then you may use the following script:

/index.html:
------------
<frameset rows="*,*">
    <frame src=/test.php>
    <frame src=/test.php>
</frameset>

/test.php:
----------
<?sleep(1)?>

Apache 1.3.27, Windows 2000 SP2, 4.3.0RC1.

Load http://localhost/index.html, then press Reload button. You will see GP Fault message immediately.

See that you need at least TWO frames in frameset to emulate simultaneous requests. NEXT (!) Reload will kick ass.
 [2002-11-20 22:51 UTC] gambier dot olivier at free dot fr
Seems to be Apache version independent.
Same crashes on same test cases reproduced with:
Apache 1.3.27, 2.0.42 and 2.0.43.
Windows 2000 SP3
Mozilla 1.1
Standart php.ini and httpd.conf.

Also I do had the same problems whatever the value of MaxRequestsPerChild in httpd.conf.

This is new to 4.3.0RC1.
Never had such things with 4.2.3.


Thanks.
 [2002-11-21 06:14 UTC] DeathmasterIII at aon dot at
The more frames you load the earlier the bug occours!!!!!

I've tried with 4 frames -> 2xReload and it crashes!!!!!
 [2002-11-21 09:24 UTC] DeathMasterIII at aon dot at
There is the same Problem with Apache2 (2.0.43) and PHP 4.3.0RC1!!!!!!
 [2002-11-22 18:09 UTC] psychoticwolf at carolina dot rr dot com
i've experienced this same bug with 4.3.0RC1 (Apache 2.0.43 on Windows XP Pro (Service Pack 1)... In my experience it seems to recurr randomly, but the logic presented here, does hold true. I've also witnessed similar crashes with 4.2.4-dev, but 4.3 does it far more frequently.. Presumably as long as two requests are going on at the same time.. it doesn't have to be from the same origin..
 [2002-11-27 15:07 UTC] DeathMasterIII at aon dot at
I think we can move this Report to "closed" because it seems to be fixed in RC2 (-> I haven't tried under heavy load)

I've tried with 2,4 and even 100 Frames ;-)
Apache and Apache2 didn't crash.

mfg DMIII
 [2002-11-28 05:05 UTC] sniper@php.net
Please test with RC2. Or preferrably with the latest STABLE snapshot from http://snaps.php.net


 [2002-11-28 08:12 UTC] dmitry at koteroff dot ru
RC2 seems to be OK. Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 14:01:32 2024 UTC