Mailing List Archive

[DBMail 0001056]: IMAPd segfaults using CONDSTORE
The following issue has been SUBMITTED.
======================================================================
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: 12-Sep-14 21:22 CEST
======================================================================
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.
======================================================================

Issue History
Date Modified Username Field Change
======================================================================
12-Sep-14 21:22 dfroe New Issue
======================================================================

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