[Tickets #3019] NEW: imp goes into an infinite loop for a couple of accounts (in Folder.php)
bugs@bugs.horde.org
bugs at bugs.horde.org
Tue Nov 22 09:41:30 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3019
-----------------------------------------------------------------------
Ticket | 3019
Created By | seker at uwyo.edu
Summary | imp goes into an infinite loop for a couple of accounts (in Folder.php)
Queue | IMP
Version | HEAD
State | Unconfirmed
Priority | 3. High
Type | Bug
Owners |
-----------------------------------------------------------------------
seker at uwyo.edu (2005-11-22 09:41) wrote:
We have about 2 dozen people using horde/imp regularly and 3 accounts
cause Folder.php to go into an infinite loop, generating tons of log
messages from php to the error log (see below) and php never stops, the
web server has be stopped and restarted. This loop only happens in
imp, they can use horde, other modules are load up just fine. All the
rest
of the people can use the system including imp without problems.
For the failing accounts, They login correctly, the horde main page loads.
When
they click on mail, then it goes into the infinite loop. It will also
happens, when the click on personal information in mail options, I
haven't had them try any of the other options in mail.
I've created a new user account and loged it into horde/imp and it
worked without problems. I deleted all the entries (I think anyway)
from the database on one of the failing accounts and had the user login
again and it still did the same thing.
message, repeated until fills up the file space for the logs :
[client ip addr] PHP Warning: implode(): Bad arguments. in
/var/www/html/horde/imp/lib/Folder.php on line 174, referer:
https://webmail/horde/services/portal/sidebar.php
[client ip addr] PHP Warning: array_pop(): The argument should be an
array in /var/www/html/horde/imp/lib/Folder.php on line 186, referer:
https://webmail/horde/services/portal/sidebar.php
[client ip addr] PHP Notice: Uninitialized string offset: 0 in
/var/www/html/horde/imp/lib/Folder.php on line 174, referer:
https://webmail/horde/services/portal/sidebar.php
The lines listed by the errors are:
173: while ($i = count($parentparts)) {
174: $parent = implode($mailbox['d']['delimiter'], $parentparts);
186: array_pop($parentparts);
So my guess is that the $parentparts array doesn't have correct values
and the while loop doesn't end when parentparts is empty, but it's not
empty due to the error at 174 and/or 186.
As a stop gap, I changed to horde configs: max_execution_time to 30
and error_reporting to E_ERROR, so everyone else can use the system.
configs info:
Redhat E4, php-4.3.9-3.9, mysql-4.1.12-3.RHEL4.1
cvs head (today 11/22/05), using mysql drivers, no mailbox caching
Horde: 3.2-cvs Imp: H3 (4.2-cvs) Ingo: H3 (1.2-cvs) Jeta: 0.1-cvs
Kronolith: H3 (2.2-cvs) Mnemo: H3 (2.2-cvs) Nag: H3 (2.2-cvs) Turba: H3
(2.2-cvs)
More information about the bugs
mailing list