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

Backtrace: SIGSEGV with corrupt(?) hcache



Greetings,

I have recently purged my whole .mutt/hcache/* directory
because mutt would crash while reading my ~/Maildir/

The backtrace is:

#0  0xb7c7b4cc in memcpy () from /lib/libc.so.6
#1  0x080c7c86 in restore_char (c=0x5242f759, d=0x81be8ac "rnet@xxxxxxxxxxxx", 
off=0x81daffd) at ../hcache.c:175
#2  0x080c7d27 in restore_address (a=0x81beb5c, d=0x81be838 "\237xaFv*\004", 
off=0xbfdad3b8) at ../hcache.c:217
#3  0x080c84f4 in mutt_hcache_restore (d=0x81be838 "\237xaFv*\004", 
oh=0x819acc8) at ../hcache.c:423
#4  0x08082b42 in maildir_delayed_parsing (ctx=0x8141ec0, md=0x819acc8, 
progress=0xbfdad698) at ../mh.c:1029
#5  0x08083d2c in mh_read_dir (ctx=0x8141ec0, subdir=0x80ddf89 "cur") at 
../mh.c:1111
#6  0x08083d8f in maildir_read_dir (ctx=0x8141ec0) at ../mh.c:1128
#7  0x08087777 in mx_open_mailbox (path=0xbfdae158 "/home/emma/Maildir/", 
flags=<value optimized out>, pctx=0xbfdad3b8) at ../mx.c:682
#8  0x0807d4db in main (argc=1, argv=0xbfdae374) at ../main.c:986

And the related version from Mercurial:

$ hg tip
changeset:   5187:82354e0d2399
branch:      HEAD
tag:         tip
user:        Aron Griffis <agriffis@xxxxxxxxx>
date:        Mon Jul 09 09:45:19 2007 -0400
summary:     Clean up mx.c: init stat structs to zero

$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE=POSIX
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

$ LC_ALL=C ./mutt -v
Mutt 1.5.16 (2007-07-04)
Copyright (C) 1996-2007 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.18.8-0.5-default (i686)
ncurses: ncurses 5.5.20060513 (compiled with 5.5)
libidn: 0.6.8 (compiled with 0.1.14)
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  -USE_SETGID  +USE_DOTLOCK  -DL_STANDALONE
+USE_FCNTL  -USE_FLOCK   -USE_INODESORT
+USE_POP  +USE_IMAP  -USE_SMTP  -USE_GSS  +USE_SSL_OPENSSL  -USE_SSL_GNUTLS  
+USE_SASL  +HAVE_GETADDRINFO
+HAVE_REGCOMP  -USE_GNU_REGEX
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME
-EXACT_ADDRESS  -SUN_ATTACHMENT
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
To report a bug, please visit http://bugs.mutt.org/.

$ ldd ./mutt
        linux-gate.so.1 =>  (0xffffe000)
        libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0xb7e68000)
        libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0xb7e2b000)
        libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0xb7cf8000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7ce0000)
        libqdbm.so.3 => /usr/local/lib/libqdbm.so.3 (0xb7cc1000)
        libidn.so.11 => /usr/lib/libidn.so.11 (0xb7c8f000)
        libc.so.6 => /lib/libc.so.6 (0xb7b61000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7b5d000)
        libz.so.1 => /lib/libz.so.1 (0xb7b4a000)
        libresolv.so.2 => /lib/libresolv.so.2 (0xb7b37000)
        /lib/ld-linux.so.2 (0xb7efd000)

QDBM is version 1.8.17 as far as "strings" tells me.

I've kept the core file, but not the hcache files.
If anyone wants to have a look...

Any ideas?

-- 
Matthias Andree