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

[Mutt] #3143: Segmentation fault in index menu with IMAP account



#3143: Segmentation fault in index menu with IMAP account
-------------------------+--------------------------------------------------
 Reporter:  debarshiray  |       Owner:  brendan
     Type:  defect       |      Status:  new    
 Priority:  major        |   Milestone:         
Component:  IMAP         |     Version:         
 Keywords:               |  
-------------------------+--------------------------------------------------
 Mutt 1.5.18 (2008-05-17), used with GMail's IMAP, encounters a
 segmentation fault in the index menu if the indicator is moved after a
 selected folder is kept idle for sometime (< 5 minutes). I have set
 imap_keepalive to 240.

 Mutt was configured with the following flags on Fedora Core 5 i386 system:
 --prefix=/u/debray --enable-pgp --enable-smime --enable-pop --enable-imap
 --enable-smtp --enable-hcache --enable-exact-address --enable-locales-fix
 --with-ssl --disable-external-dotlock

 A bit of playing with GDB gave me the following.

 {{{
 Breakpoint 1, cmd_handle_fatal (idata=0x9288cf8) at command.c:368
 368       if ((idata->state >= IMAP_SELECTED) &&
 (gdb) bt
 #0  cmd_handle_fatal (idata=0x9288cf8) at command.c:368
 #1  0x080cb548 in imap_cmd_step (idata=0x9288cf8) at command.c:150
 #2  0x080cc1fd in imap_exec (idata=0x9288cf8, cmdstr=0x80e4d8a "NOOP",
 flags=0)
     at command.c:262
 #3  0x080cccf8 in imap_check_mailbox (ctx=0x926e588, index_hint=0x0,
 force=1)
     at imap.c:1386
 #4  0x080d2591 in imap_keepalive () at util.c:709
 #5  0x08061c19 in mutt_index_menu () at curs_main.c:522
 #6  0x0807d916 in main (argc=1, argv=0xbfec16f4) at main.c:999
 (gdb) c
 Continuing.
 Mailbox closed
 Program received signal SIGSEGV, Segmentation fault.
 0x080615d3 in index_color (index_no=7496) at curs_main.c:179
 179       HEADER *h = Context->hdrs[Context->v2r[index_no]];
 (gdb) print Context
 $2 = (CONTEXT *) 0x9bdb588
 (gdb) print Context->v2r
 $3 = (int *) 0x39393939
 (gdb) print Context->v2r[index_no]
 Cannot access memory at address 0x39393a69
 (gdb) bt
 #0  0x080615d3 in index_color (index_no=7496) at curs_main.c:179
 #1  0x0808190e in menu_redraw_motion (menu=0x927bd90) at menu.c:303
 #2  0x080622ec in mutt_index_menu () at curs_main.c:562
 #3  0x0807d916 in main (argc=1, argv=0xbfec16f4) at main.c:999
 (gdb)
 }}}

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