On 12.10.2004, at 08:17, Doug Luce wrote:
I'm getting this error on a particular message in my Maildir:
Oct 11 21:59:48 aurora dovecot: IMAP(doug): file ostream-file.c: line 646 (_send_istream): assertion failed: (instream->v_offset <= in_size)
I heard about the same problem today from someone else. Apparently this can be reproduced every time with some mail. Still waiting for that mail :)
To me, more import than the question "why is this happening" is "how can I debug this?" Attaching gdb to the running imap process doesn't give me access to the proper function names to set up breakpoints and get a stack trace.
Can someone with the experience give a quick how-to on debugging functions deep in dovecot?
You should be able to attach gdb normally into it, as long as the binary isn't stripped, ie.:
gdb /usr/local/libexec/dovecot/imap pid