<<< Date Index >>>     <<< Thread Index >>>

[Mutt] #3469: seg fault in mx_update_context (mx.c file not found)



#3469: seg fault in mx_update_context (mx.c file not found)
--------------------+-------------------------------------------------------
 Reporter:  pi      |       Owner:  brendan
     Type:  defect  |      Status:  new    
 Priority:  major   |   Milestone:         
Component:  IMAP    |     Version:  1.5.20 
 Keywords:          |  
--------------------+-------------------------------------------------------
 Mutt segfaults every time I try to fetch some messages from a specific
 imaps server. This started somewhere between mutt-1.5.16 and mutt-1.5.20
 and only happens with specific imaps server.

 Might be related to [http://dev.mutt.org/trac/ticket/3288]

 {{{
 Hole Nachrichten-KÃpfe... 510/513 (99%)
 Program received signal SIGSEGV, Segmentation fault.
 mx_update_context (ctx=0x815b10, new_messages=8796912) at mx.c:1643
 1643    mx.c: Datei oder Verzeichnis nicht gefunden.
         in mx.c
 (gdb) bt
 #0  mx_update_context (ctx=0x815b10, new_messages=8796912) at mx.c:1643
 #1  0x000000000049cd24 in imap_read_headers (idata=0x816310,
 msgbegin=-12976, msgend=512) at message.c:376
 #2  0x0000000000499af6 in imap_open_mailbox (ctx=0x815b10) at imap.c:756
 #3  0x0000000000446e94 in mx_open_mailbox (path=0x41d220 "H\201\354",
 <incomplete sequence \330>, flags=0, pctx=0x0) at mx.c:703
 #4  0x000000000043c0f4 in main (argc=2, argv=0x7fffffffe3b8) at
 main.c:1077
 (gdb) print *ctx
 $1 = {path = 0x8653e0 "imaps://mail.XXXXX.de/INBOX", fp = 0x0, mtime = 0,
 size = 391463530, vsize = 0, pattern = 0x0, limit_pattern = 0x0, hdrs =
 0x85e1b0,
   last_tag = 0x0, tree = 0x0, id_hash = 0x0, subj_hash = 0x0, thread_hash
 = 0x0, v2r = 0x85c990, hdrmax = 538, msgcount = 492, vcount = 2, tagged =
 0, new = 0, unread = 0,
   deleted = 0, flagged = 0, msgnotreadyet = -1, magic = 5, rights =
 "\177\001", compressinfo = 0x0, realpath = 0x0, locked = 0, changed = 0,
 readonly = 0, dontwrite = 0, append = 0,
   quiet = 0, collapsed = 0, closing = 0, data = 0x816310, mx_close =
 0x496f60 <imap_close_mailbox>}
 (gdb) print msgno
 $2 = 2
 (gdb) print ctx->hdrs[2]
 $3 = (HEADER *) 0x0
 (gdb) print ctx->hdrs[1]
 $4 = (HEADER *) 0x863af0
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3469>
Mutt <http://www.mutt.org/>
The Mutt mail user agent