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

Re: Mutt segfaulting with certain index_format/spam combos



And I heard David Champion exclaim:
> * On 2004.05.15, in <20040515213420.GB9664@gloaming>,
> *     "Daniel Teichert" <danielt@xxxxxxxxxx> wrote:
> > 
> > How do I let the segfault create a core? I used 'ulimit -c' to change
> > the core size allowed from '0' to 'unlimited' (I think...), but still
> > no core...
> 
> Try 'ulimit -c unlimited'.

...Well, that's what I *did*, but now that somebody else suggested it, I
tried it again and it worked ;). I'm attaching the results of:

gdb $(which mutt) core &> gdb_output
bt
quit

...to this email. Let me know if that looks like what you want.

> > P.S. Can anyone confirm/deny that the messages I attached in my original
> > email break an unpatched mutt install?
> 
> I don't have an unpatched mutt, but it displays fine in my

What index_format did you use? I can bring them up with the default but
not with my customized one. I fiddled around a little more and here are
the rather odd results (not that sometimes breakage changes based
soleley on a few space characters more or less):

set index_format=" %Z%M \xe2\x94\x82 %-5.5y \xe2\x94\x82 %-70.70s \xe2\x94\x82 
%-18.18B \xe2\x94\x82 From %-27.27n \xe2\x94\x82 %-20.20t \xe2\x94\x82 %[%Y %b 
%e], %[%l:%M %P]"
#still breaks: set index_format=" %Z%M | %-5.5y | %-70.70s | %-18.18B | From 
%-27.27n | %-20.20t | %[%Y %b %e], %[%l:%M %P]"
#doesn't break: set index_format=" %Z%M | %-5.5y | %-70.70s | %-18.18B | From 
%-27.27n | %-20.20t"
#doesn't break: set index_format="%[%Y %b %e], %[%l:%M %P]"
#doesn't break: set index_format="%-20.20t | %[%Y %b %e], %[%l:%M %P]"
#doesn't break: set index_format=" %-5.5y | %-70.70s | %-18.18B | From %-27.27n 
| %-20.20t | %[%Y %b %e], %[%l:%M %P]"
#doesn't break: set index_format=" %Z%M | %-70.70s | %-18.18B | From %-27.27n | 
%-20.20t | %[%Y %b %e], %[%l:%M %P]"
#still breaks: set index_format=" %Z%M |          %-70.70s | %-18.18B | From 
%-27.27n | %-20.20t | %[%Y %b %e], %[%l:%M %P]"
#still breaks: set index_format="                 %-70.70s | %-18.18B | From 
%-27.27n | %-20.20t | %[%Y %b %e], %[%l:%M %P]"
#doesn't break: set index_format=" %-70.70s | %-18.18B | From %-27.27n | 
%-20.20t | %[%Y %b %e], %[%l:%M %P]"

...is this the time to apply this item from the FAQ:

Q: Mutt dumps core when I press Ctrl-Compose-Shift-F12
A: So don't do it! ;-)
<snip/>

... ;)?

BTW, thanks for taking the trouble to look at this. Thanks, too, to
whoever it was that caught my previously missing double quote, even
though that didn't end up solving the problem.
-- 
Daniel Teichert, BYU ECEn Dept. CSR
Email address: danielt@xxxxxxxxxx
Magnet address (no legitimate email, please): devnull@xxxxxxxxxx
GNU gdb 6.1-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...(no debugging symbols found)...Using 
host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `mutt'.
Program terminated with signal 11, Segmentation fault.

warning: current_sos: Can't read pathname for load map: Input/output error

Reading symbols from /usr/lib/libncursesw.so.5...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libncursesw.so.5
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libgnutls.so.10...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgnutls.so.10
Reading symbols from /usr/lib/libidn.so.11...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /lib/tls/libresolv.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libresolv.so.2
Reading symbols from /usr/lib/libtasn1.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libtasn1.so.2
Reading symbols from /usr/lib/libgcrypt.so.7...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgcrypt.so.7
Reading symbols from /usr/lib/libgpg-error.so.0...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/libgpg-error.so.0
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libnsl.so.1
Reading symbols from /lib/tls/libnss_compat.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libnss_compat.so.2
Reading symbols from /lib/tls/libnss_nis.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libnss_nis.so.2
Reading symbols from /lib/tls/libnss_files.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libnss_files.so.2
Reading symbols from /lib/libnss_db.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_db.so.2
Reading symbols from /usr/lib/libdb3.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb3.so.3
Reading symbols from /lib/tls/libnss_dns.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /lib/tls/libnss_dns.so.2
Reading symbols from /usr/lib/sasl2/libsasldb.so.2...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/sasl2/libsasldb.so.2
Reading symbols from /usr/lib/gconv/ISO8859-1.so...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/gconv/ISO8859-1.so
Reading symbols from /usr/lib/gconv/CP1251.so...(no debugging symbols 
found)...done.
Loaded symbols for /usr/lib/gconv/CP1251.so
#0  0x31202000 in ?? ()
(no debugging symbols found)...(gdb) bt
#0  0x31202000 in ?? ()
#1  0x2031303a in ?? ()
#2  0xbf006d61 in ?? ()
#3  0x00000000 in ?? ()
#4  0x088f8cbc in ?? ()
#5  0x00000001 in ?? ()
#6  0x00000000 in ?? ()
#7  0x00000000 in ?? ()
#8  0x00000000 in ?? ()
#9  0x40189e2f in _IO_list_resetlock () from /lib/tls/libc.so.6
#10 0xbfffef0c in ?? ()
#11 0x3711e4cb in ?? ()
#12 0xffffffff in ?? ()
#13 0x00000000 in ?? ()
#14 0x4024fe9c in ?? () from /lib/tls/libc.so.6
#15 0x0811e4cb in ?? ()
#16 0xbfffef0c in ?? ()
#17 0xbffff088 in ?? ()
#18 0x4017db71 in vsprintf () from /lib/tls/libc.so.6
#19 0xbfffef0c in ?? ()
#20 0x080f9b48 in ?? ()
#21 0xbfffefdc in ?? ()
#22 0x0811e4cb in ?? ()
#23 0x00000000 in ?? ()
#24 0x00000000 in ?? ()
#25 0x00000000 in ?? ()
#26 0x00000001 in ?? ()
#27 0x00000000 in ?? ()
#28 0x00000000 in ?? ()
#29 0x00000000 in ?? ()
#30 0x00000063 in ?? ()
#31 0x088f8ca8 in ?? ()
#32 0x00000001 in ?? ()
#33 0x00000000 in ?? ()
#34 0x00000000 in ?? ()
#35 0x00000000 in ?? ()
#36 0x00000000 in ?? ()
#37 0x00000000 in ?? ()
#38 0x080f9b48 in ?? ()
#39 0x00000000 in ?? ()
#40 0x4005f8c5 in _nc_outch () from /usr/lib/libncursesw.so.5
Previous frame inner to this frame (corrupt stack?)
(gdb) quit