Hello everybody...
I seem to have understand where the problem is laying...
I suddenly realized that I should take a look at RoundCube's error log, so here it is:
[10-Feb-2006 00:39:28] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /usr/local/share/RoundCube/program/lib/imap.inc on line 121 [10-Feb-2006 00:42:25] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /usr/local/share/RoundCube/program/lib/imap.inc on line 123 [10-Feb-2006 00:42:31] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /usr/local/share/RoundCube/program/lib/imap.inc on line 123 [10-Feb-2006 02:42:53] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /usr/local/share/RoundCube/program/lib/imap.inc on line 121 [10-Feb-2006 02:45:32] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /usr/local/share/RoundCube/program/lib/imap.inc on line 121 [10-Feb-2006 02:45:36] PHP Fatal error: Maximum execution time of 120 seconds exceeded in /usr/local/share/RoundCube/program/lib/imap.inc on line 121
I have hundreds of this and they mostly coincide with my server's CPU being at 100%.
Line 121 - 123 of program/lib/imap.inc are the following:
function iil_ReadLine($fp, $size){ $line=""; if ($fp){ do{ $buffer = fgets($fp, 2048); $line.=$buffer; }while($buffer[strlen($buffer)-1]!="\n"); } return $line; }
(121 is the fgets)
So the problem seems like RoundCube gets stuck in an infinite loop, sometime...
How can we fix this? :-)
Thanks
-----Messaggio originale----- Da: Andrea Brancatelli [mailto:andrea@brancatelli.it] Inviato: lunedì 20 febbraio 2006 15.31 A: users@lists.roundcube.net Oggetto: Problems with DBMail
Hello guys.
I'm having problem with Apache + Php 4 + RoundCube + Mysql 5 + Dbmail 2.0.something.
Somethimes and only with some users after an user accesses the webmail everything works as expected BUT the child he just instanciated (in apache) never closes... the apache process goes 100% and stays in "Write" forever until the apache child sigfault or I restart apache manually.
Seems like Roundcube goes somehow in a dead lock when finishing the execution of the current page...
The good thing is that the webmail works ok, so the problem is in the cleanup code of RoundCube (I suppose), the bad thing is that my processor usage keeps going 100% 100% 100% 'till the machine crash or something.
I need some kind of urgent help about this....
Where do we start from?
A particular thing is that the problem always arise with a specific user..
-- Andrea Brancatelli Consulente Informatico http://andrea.brancatelli.it/