#1 bmf 0.81 SEGVs when run with -t

closed-fixed
nobody
None
5
2002-10-12
2002-10-05
Anonymous
No

0:44 636 src/bmf-0.81> bmf -f db -t -s < ~/Mail/spam
Segmentation fault (core dumped)

0:45 ori 638 src/bmf-0.81> gdb ./bmf core
GNU gdb 20010813 (MI_OUT)
Copyright 2001 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 "i386-mandrake-linux"...
Core was generated by `bmf -f db -t -s'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libdb-3.2.so...done.
Loaded symbols for /lib/libdb-3.2.so
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0 0x0804df3a in strncpylwr (d=0xbfffe549 "",
s=0x7fc <Address 0x7fc out of bounds>,
n=1074539021) at str.c:34
34 *d++ = tolower(*s++);
(gdb) where
#0 0x0804df3a in strncpylwr (d=0xbfffe549 "",
s=0x7fc <Address 0x7fc out of bounds>,
n=1074539021) at str.c:34
#1 0x08048f9e in statdump (pstat=0xbffff590, fd=1) at
bmf.c:37
#2 0x08049bd2 in main (argc=5, argv=0xbffff744) at
bmf.c:380
#3 0x400ca5b0 in __libc_start_main () from
/lib/libc.so.6
(gdb) q

Works fine without -t.

Discussion

  • Tom Marshall
    Tom Marshall
    2002-10-06

    Logged In: YES
    user_id=614531

    The SEGV will be fixed in 0.82. It's not expecting both -t
    (test)
    and -s (mark as spam) modes -- they are meant to be mutually
    exclusive.

    Also, please note that piping an entire mbox is not currently
    supported because formail(1) provides this functionality
    with its
    -s option (nb: see request 618876). I will add this feature if
    enough users want it anyway.

     
  • Tom Marshall
    Tom Marshall
    2002-10-07

    Logged In: YES
    user_id=614531

    Claim fixed in 0.82. Please verify.

     
  • Tom Marshall
    Tom Marshall
    2002-10-07

    • status: open --> pending
     
  • Tom Marshall
    Tom Marshall
    2002-10-12

    • status: pending --> closed-fixed
     
  • Tom Marshall
    Tom Marshall
    2002-10-12

    Logged In: YES
    user_id=614531

    No response for one week, assume closed.

    Note 0.9.1 now supports piping an entire mbox.