php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44035 After a while apache hangs. Specially if i refresh instead of clicking a link
Submitted: 2008-02-04 09:58 UTC Modified: 2008-02-21 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: assid at assid dot com Assigned:
Status: No Feedback Package: Apache2 related
PHP Version: 5.3CVS-2008-02-04 (snap) OS: Windows XP
Private report: No CVE-ID: None
 [2008-02-04 09:58 UTC] assid at assid dot com
Description:
------------
This problem exists with apache+php 5.2.5 and on apache+php 04 Feb 2008 00:10:06 -0500 Version: 5.2.6-dev Branch. 
when surfing through a vhost, after a while it just stops working. As in nothing happens when you click. Apparently it becomes more apparent IF you hit refresh/reload a few times.. and leave it idle for a minute. The only way to make it work again, is to restart the apache webserver.

Similarly php-5.2.5 on linux fails to allow apachectl graceful to work. I have to force stop; killall -9 httpd and then start apache again. Downgrading to php-5.2.4 seems to fix this issue. Not sure if its related, but the behavior is similar.

Reproduce code:
---------------
Hitting refresh on the vhost, clicking links and after some time it hangs.

Expected result:
----------------
Not to hang? - This isnt php code related

Actual result:
--------------
Backtrace available at
http://assid.com/CrashHang_Report__PID_1360(2_dumps)__02042008150839750.mht
php.ini available at : assid.com/php.ini
error log also has Error in my_thread_global_end(): 3 threads didn't exit when restarting

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-02-04 11:37 UTC] assid at assid dot com
I disabled php from apache's modules. Now it doesnt cause apache to hang. Also, earlier if i stopped apache waited a few mins and then tried to start it, it didnt used to do that. Checking the process list, i would always find httpd.exe still running. Disabling the php module now has clean stop/starts of apache. This problem was very prominent in linux as well, as mentioned in my original post. Also something related to this on linux, my sessions used to time out. But I dont know how to check for that. One thing for certain now is that this behavior is common between both platforms on 5.2.5 and current snapshot.
 [2008-02-04 11:38 UTC] assid at assid dot com
Sorry my bad.. quick update have not tried snapshot on linux yet.. but 5.2.5 and snapshot on windows. And 5.2.5 on linux
 [2008-02-05 00:33 UTC] jani@php.net
You should propably check this out:

http://bugs.mysql.com/bug.php?id=25621

I don't know what mysql libraries you have PHP linked with but most likely to the buggy ones, hence the error.
 [2008-02-05 07:36 UTC] assid at assid dot com
Yes I actually came across that last night and found out its something to do with mysql. On windows, I am using the same ones that came with the snapshots. On linux I had it compiled against the source
 [2008-02-05 07:41 UTC] assid at assid dot com
I tried disabling the mysql extensions on windows however that didnt help. I still come across the same issues. I will try and do further tests to see what I can come across.
 [2008-02-21 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