[Tickets #1891] NEW: Message with garbage throwing undefined variable and Apache segfault

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Apr 29 18:14:16 PDT 2005


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=1891
-----------------------------------------------------------------------
 Ticket             | 1891
 Created By         | kevin_myer at iu13.org
 Summary            | Message with garbage throwing undefined variable and Apache segfault
 Queue              | IMP
 Version            | 4.0.3
 State              | Unconfirmed
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


kevin_myer at iu13.org (2005-04-29 18:14) wrote:

I funnel all my log summaries to a folder.  The one daily summary from a
Samba server generally contains a few lines of garbage, from the Samba
daemon.  Somedays IMP displays the message, other days, it won't display it.
 Today I set out to track down why.

Apache is 2.0.46 and PHP 4.3.2 (Red Hat Enterprise Linux 3, Update 4)

The logs contain the following (the Invalid key 0 error is from Samba):

[29-Apr-2005 20:16:40] PHP Notice:  Undefined variable:  )  Invalid key 0
given to dptr_close^_<8b>^H^H<84>RkB^M
......contents of most of the rest of the mail message
in /horde/lib/Horde/MIME/Viewer.php on line 419

Just preceeding the line in the message that is logged is the garbage line
that triggers this:

½¶«Y^OJÂÎ~ge %OÉ*þÇ~[7¤ùÆ^A&^A
s^As]é½°
^O¸¸¸¸¸¸?tKQ½~C+v%û©¸¸¸_u%{~Y:×~K\Í?~I^L]É^ñ¿»O`Ñw      h9
&~\R~NÑ^AÐÆ¡U~E2!~W\=bh¤õ£ÎJÆö;~@«~[~E5zý^D^Dw3k^GÑÃö¸«¿»^U¯^X'ï®5m1Ec~[ÑË>Å
~C^VªQ"~J~L~RãÒþ^\ø:¡^SÆNACç^CÐ^\.!¤q~B³wNËh|~RÍ| ^Uø)n*F~KJ^SLþ©âU%^\ãß«/E
ç~Xº^A

So what appears to be happening is during the parsing of the message, IMP or
a Horde class hits the garbage line.  And everything after that gets passed
to a function - _getIcon??? and it chokes on that.

Uses up all available memory and Apache segfaults.  But why one line in a
message is triggering this in _getIcon is beyond me.  How do I isolate what
exactly is causing this?

Thanks,
Kevin






More information about the bugs mailing list