(In reply to comment #5)
> + 31 Aug 2011; Eray Aslan <email address hidden>
> + files/maildrop-2.5.4-reformime.patch:
> + Fix segfault in reformime - bug #379101. Take two
> +
>
> Patch revised without a rev bump. Please test when you can. Also, upstream
> prefers a traceback with a build that disables compiler optimizations if there
> is still a problem. Thanks.
now we're at reformime.c:1160. backtrace without optimizations:
# LANG=en_US.utf-8 gdb ./reformime
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 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 "armv5tel-softfloat-linux-gnueabi".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /var/tmp/portage/mail-filter/maildrop-2.5.4/work/maildrop-2.5.4/rfc2045/reformime...done.
(gdb) set args -i <./testsuite.dat
(gdb) run
Starting program: /var/tmp/portage/mail-filter/maildrop-2.5.4/work/maildrop-2.5.4/rfc2045/reformime -i <./testsuite.dat
section: 1
content-type: text/plain
content-transfer-encoding: 8bit
charset: utf-8
content-description: H��la! test H��la! H��la! test
starting-pos: 0
starting-pos-body: 188
ending-pos: 196
line-count: 7
body-line-count: 1
Program received signal SIGSEGV, Segmentation fault.
0x4010f988 in strspn () from /lib/libc.so.6
(gdb) bt full
#0 0x4010f988 in strspn () from /lib/libc.so.6
No symbol table info available.
#1 0x4011029c in strtok () from /lib/libc.so.6
No symbol table info available.
#2 0x0000ca28 in main2 (mimecharset=0x314e4 "UTF-8", argc=2, argv=0xbeffe904) at reformime.c:1160
argn = 2
optc = 105 'i'
optarg = 0x0
mimesection = 0x0
section = 0x0
doinfo = 1
dodecode = 0
dorewrite = 0
dodsn = 0 domimedigest = 0
dodecodehdr = 0 dodecodeaddrhdr = 0 doencodemime = 0 doencodemimehdr = 0 decode_header = 0x21494 ""
p = 0x32840
rwmode = 0
convtoutf8 = 0
dovalidate = 0
do_extract = 0 extract_filename = 0x0
rc = 0
#3 0x0000ccc4 in main (argc=2, argv=0xbeffe904) at reformime.c:1224
rc = 0
(gdb)
(In reply to comment #5) 2.5.4-reformime .patch:
> + 31 Aug 2011; Eray Aslan <email address hidden>
> + files/maildrop-
> + Fix segfault in reformime - bug #379101. Take two
> +
>
> Patch revised without a rev bump. Please test when you can. Also, upstream
> prefers a traceback with a build that disables compiler optimizations if there
> is still a problem. Thanks.
now we're at reformime.c:1160. backtrace without optimizations:
# LANG=en_US.utf-8 gdb ./reformime gnu.org/ licenses/ gpl.html> softfloat- linux-gnueabi" . bugs.gentoo. org/>... portage/ mail-filter/ maildrop- 2.5.4/work/ maildrop- 2.5.4/rfc2045/ reformime. ..done. portage/ mail-filter/ maildrop- 2.5.4/work/ maildrop- 2.5.4/rfc2045/ reformime -i <./testsuite.dat transfer- encoding: 8bit description: H��la! test H��la! H��la! test
GNU gdb (Gentoo 7.2 p1) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
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 "armv5tel-
For bug reporting instructions, please see:
<http://
Reading symbols from /var/tmp/
(gdb) set args -i <./testsuite.dat
(gdb) run
Starting program: /var/tmp/
section: 1
content-type: text/plain
content-
charset: utf-8
content-
starting-pos: 0
starting-pos-body: 188
ending-pos: 196
line-count: 7
body-line-count: 1
Program received signal SIGSEGV, Segmentation fault. 0x314e4 "UTF-8", argc=2, argv=0xbeffe904) at reformime.c:1160
domimedigest = 0
dodecodeaddrhd r = 0
doencodemime = 0
doencodemimehd r = 0
decode_ header = 0x21494 ""
extract_ filename = 0x0
0x4010f988 in strspn () from /lib/libc.so.6
(gdb) bt full
#0 0x4010f988 in strspn () from /lib/libc.so.6
No symbol table info available.
#1 0x4011029c in strtok () from /lib/libc.so.6
No symbol table info available.
#2 0x0000ca28 in main2 (mimecharset=
argn = 2
optc = 105 'i'
optarg = 0x0
mimesection = 0x0
section = 0x0
doinfo = 1
dodecode = 0
dorewrite = 0
dodsn = 0
dodecodehdr = 0
p = 0x32840
rwmode = 0
convtoutf8 = 0
dovalidate = 0
do_extract = 0
rc = 0
#3 0x0000ccc4 in main (argc=2, argv=0xbeffe904) at reformime.c:1224
rc = 0
(gdb)