Summary: | crash when activating offline mode during IMAP remote activity | ||
---|---|---|---|
Product: | Claws Mail (GTK 2) | Reporter: | Michael Schwendt <mschwendt> |
Component: | Folders/IMAP | Assignee: | users |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | kardan |
Priority: | P3 | ||
Version: | 3.9.3 | ||
Hardware: | PC | ||
OS: | Linux |
Description
Michael Schwendt
2012-11-02 12:58:06 UTC
Reproducible with Claws Mail 3.9.3 (x86_64 Fedora 20) and caused malloc to crash again: $ claws-mail (claws-mail:9041): Claws-Mail-CRITICAL **: imap_scan_required: assertion 'session != NULL' failed (claws-mail:9041): Claws-Mail-WARNING **: can't get message file path. Segmentation fault (core dumped) When running via valgrind, it seems the slow-down is too high, and instead of a segfault there are only warnings on the terminal: ** (claws-mail:8837): WARNING **: [15:30:03] IMAP error on imap.googlemail.com: bad state ** (claws-mail:8837): WARNING **: [15:30:03] IMAP4 connection broken ** (claws-mail:8837): WARNING **: [15:30:03] can't select folder: [Google Mail]/All Mail (claws-mail:8837): Claws-Mail-WARNING **: can't get message file path. For this particular reproducer, taking out the call to session_destroy() from imap_disconnect_all() in imap.c makes the problem unreproducible. Something uses freed memory structures. This is output _after_ session_destroy() in imap_disconnect_all(): ** (claws-mail:28962): WARNING **: [22:13:50] IMAP error on \x9b\x9d\x9e\xff\x9b\x9d\x9e\xff\xa1\u0011: bad state ** (claws-mail:28962): WARNING **: [22:13:50] IMAP4 connection broken Segmentation fault (core dumped) Looks promising so far. :) Instead of a crash I only get the following messages on terminal: (claws-mail:27971): Claws-Mail-CRITICAL **: imap_scan_required: assertion 'session != NULL' failed ** (claws-mail:27971): WARNING **: [17:52:18] IMAP error on imap.googlemail.com: stream error ** (claws-mail:27971): WARNING **: [17:52:18] IMAP4 connection broken (claws-mail:27971): Claws-Mail-WARNING **: can't get message file path. Nice :) Keep me informed! |