#3588: r6214 makes Mutt crash
---------------------+------------------------------------------------------
Reporter: vinc17 | Owner: mutt-dev
Type: defect | Status: new
Priority: blocker | Milestone: 1.6
Component: mutt | Version:
Keywords: |
---------------------+------------------------------------------------------
Comment(by vinc17):
Simple testcase:
== bug3588.mbox ==
{{{
From [email protected] Thu Mar 2 15:15:36 2006
From: =?iso-8859-1?Q?abcd=EFfgh?= <[email protected]>
}}}
This is a 3-line file, the 3rd line being blank.
== bug3588.muttrc ==
{{{
set charset=UTF-8//TRANSLIT
}}}
== Under gdb ==
{{{
$ gdb ~/software/mutt/mutt/mutt
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/vinc17/software/mutt/mutt/mutt...done.
(gdb) run -F bug3588.muttrc -f bug3588.mbox
Reading bug3588.mbox... 0
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6bea849 in *__GI___libc_free (mem=0x75b380) at malloc.c:3724
3724 malloc.c: No such file or directory.
(gdb) bt
#0 0x00007ffff6bea849 in *__GI___libc_free (mem=0x75b380) at
malloc.c:3724
#1 0x000000000046aab1 in safe_free (ptr=ptr@entry=0x75a3d0) at lib.c:198
#2 0x000000000046dbae in mutt_buffer_init (b=b@entry=0x75a3d0)
at muttlib.c:1673
#3 0x000000000046dc06 in mutt_buffer_new () at muttlib.c:1655
#4 0x00000000004709de in mutt_filter_unprintable
(s=s@entry=0x7fffffffaf90)
at mbyte.c:537
#5 0x000000000045a610 in rfc2047_decode_word (len=108,
s=0x75a380 "=?iso-8859-1?Q?abcd=EFfgh?=", d=0x75abc0 "") at
rfc2047.c:717
#6 rfc2047_decode (pd=pd@entry=0x751bc0) at rfc2047.c:890
#7 0x000000000045a818 in rfc2047_decode_adrlist (a=0x751bc0) at
rfc2047.c:914
#8 0x000000000044bda1 in mutt_read_rfc822_header (f=0x750900,
hdr=hdr@entry=0x75a160, user_hdrs=user_hdrs@entry=0,
weed=weed@entry=0)
at parse.c:1427
#9 0x0000000000438080 in mbox_parse_mailbox (ctx=ctx@entry=0x758540)
at mbox.c:307
#10 0x0000000000438e18 in mbox_open_mailbox (ctx=0x758540) at mbox.c:432
#11 0x0000000000441056 in mx_open_mailbox (
path=path@entry=0x7fffffffd1a0 "bug3588.mbox", flags=0,
pctx=pctx@entry=0x0) at mx.c:656
#12 0x000000000040783b in main (argc=1, argv=<optimized out>) at
main.c:1017
(gdb)
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3588#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent