[Tickets #4121] NEW: High Load (not ending loop) with "corrupt" imap folders
bugs@bugs.horde.org
bugs at bugs.horde.org
Thu Jul 6 08:18:21 PDT 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=4121
-----------------------------------------------------------------------
Ticket | 4121
Created By | horde at immerda.ch
Summary | High Load (not ending loop) with "corrupt" imap folders
Queue | IMP
Version | 4.1.2
State | Unconfirmed
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
horde at immerda.ch (2006-07-06 08:18) wrote:
i played around a bit with folder creation / deletion on our imap system
with IMP.
so i created a folder in the inbox called foo (names are anonymised) and
in this a subfolder called "bar. bla".
as bar.bla should be together i realised that this creates a new subfolder
so i wanted to delete that all and create one with "bar bla" well i could
delete them, but i got then a folder in foo in the tree displayed which
had an empty name. so i tried to delete this one. which i couldn't do
anymore. so i played around a bit more (sorry for this description but i
really can't remember anything exactly) and then i thought ok let's go
back once to the INBOX let's try it later. after i clicked on the inbox
folder it loaded and loaded and loaded.
after a while i logged into the server, looked at top and saw that one
apache process was up to nearly 100% and the load of the machine grew. i
straced this process and saw that it is always writing into the phpError
logfile of the server. in this file i got tons of these logmessages
repeated:
---
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: INBOX.foo.bar in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 691
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: c in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 724
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: p in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 725
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 726
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1328
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1275
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1438
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/imp/lib/IMAP/Tree.php on line 445
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/imp/lib/IMAP/Tree.php on line 445
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1275
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: INBOX.foo.bar in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 691
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: c in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 724
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: p in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 725
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 726
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1328
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 588
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 593
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 594
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: INBOX.foo.bar in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 691
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: c in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 724
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: p in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 725
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 726
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1328
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1275
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1438
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/imp/lib/IMAP/Tree.php on line 445
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/imp/lib/IMAP/Tree.php on line 445
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1275
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: INBOX.foo.bar in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 691
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: c in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 724
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: p in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 725
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 726
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: a in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 1328
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 588
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 593
[06-Jul-2006 16:57:04] PHP Notice: Undefined index: v in
/www/localhost/horde/lib/Horde/IMAP/Tree.php on line 594
-------
so the only chance to stop this was to restart apache. but after i clicked
again on INBOX (or went into the filter menu i.e.) the apache process was
again up to 100% and filling my logfiles.
i could rearrange it with using thunderbird to login and delete the
folders. (even thunderbird crashed once) so the problem was mostly because
of corrupt IMAP folders i think.
but i think it's a problem when IMP then comes into an endless queue, push
an apache process up to 100% and just fill the logfiles with php warnings.
this could be used for an attack to a webserver to lock it out.
More information about the bugs
mailing list