Re: mutt/1443: Sorting mailbox sometimes causes a segmentation fault.
http://bugs.mutt.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=mutt&pr=1443
I think I'm still seeing this with mutt-1.5.9. Sometimes when I hit '$',
it coredumps displaying
"Sorting mailbox...zsh: segmentation fault (core dumped) mutt -d 65535"
Is there other information that would help?
Ben
--------------------------------------------------------------------------
caml[1010-0]% gdb =mutt mutt.core
GNU gdb 6.1.1 [FreeBSD]
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-marcel-freebsd"...
Core was generated by `mutt'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libslang.so.1...done.
Loaded symbols for /usr/local/lib/libslang.so.1
Reading symbols from /lib/libm.so.3...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /usr/lib/libssl.so.3...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /lib/libcrypto.so.3...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/local/lib/libintl.so.6...done.
Loaded symbols for /usr/local/lib/libintl.so.6
Reading symbols from /usr/local/lib/libidn.so.16...done.
Loaded symbols for /usr/local/lib/libidn.so.16
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /usr/local/lib/libdb-4.2.so.2...done.
Loaded symbols for /usr/local/lib/libdb-4.2.so.2
Reading symbols from /lib/libc.so.5...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x080bd4ce in find_subject (ctx=0x813e480, cur=0x81d36c0) at thread.c:432
432 if (tmp != cur && /* don't match the same
message */
(gdb) where
#0 0x080bd4ce in find_subject (ctx=0x813e480, cur=0x81d36c0) at thread.c:432
#1 0x080bd6e5 in pseudo_threads (ctx=0x813e480) at thread.c:503
#2 0x080be49a in mutt_sort_threads (ctx=0x813e480, init=1) at thread.c:956
#3 0x080bb343 in mutt_sort_headers (ctx=0x813e480, init=1) at sort.c:291
#4 0x080e09aa in imap_expunge_mailbox (idata=0x8139000) at imap.c:257
#5 0x080df8b1 in imap_cmd_finish (idata=0x8139000) at command.c:271
#6 0x080df4e4 in imap_cmd_step (idata=0x8139000) at command.c:157
#7 0x080df6f0 in imap_exec (idata=0x8139000, cmd=0x80fc922 "EXPUNGE", flags=0)
at command.c:210
#8 0x080e2a21 in imap_sync_mailbox (ctx=0x813e480, expunge=1,
index_hint=0xbfbfd944) at imap.c:1088
#9 0x08093924 in mx_sync_mailbox (ctx=0x813e480, index_hint=0xbfbfd944) at
mx.c:1284
#10 0x080686fb in mutt_index_menu () at curs_main.c:1017
#11 0x08086938 in main (argc=3, argv=0xbfbfe630) at main.c:946
(gdb) list
427 hash = hash_string ((unsigned char *) subjects->data,
428 ctx->subj_hash->nelem);
429 for (ptr = ctx->subj_hash->table[hash]; ptr; ptr = ptr->next)
430 {
431 tmp = ((HEADER *) ptr->data)->thread;
432 if (tmp != cur && /* don't match the same
message */
433 !tmp->fake_thread && /* don't match pseudo
threads */
434 tmp->message->subject_changed && /* only match interesting
replies */
435 !is_descendant (tmp, cur) && /* don't match in the same
thread */
436 (date >= (option (OPTTHREADRECEIVED) ?
(gdb) print *tmp
$1 = {fake_thread = 0, duplicate_thread = 0, sort_children = 0, check_subject =
0, visible = 0, deep = 0, subtree_visible = 0,
next_subtree_visible = 0, parent = 0x0, child = 0x81d3660, next = 0x81d3640,
prev = 0x0, message = 0x0, sort_key = 0x0}
--------------------------------------------------------------------------
Mutt 1.5.9i (2005-03-13)
Copyright (C) 1996-2002 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: FreeBSD 5.4-RELEASE-p6 (i386) [using slang 10409] [using libiconv
1.9] [using libidn 0.5.18 (compiled with 0.5.18)]
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE
-USE_FCNTL +USE_FLOCK -USE_INODESORT
+USE_POP +USE_IMAP +IMAP_EDIT_THREADS -USE_GSS +USE_SSL -USE_GNUTLS
-USE_SASL -USE_SASL2
+HAVE_REGCOMP -USE_GNU_REGEX +COMPRESSED
+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 -BUFFY_SIZE -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 +HAVE_GETADDRINFO
+USE_HCACHE
ISPELL="/usr/local/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 use the flea(1) utility.
patch-1.5.6.cb.reverse_reply.2
patch-1.5.7.tg.edit_threads.1
patch-1.5.7.ust.maildir-mtime.2
mutt-cvs-header-cache.29
patch-1.5.6+20040904.tg.mutt-thread.3
patch-1.5.6.dw.mbox-hook.1
patch-1.5.0.ats.date_conditional.1
dgc.deepif.1
vvv.quote
patch-1.5.4.cd.ifdef.1
vvv.initials
rr.compressed
--------------------------------------------------------------------------
--
Ben Korvemaker Eagles may soar, but weasels don't
bfkorvem@xxxxxxxxxxxx get sucked into jet engines.