Re: [Mutt] #2902: Segmentation fault with IMAP/"The message index
#2902: Segmentation fault with IMAP/"The message index is incorrect. Try
reopening
the mailbox."
------------------------+---------------------------------------------------
Reporter: neteler | Owner: brendan
Type: defect | Status: closed
Priority: major | Milestone: 1.6
Component: IMAP | Version: 1.5.16
Resolution: duplicate | Keywords:
------------------------+---------------------------------------------------
Changes (by brendan):
* status: started => closed
* resolution: => duplicate
Old description:
> Mutt regularly crashes for me. I am using an IMAP box (Microsoft IMAP
> server), in parallel also thunderbird is listening to auto-filter
> selected messages into IMAP folders. This happens:
>
> {{{
> ---Mutt: imap://neteler@ntmail/INBOX [Msgs:1126 New:169 30M]---(reverse-
> date-received/date)------(3%)---
> Sorting mailbox...
> ---Type <return> to continue, or q <return> to quit---
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 182894227392 (LWP 9617)]
> 0x000000000047c3c9 in imap_cache_del (idata=0x6035d0, h=0x8aeba0) at
> message.c:919
> 919 snprintf (id, sizeof (id), "%u-%u", idata->uid_validity,
> HEADER_DATA(h)->uid);
> (gdb) bt
>
> 0x000000000047c3c9 in imap_cache_del (idata=0x6035d0, h=0x8aeba0) at
> message.c:919
> 919 snprintf (id, sizeof (id), "%u-%u", idata->uid_validity,
> HEADER_DATA(h)->uid);
> (gdb) bt
> #0 0x000000000047c3c9 in imap_cache_del (idata=0x6035d0, h=0x8aeba0) at
> message.c:919
> #1 0x000000000047cd28 in imap_fetch_message (msg=0x8af110, ctx=0x5fe130,
> msgno=Variable "msgno" is not available.
> ) at message.c:539
> #2 0x000000000043bcaf in mx_open_message (ctx=0x5fe130, msgno=0) at
> mx.c:1407
> #3 0x000000000044632b in mutt_pattern_exec (pat=0x602680, flags=Variable
> "flags" is not available.
> ) at pattern.c:170
> #4 0x0000000000419a5c in mutt_set_header_color (ctx=0x5fe130,
> curhdr=0x8aeba0) at curs_main.c:2193
> #5 0x00000000004228fd in _mutt_set_flag (ctx=0x5fe130, h=0x8aeba0,
> flag=Variable "flag" is not available.
> ) at flags.c:246
> #6 0x000000000047c732 in imap_set_flags (idata=Variable "idata" is not
> available.
> ) at message.c:978
> #7 0x00000000004782f1 in imap_cmd_step (idata=0x6035d0) at command.c:597
> #8 0x00000000004784de in imap_exec (idata=0x6035d0, cmdstr=Variable
> "cmdstr" is not available.
> ) at command.c:265
> #9 0x0000000000479c93 in imap_check_mailbox (ctx=Variable "ctx" is not
> available.
> ) at imap.c:1385
> #10 0x000000000041a267 in mutt_index_menu () at curs_main.c:485
> #11 0x0000000000432746 in main (argc=1, argv=0x7fbffff658) at main.c:985
> (gdb)
>
> mutt -v
> Mutt 1.5.15 (2007-04-06)
> 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.9-55.ELsmp (x86_64)
> ncurses: ncurses 5.4.20040724 (compiled with 5.4)
> libidn: 0.5.6 (compiled with 0.5.6)
> 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=".INBOX"
> 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/.
>
> uname -a
> Linux bartok 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64
> x86_64 x86_64 GNU/Linux
>
> cat /etc/issue
> Red Hat Enterprise Linux WS release 4 (Nahant Update 5)
>
> }}}
>
> Regards,
> Markus
New description:
Mutt regularly crashes for me. I am using an IMAP box (Microsoft IMAP
server), in parallel also thunderbird is listening to auto-filter selected
messages into IMAP folders. This happens:
{{{
---Mutt: imap://neteler@ntmail/INBOX [Msgs:1126 New:169 30M]---(reverse-
date-received/date)------(3%)---
Sorting mailbox...
---Type <return> to continue, or q <return> to quit---
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 182894227392 (LWP 9617)]
0x000000000047c3c9 in imap_cache_del (idata=0x6035d0, h=0x8aeba0) at
message.c:919
919 snprintf (id, sizeof (id), "%u-%u", idata->uid_validity,
HEADER_DATA(h)->uid);
(gdb) bt
0x000000000047c3c9 in imap_cache_del (idata=0x6035d0, h=0x8aeba0) at
message.c:919
919 snprintf (id, sizeof (id), "%u-%u", idata->uid_validity,
HEADER_DATA(h)->uid);
(gdb) bt
#0 0x000000000047c3c9 in imap_cache_del (idata=0x6035d0, h=0x8aeba0) at
message.c:919
#1 0x000000000047cd28 in imap_fetch_message (msg=0x8af110, ctx=0x5fe130,
msgno=Variable "msgno" is not available.
) at message.c:539
#2 0x000000000043bcaf in mx_open_message (ctx=0x5fe130, msgno=0) at
mx.c:1407
#3 0x000000000044632b in mutt_pattern_exec (pat=0x602680, flags=Variable
"flags" is not available.
) at pattern.c:170
#4 0x0000000000419a5c in mutt_set_header_color (ctx=0x5fe130,
curhdr=0x8aeba0) at curs_main.c:2193
#5 0x00000000004228fd in _mutt_set_flag (ctx=0x5fe130, h=0x8aeba0,
flag=Variable "flag" is not available.
) at flags.c:246
#6 0x000000000047c732 in imap_set_flags (idata=Variable "idata" is not
available.
) at message.c:978
#7 0x00000000004782f1 in imap_cmd_step (idata=0x6035d0) at command.c:597
#8 0x00000000004784de in imap_exec (idata=0x6035d0, cmdstr=Variable
"cmdstr" is not available.
) at command.c:265
#9 0x0000000000479c93 in imap_check_mailbox (ctx=Variable "ctx" is not
available.
) at imap.c:1385
#10 0x000000000041a267 in mutt_index_menu () at curs_main.c:485
#11 0x0000000000432746 in main (argc=1, argv=0x7fbffff658) at main.c:985
(gdb)
mutt -v
Mutt 1.5.15 (2007-04-06)
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.9-55.ELsmp (x86_64)
ncurses: ncurses 5.4.20040724 (compiled with 5.4)
libidn: 0.5.6 (compiled with 0.5.6)
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=".INBOX"
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/.
uname -a
Linux bartok 2.6.9-55.ELsmp #1 SMP Fri Apr 20 16:36:54 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux
cat /etc/issue
Red Hat Enterprise Linux WS release 4 (Nahant Update 5)
}}}
Regards,
Markus
--
Comment:
No response. #2935 is still open and probably covers the remains of this
bug.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2902#comment:>
Mutt <http://www.mutt.org/>
The Mutt mail user agent