[Dovecot] process imap SIGSEGVs when getting STATUS on mbox box

Andreas Fuchs asf at boinkor.net
Tue Nov 15 16:28:19 EET 2005


Hi,

I just added an "archive" mbox namespace to my dovecot setup, so that
people can put their old mail into a slightly more inode-friendly
box. When querying the STATUS on one of these boxes, I got a sigsegv:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000454d24 in message_parse_header_next (ctx=0x59e500, hdr_r=0x7fbffff420) at message-parser.c:759
759                             if (msg[0] == '\n' ||
(gdb) bac
#0  0x0000000000454d24 in message_parse_header_next (ctx=0x59e500, hdr_r=0x7fbffff420) at message-parser.c:759
#1  0x00000000004297bb in mbox_sync_parse_next_mail (input=0x59e218, ctx=0x7fbffff670) at mbox-sync-parse.c:455
#2  0x000000000042ab9e in mbox_sync_loop (sync_ctx=0x7fbffff590, mail_ctx=0x7fbffff670, partial=0) at mbox-sync.c:118
#3  0x000000000042c187 in mbox_sync (mbox=0x597c70, flags=Variable "flags" is not available.
) at mbox-sync.c:1445
#4  0x000000000042cf3c in mbox_storage_sync_init (box=0x597c70, flags=0) at mbox-sync.c:1770
#5  0x000000000041a000 in imap_sync_nonselected (box=Variable "box" is not available.
) at imap-sync.c:177
#6  0x0000000000413022 in cmd_status (cmd=0x590ab8) at cmd-status.c:68
#7  0x0000000000414319 in _client_input (context=Variable "context" is not available.
) at client.c:338
#8  0x000000000045e4a6 in io_loop_handler_run (ioloop=0x58eca0) at ioloop-poll.c:190
#9  0x000000000045d9cf in io_loop_run (ioloop=0x58eca0) at ioloop.c:230
#10 0x000000000041b841 in main (argc=Variable "argc" is not available.
) at main.c:232

Mail server runs dovecot 1.0alpha4, is an amd64, linux 2.6.8-11
(debian testing). Mutt can parse the mailbox in question ok; seems
that dovecot's mail header parser is broken somewhere.

If there's anything else you need to debug this, shout (-:

Thanks,
-- 
Andreas Fuchs, <asf at boinkor.net>, asf at jabber.at, antifuchs



More information about the dovecot mailing list