Mailing List Archive

[DBMail 0001056]: IMAPd segfaults using CONDSTORE
A NOTE has been added to this issue.
======================================================================
http://www.dbmail.org/mantis/view.php?id=1056
======================================================================
Reported By: dfroe
Assigned To:
======================================================================
Project: DBMail
Issue ID: 1056
Category: IMAP daemon
Reproducibility: sometimes
Severity: crash
Priority: normal
Status: new
target:
======================================================================
Date Submitted: 12-Sep-14 21:22 CEST
Last Modified: 19-Feb-15 22:16 CET
======================================================================
Summary: IMAPd segfaults using CONDSTORE
Description:
After upgrading to dbmail 3.2.0 the IMAPd tends to crash often. Sometimes
within a few seconds after restart (depending on how many users are
accessing the server).
Debugging the core dumps shows that
in _ic_status_enter at imapcommands.c:1520
the following line segfaults

self->mailbox->condstore = true;

gdb shows that self->mailbox is NULL.

Maybe a simple check against NULL before accessing the variable could fix
it. On ther other hand I do not know whether it should be possible for
mailbox to be NULL in such a situation.

I worked around this issue by remove CONDSTORE from the capability list
announced by the server to the client. Now I do not notice any crashes
since the clients do not use CONDSTORE anymore.
======================================================================

----------------------------------------------------------------------
(0003687) dfroe (reporter) - 19-Feb-15 22:16
http://www.dbmail.org/mantis/view.php?id=1056#c3687
----------------------------------------------------------------------
I think commit edd6179d638d4257d0a669de582f8770370a7364 (2015-01-11
18:08:35 GMT) which is included in dbmail 3.2.3 addressed this issue.
So far I haven't noticed any more segfaults.
Thanks a lot!

Issue History
Date Modified Username Field Change
======================================================================
12-Sep-14 21:22 dfroe New Issue
12-Sep-14 21:23 dfroe Issue Monitored: dfroe
19-Feb-15 22:16 dfroe Note Added: 0003687
======================================================================

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev