[Bug 704359] New: Mutt crash on switch to a new folder on NULL pointer
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c0 Summary: Mutt crash on switch to a new folder on NULL pointer Classification: openSUSE Product: openSUSE 12.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Other AssignedTo: werner@novell.com ReportedBy: mvyskocil@novell.com QAContact: qa@suse.de Found By: Development Blocker: --- When I copy the email from Inbox to another folder and switch to it immediately, mutt segfaults. This is the info from gdb (gdb) bt #0 mx_update_context (ctx=0x867f10, new_messages=<optimized out>) at mx.c:1597 #1 0x00000000004a69f6 in imap_read_headers (idata=0x844040, msgbegin=<optimized out>, msgend=6) at message.c:386 #2 0x00000000004a42e3 in imap_open_mailbox (ctx=0x867f10) at imap.c:756 #3 0x0000000000446855 in mx_open_mailbox (path=<optimized out>, flags=0, pctx=0x0) at mx.c:684 #4 0x000000000042546c in mutt_index_menu () at curs_main.c:1202 #5 0x0000000000409638 in main (argc=1, argv=<optimized out>) at main.c:1026 (gdb) list 1592 h = ctx->hdrs[msgno]; 1593 1594 if (WithCrypto) 1595 { 1596 /* NOTE: this _must_ be done before the check for mailcap! */ 1597 h->security = crypt_query (h->content); 1598 } 1599 1600 if (!ctx->pattern) 1601 { (gdb) print WithCrypto No symbol "WithCrypto" in current context. (gdb) print h $1 = (HEADER *) 0x0 (gdb) print ctx $2 = (CONTEXT *) 0x867f10 (gdb) print msgno $3 = 5 (gdb) print ctx->hdrs $4 = (HEADER **) 0x2bdefa0 (gdb) print ctx->hdrs[0] $5 = (HEADER *) 0x2be9870 (gdb) print ctx->hdrs[1] $6 = (HEADER *) 0x2be97d0 (gdb) print ctx->hdrs[5] $7 = (HEADER *) 0x0 (gdb) print ctx->hdrs[6] I've uploaded the core file to ftp.suse.com/pub/people/mvyskocil/core.bz rpm -q mutt mutt-1.5.21-19.1.x86_64 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c1 --- Comment #1 from Michal Vyskocil <mvyskocil@novell.com> 2011-07-07 10:08:51 UTC --- BTW: once I run mutt again, I'm able to visit the folder without a problem. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c2 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mvyskocil@novell.com --- Comment #2 from Dr. Werner Fink <werner@novell.com> 2011-07-07 10:44:34 UTC --- IMHO the folder was broken or a rescan is missed! That is that the header was not expand well and therefore the message #5 doens't show a header. Nver seen that before, as a workaround I'll use --- mx.c +++ mx.c 2011-07-07 10:41:48.975926316 +0000 @@ -1591,6 +1591,9 @@ void mx_update_context (CONTEXT *ctx, in { h = ctx->hdrs[msgno]; + if (!h) + continue; + if (WithCrypto) { /* NOTE: this _must_ be done before the check for mailcap! */ as this should jump over such a broken message. The question is do the messages in this folder show `Lines:' and/or 'Content-Length:' within their headers and are the numbers correct? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c3 --- Comment #3 from Dr. Werner Fink <werner@novell.com> 2011-07-07 10:51:34 UTC --- On the other hand if the time stamps will not in sync over imap the copy/move of a messages may not trigger a rescan of the folder which also can cause a broken header ... or the rescan with the help of imap silently fails. The question is: does this happen on a local mail folder (not! imap) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c4 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mvyskocil@novell.com | --- Comment #4 from Michal Vyskocil <mvyskocil@novell.com> 2011-07-07 11:20:25 UTC --- Seems that copy from imap to local folder works well. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c5 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mvyskocil@novell.com --- Comment #5 from Dr. Werner Fink <werner@novell.com> 2011-07-07 11:29:54 UTC --- IMHO fixed: - Update patch for Mutt Ticket #3288 and check for empty headers in mx_update_context() . check the latest mutt in server:mail project -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c6 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|mvyskocil@novell.com | --- Comment #6 from Michal Vyskocil <mvyskocil@novell.com> 2011-07-07 12:55:49 UTC --- I built the latest server:mail mutt and the problem is fixed. Thanks a lot! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=704359 https://bugzilla.novell.com/show_bug.cgi?id=704359#c7 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #7 from Dr. Werner Fink <werner@novell.com> 2011-07-07 13:30:47 UTC --- fixed -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com