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

Re: [Mutt] #2935: Occasional segfault when IMAP inbox updates



#2935: Occasional segfault when IMAP inbox updates
---------------------+------------------------------------------------------
  Reporter:  skunk   |       Owner:  brendan       
      Type:  defect  |      Status:  started       
  Priority:  major   |   Milestone:  1.6           
 Component:  IMAP    |     Version:  1.5.18        
Resolution:          |    Keywords:  duplicate 2902
---------------------+------------------------------------------------------

Comment(by vegard):

 Working much better, but still crashing from time to time:


 {{{
 Program terminated with signal 11, Segmentation fault.
 #0  mx_update_context (ctx=0x812d510, new_messages=2) at mx.c:1561
 1561          h->security = crypt_query (h->content);
 (gdb) bt
 #0  mx_update_context (ctx=0x812d510, new_messages=2) at mx.c:1561
 #1  0x080ce572 in imap_read_headers (idata=0x8102098, msgbegin=77677,
 msgend=77677) at message.c:372
 #2  0x080c7631 in imap_cmd_finish (idata=0x8102098) at command.c:265
 #3  0x080c9288 in imap_check_mailbox (ctx=0x812d510,
 index_hint=0xffdb71c0, force=0) at imap.c:1417
 #4  0x08062168 in mutt_index_menu () at curs_main.c:482
 #5  0x0807e73e in main (argc=Cannot access memory at address 0x4bdb8
 ) at main.c:1016
 (gdb) p h->content
 Cannot access memory at address 0x3c
 (gdb) p h
 $1 = (HEADER *) 0x0
 (gdb) p ctx->msgcount
 $2 = 77679
 (gdb) p ctx->hdrs[ctx->msgcount]
 $3 = (HEADER *) 0x0
 (gdb) p ctx->hdrs[ctx->msgcount - 1]
 $4 = (HEADER *) 0x0
 (gdb) p ctx->hdrs[ctx->msgcount - 2]
 $5 = (HEADER *) 0xc8fb4a8
 (gdb)

 }}}

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