[imp] Segmentation fault
Michael M Slusarz
slusarz at mail.curecanti.org
Thu Dec 8 08:36:37 PST 2005
Quoting Ollie Maitland <ollie at byng-systems.com>:
> Hey -
>
> I'm getting a segmentation fault when trying to view a message with an
> attachment. The fault is occurring in:
>
> $ret = $mailbox_cache->retrieve(IMP::getThisMailbox(null, $in),
> array($in), 16);
>
> Line 108 in imp/lib/MIME/Contents.php
>
> The IMP_MailboxCache retrieve function is returning a valid array and I
> have tried to run $mailbox_cache->retieve using different parameters
> e.g.
>
> $mailbox_cache->retrieve("INBOX", array(8543), 16);
> $mailbox_cache->retrieve("INBOX", array(8543), 8);
>
> however
>
> $mailbox_cache->retrieve("INBOX", array(8543), 1);
>
> works.
This almost surely indicates imap_fetchstructure() is segfaulting
which means you have a malformed mail message that is crashing
c-client. As always, the solution is to upgrade your version of
c-client.
michael
_______________________________________
Michael Slusarz [slusarz at curecanti.org]
More information about the imp
mailing list