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

Re: [Mutt] #2959: Segfault when resizing screen



#2959: Segfault when resizing screen

Comment (by intvnut):

 I just had another crash on resize, and tried to print stdscr.  Here's
 what I got:
 {{{
 (gdb) bt
 #0  0x00162e12 in _int_free () from /lib/tls/libc.so.6
 #1  0x0016363a in free () from /lib/tls/libc.so.6
 #2  0x005b13b5 in SLfree (p=0x4000020 <Address 0x4000020 out of bounds>)
     at /usr/src/build/478426-i386/BUILD/slang-1.4.9/src/slmisc.c:87
 #3  0x005be5eb in SLcurses_delwin (w=0x810aec0)
     at /usr/src/build/478426-i386/BUILD/slang-1.4.9/src/slcurses.c:434
 #4  0x080d5e8a in mutt_resize_screen () at resize.c:77
 #5  0x0806652d in mutt_index_menu () at curs_main.c:597
 #6  0x08085fe6 in main (argc=1, argv=0xbfffe284) at main.c:989
 (gdb) fr 4
 #4  0x080d5e8a in mutt_resize_screen () at resize.c:77
 77        delwin (stdscr);
 (gdb) print stdscr
 No symbol "stdscr" in current context.
 (gdb) list
 72            SLtt_Screen_Cols = atoi (cp);
 73          else
 74            SLtt_Screen_Cols = 80;
 75        }
 76      #ifdef USE_SLANG_CURSES
 77        delwin (stdscr);
 78        SLsmg_reset_smg ();
 79        SLsmg_init_smg ();
 80        stdscr = newwin (0, 0, 0, 0);
 81        keypad (stdscr, TRUE);
 (gdb)
 }}}

 So, I wasn't able to print stdscr.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/2959#comment:1>