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

Re: mutt/2242: Mutt 1.5.9i crashes when reading mail with unicode symbols.



The following reply was made to PR mutt/2242; it has been noted by GNATS.

From: Rocco Rutte <pdmef@xxxxxxx>
To: bug-any@xxxxxxxxxxxxx
Cc: 
Subject: Re: mutt/2242: Mutt 1.5.9i crashes when reading mail with unicode 
symbols.
Date: Wed, 17 May 2006 08:53:47 +0000

 Hi,
 
 * johnpol@xxxxxxxxxxx [06-05-17 10:31:40 +0200] wrote:
 
 >System: Linux 2.6.16.1-2ka (i686) [using ncurses 5.2]
 [...]
 >+ENABLE_NLS  +LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
 >+HAVE_LANGINFO_YESEXPR
 
 >>Description:
 >Mutt crashes when reading attached e-mail.
 
 >Program received signal SIGSEGV, Segmentation fault.
 >0xa7f3b88e in PutAttrChar () from /usr/lib/libncursesw.so.5
 >(gdb) bt
 >#0  0xa7f3b88e in PutAttrChar () from /usr/lib/libncursesw.so.5
 >#1  0xa7f37b7f in EmitRange () from /usr/lib/libncursesw.so.5
 >#2  0xa7f37ca3 in PutRange () from /usr/lib/libncursesw.so.5
 >#3  0xa7f38d47 in TransformLine () from /usr/lib/libncursesw.so.5
 >#4  0xa7f37f98 in doupdate () from /usr/lib/libncursesw.so.5
 >#5  0xa7f32bb7 in wrefresh () from /usr/lib/libncursesw.so.5
 >#6  0x0805ef82 in mutt_refresh () at curs_lib.c:62
 >#7  0x080853f2 in mutt_pager (banner=0x0, fname=0xa7f5aba0 "&#65533;J\004", 
 >flags=66, extra=0xafe7d130) at pager.c:1754
 >#8  0x0805792e in mutt_display_message (cur=0x8141908) at commands.c:211
 >#9  0x08061b16 in mutt_index_menu () at curs_main.c:1144
 >#10 0x0807802a in main (argc=135716808, argv=0xafe7e514) at main.c:934
 >#11 0xa7c751c4 in __libc_start_main () from /lib/libc.so.6
 
 I cannot reproduce this with CVS HEAD nor 1.5.8 nor 1.4.2.1.
 
 I have two ideas: first ncurses 5.2 is pretty old and as the crash 
 happens after calling refresh() inside ncurses it could be its fault and 
 not mutt's. Can you try updating the cursing library?
 
 Second: how do you build? You have +LOCALES_HACK enabled which shouldn't 
 be necessary on your system I guess. Maybe not enabling it helps?
 
 But still the value for fname when calling mutt_pager() looks very 
 strange to me...
 
    bye, Rocco
 -- 
 :wq!