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

Segfault with CVS mutt



When opening an IMAPS mailbox, I am getting a crash with the
head-of-CVS mutt.  The mailbox starts to read in the headers, then
mutt prints out "Error opening mailbox" and segfaults.

Here is a backtrace, 'mutt -v' output is below that, and the tail of
.muttdebug0 is after that.

David

Program received signal SIGSEGV, Segmentation fault.
imap_free_header_data (data=0x54) at message.c:943
943       mutt_free_list (&(((IMAP_HEADER_DATA*) *data)->keywords));
(gdb) p data
$1 = (void **) 0x54
(gdb) bt full
#0  imap_free_header_data (data=0x54) at message.c:943
No locals.
#1  0x080e3bcc in imap_close_mailbox (ctx=0x92d8980) at imap.c:1303
        i = 7
#2  0x08091db4 in mx_fastclose_mailbox (ctx=0x92d8980) at mx.c:750
        i = 0
#3  0x08091d5b in mx_open_mailbox (
    path=0xbfc71450 "imaps://xxx.xxx.xxx/INBOX", flags=0, pctx=0x0)
    at mx.c:731
        ctx = (CONTEXT *) 0x92d8980
        rc = -1
#4  0x080679e7 in mutt_index_menu () at curs_main.c:1118
        buf = "imaps://xxx.xxx.xxx/INBOX", '\0' <repeats 989 times>
        helpstr = "q:Quit  d:Del  u:Undel  s:Save  m:Mail      
?:Help\000\000<\000\000\000\000\000\000\000=\000\000\000\000\000\000\000P\000\000\000\000\000\000\000\204�\204\000l;\006\b\000\000\000\0008\024ǿM�\177\000h\232$\thE,\tH\024ǿ�1\006\bh\232$\t\000\000\000\000\210\030ǿ\212<\006\b"
        op = 99
        done = 0
        i = 0
        j = 134772526
        tag = 0
        newcount = 0
        oldcount = 0
        rc = -1
        menu = (MUTTMENU *) 0x92c6050
        cp = 0x80ef6d3 "Open mailbox"
        index_hint = 0
        do_buffy_notify = 1
        close = 0
        attach_msg = 0
#5  0x08086567 in main (argc=3, argv=0xbfc72074) at main.c:963
        folder = "x", '\0' <repeats 254 times>
        subject = 0x0
        includeFile = 0x0
        draftFile = 0x0
        newMagic = 0x0
        msg = (HEADER *) 0x0
        attach = (LIST *) 0x0
        commands = (LIST *) 0x0
        queries = (LIST *) 0x0
        alias_queries = (LIST *) 0x0
        sendflags = 0
        flags = 0
        version = 0
        i = -1
        explicit_folder = 1
        dump_variables = 0

$ ./mutt -v
Mutt 1.5.13 (2007-01-26)
Copyright (C) 1996-2006 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-1.2868.fc6 (i686) [using slang 20006] [using libidn 0.6.5 
(compiled with 0.6.5)]
Compile options:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK   +USE_INODESORT   
+USE_POP  +USE_IMAP  -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  
-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  -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/.

Here is the tail of .muttdebug0:

5< )
5< * 678 FETCH (UID 12020 FLAGS () INTERNALDATE " 5-Feb-2007 16:45:16 -0500" 
RFC822.SIZE 1552 BODY[HEADER.FIELDS (DATE FROM SUBJECT TO CC MESSAGE-ID 
REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES 
LIST-POST X-LABEL)] 
{687}
Handling FETCH
FETCH response ignored for this message
imap_read_literal: reading 687 bytes
Date: Mon, 5 Feb 2007 16:42:01 -0500
From: XXXXXX
Subject: XXXXXXX
To: "XXXX" <x@xxxxx>, "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>, "x" <x@xxxxx>,
        "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>,
        "XXXX" <x@xxxxx>
Message-Id: <200702052142.l15Lg1Vb029402@xxxxxxxxxx>

5< )
5< a0005 NO There is insufficient disk space to complete operation.
IMAP queue drained
Error opening mailbox