Segmentation fault in mailbox read

From: Shane Wegner <shane_at_cm.nu_at_hypermail-project.org>
Date: Wed, 23 Feb 2000 19:17:00 -0800
Message-ID: <20000223191700.A9577_at_cm.nu>


Hi,

Hopefully this is enough information to debug the problem. I have a small message from a mailing list which crashes hypermail with a segmentation fault.

continuum:~/hypermail$ gdb ~/incoming/hypermail/hypermail-2b29/src/hypermail GNU gdb 19990928
Copyright 1998 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 "i686-pc-linux-gnu"...
(gdb) set args -m destin50.msg -d .
(gdb) run

Starting program:
/home/staff/shane/incoming/hypermail/hypermail-2b29/src/hypermail -m destin50.msg -d .

Program received signal SIGSEGV, Segmentation fault. 0x8054143 in rmlastlines (bp=0x0) at struct.c:611 611 (tempnode->next->line)[0] != '\0'; tempnode = tempnode->next);
(gdb) bt

#0 0x8054143 in rmlastlines (bp=0x0) at struct.c:611 #1 0x804dfbf in parsemail (mbox=0x80664c8 "destin50.msg", use_stdin=0,

    readone=0, increment=0, dir=0x8066528 ".", inlinehtml=1, startnum=0)     at parse.c:2164
#2 0x804ac1e in main (argc=5, argv=0xbffff884) at hypermail.c:488
(gdb)

I am not familiar enough with HM to debug this but I have mime-attached the offending message.

Hypermail 2b29, Linux 2.2.14, Glibc 2.1, gcc 2.95.2 (i586). If you cannot reproduce the error, let me know and I can attach my binary and core files to a private message.

Best regards,
Shane

-- 
Shane Wegner: shane_at_cm.nu
Personal website: http://www.cm.nu/~shane	Fax: (604) 930-0529
PGP: keyid:       2048/1C0FFA59			ICQ UIN: 120000
     Fingerprint: C6 5F B3 85 0B 11 30 F3
                  52 89 0C 6C 49 08 94 7B



  • application/pgp-signature attachment: stored
Received on Thu 24 Feb 2000 05:19:53 AM GMT

This archive was generated by hypermail 2.3.0 : Sat 13 Mar 2010 03:46:12 AM GMT GMT