Re: how to debug (and fix) mutt?
On 2006-02-24, Toby wrote:
> Bram Mertens wrote:
> > (gdb) bt
> > #0 0xb7cf6aa8 in strncpy () from /lib/tls/i686/cmov/libc.so.6
> > #1 0x080d8943 in ?? ()
> > #2 0x00000000 in ?? ()
>
> Corrupted stack. That core file is unusable and I wouldn't know where
> to start to debug such a thing. But I'm a gdb newbie :)
OK, too bad. Anything I can do to get a good core file? With or
without debug level perhaps?
> I stand by my opinion that a library mismatch is causing it.
> Do you have any LD_* environment variables set? Anything unusual in
> /etc/ld.so.conf or /etc/ld.so.preload?
/etc/ld.so.preload doesn't exist on my system and /etc/ld.so.conf only
has the following line in it:
/usr/X11R6/lib
> Try "ldd /usr/bin/mutt" and see if something points to the wrong place.
> My Mutt 1.5.9i 2005-03-13 from Debian Unstable looks like this:
> linux-gate.so.1 => (0xffffe000)
> libncursesw.so.5 => /lib/libncursesw.so.5 (0x4115c000)
> libgnutls.so.11 => /usr/lib/libgnutls.so.11 (0x419d3000)
> libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0x41314000)
> libidn.so.11 => /usr/lib/libidn.so.11 (0x4110d000)
> libdb-4.3.so => /usr/lib/libdb-4.3.so (0x41351000)
> libc.so.6 => /lib/tls/libc.so.6 (0x4fe2e000)
> libdl.so.2 => /lib/tls/libdl.so.2 (0x4ff8e000)
> libtasn1.so.2 => /usr/lib/libtasn1.so.2 (0x4114a000)
> libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0x41205000)
> libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x41037000)
> libz.so.1 => /usr/lib/libz.so.1 (0x4133b000)
> libresolv.so.2 => /lib/tls/libresolv.so.2 (0x41018000)
> /lib/ld-linux.so.2 (0x4fe01000)
> libnsl.so.1 => /lib/tls/libnsl.so.1 (0x41000000)
> don't ask me what that linux-gate.so.1 is supposed to be though.
0:m8ram@valinor:~$ ldd /usr/bin/mutt
linux-gate.so.1 => (0xffffe000)
libncursesw.so.5 => /lib/libncursesw.so.5 (0xb7f8f000)
libgnutls.so.11 => /usr/lib/libgnutls.so.11 (0xb7f2e000)
libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7f1a000)
libidn.so.11 => /usr/lib/libidn.so.11 (0xb7eea000)
libdb-4.3.so => /usr/lib/libdb-4.3.so (0xb7e05000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7cce000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7cca000)
libtasn1.so.2 => /usr/lib/libtasn1.so.2 (0xb7cba000)
libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb7c6c000)
libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7c68000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7c54000)
libresolv.so.2 => /lib/tls/i686/cmov/libresolv.so.2 (0xb7c40000)
/lib/ld-linux.so.2 (0xb7fea000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7c2a000)
> Maybe you could try verifying your system files. "debsums" is sort of
> a Debian version of Tripwire: run it against a Debian archive.
debsums complains about several files from the aspell packages as well
as some kernel modules.
I tried removing and reinstalling the aspell packages but that didn't
help...
I'll try reinstalling the previous (non cvs) version of mutt if that
helps I'll perform the ugrade on this machine as well.
Regards
Bram
--
# Mertens Bram "M8ram" <bram-mertens@xxxxxxxx> Linux User #349737 #
# debian testing kernel 2.6.12-1-686 i686 512MB RAM #
# 21:12:41 up 45 min, 4 users, load average: 0.00, 0.00, 0.10 #