Summary: | mail-filter/maildrop-2.5.4 segfaults in src_test | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Markus Meier <maekke> |
Component: | Current packages | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | armin76 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | ARM | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 376563 | ||
Attachments: | mail-filter:maildrop-2.5.4:20110813-112352.log |
Description
Markus Meier
2011-08-13 20:53:24 UTC
Fixed (hopefully) without a rev bump. Can you please check and confirm? Thank you. + 15 Aug 2011; Eray Aslan <eras@gentoo.org> maildrop-2.5.4.ebuild, + +files/maildrop-2.5.4-reformime.patch: + Fix segfault in reformime on some arches - bug #379101 + @maekke: ping (In reply to comment #2) > @maekke: ping sorry for the delay, issue is not fixed (armin76 confirmed that on ia64): # 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 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 0x0000b340 in main2 (argc=2, argv=0xbeffe904) at reformime.c:1153 mimesection = <value optimized out> dodecodehdr = 0 p = 0x29840 rwmode = 0 dodsn = 0 domimedigest = 0 dodecodeaddrhdr = 0 convtoutf8 = 0 do_extract = <value optimized out> section = 0x0 doinfo = 1 dorewrite = 0 optc = <value optimized out> dodecode = 0 doencodemime = 0 dovalidate = 0 rc = <value optimized out> argn = 2 doencodemimehdr = 0 extract_filename = 0x17ccc "" #3 main (argc=2, argv=0xbeffe904) at reformime.c:1224 rc = <value optimized out> +1, fails on alpha,ia64,s390,sparc + 31 Aug 2011; Eray Aslan <eras@gentoo.org> + 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. (In reply to comment #5) > + 31 Aug 2011; Eray Aslan <eras@gentoo.org> > + 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) + 05 Sep 2011; Eray Aslan <eras@gentoo.org> + files/maildrop-2.5.4-reformime.patch: + Revized patch for bug #379101 + Patch revised once again hopefully this time fixing the segfault. Please test when you can. Thank you. (In reply to comment #7) > + 05 Sep 2011; Eray Aslan <eras@gentoo.org> > + files/maildrop-2.5.4-reformime.patch: > + Revized patch for bug #379101 > + > > Patch revised once again hopefully this time fixing the segfault. Please test > when you can. Thank you. make[2]: Leaving directory `/var/tmp/portage/mail-filter/maildrop-2.5.4/work/maildrop-2.5.4' make[1]: Leaving directory `/var/tmp/portage/mail-filter/maildrop-2.5.4/work/maildrop-2.5.4' >>> Completed installing maildrop-2.5.4 into /var/tmp/portage/mail-filter/maildrop-2.5.4/image/ yes, now it seems to be fine, also confirmed by armin76 on ia64, thanks! |