[cbiedl at gmx.de: Bug#265069: bogofilter: segfaults when using ignore list option]

Clint Adams schizo at debian.org
Wed Aug 11 18:04:31 CEST 2004


----- Forwarded message from Christoph Biedl <cbiedl at gmx.de> -----

Date: Wed, 11 Aug 2004 17:43:01 +0200
From: Christoph Biedl <cbiedl at gmx.de>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: Bug#265069: bogofilter: segfaults when using ignore list option

Package: bogofilter
Version: 0.92.4-1
Severity: normal

When trying to tune my filtering mechanism I wanted to make use of the
ignore list wordlist option. However, bogofilter stopped working then
and some research revealed that just using that option cases a
segfault.

how to repeat:
# (copy'n'paste friendly edition :)
mkdir /tmp/.bogofilter
# initialize wordlist.db using an arbitrary message
bogofilter -s -d /tmp/.bogofilter/ <bogo-test.msg                             
# initialize ignore.db
echo foo | bogoutil -l /tmp/.bogofilter/ignore.db

# now do anything, e.g. config check
bogofilter -d /tmp/.bogofilter/ '--wordlist=I,ignore,ignore.db,2' -Q
# Segmentation fault

# or check that message
bogofilter -d /tmp/.bogofilter/ '--wordlist=I,ignore,ignore.db,2' <bogo-test.msg
# ditto

# the problem is appearently within the processing (opening?) of type
# I(gnore) worldlist since treating that list as R(egular)
bogofilter -d /tmp/.bogofilter/ '--wordlist=R,ignore,ignore.db,2' -Q
#                                           ^
# works

last words (from strace):

(...)
open("/tmp/.bogofilter/ignore.db", O_RDONLY|O_LARGEFILE) = 3
fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
mmap2(NULL, 8192, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40900000
fstat64(3, {st_mode=S_IFREG|0644, st_size=8192, ...}) = 0
getrlimit(RLIMIT_FSIZE, {rlim_cur=RLIM_INFINITY,
rlim_max=RLIM_INFINITY}) = 0
fcntl64(3, F_SETLK, {type=F_RDLCK, whence=SEEK_SET, start=0, len=0}) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++



-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro

Versions of packages bogofilter depends on:
ii  libc6                       2.3.2.ds1-13 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-16    Berkeley v4.2 Database Libraries [
ii  libgsl0                     1.5-2        The GNU Scientific Library (GSL) -

-- no debconf information

----- End forwarded message -----



More information about the bogofilter-dev mailing list