5 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Crash: signal 0x0B (o...
FromSent OnAttachments
torben fjerdingstadMay 25, 2002 1:53 am 
torben fjerdingstadMay 26, 2002 3:41 am 
Sam VarshavchikMay 26, 2002 8:27 am 
Alberto BenatiMay 26, 2002 8:48 am 
torben fjerdingstadMay 26, 2002 9:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Crash: signal 0x0B (on linux mandrake 7.2)Actions...
From:torben fjerdingstad (unit@tfj.rnd.uni-c.dk)
Date:May 26, 2002 3:41:41 am
List:net.sourceforge.lists.courier-maildrop

On Sat, May 25, 2002 at 10:53:48AM +0200, torben fjerdingstad wrote:

Whenever my if statement in the filter below is matched, maildrop saves the message to the specified maildir and crashes with signal 0x0B (SIGSEGV), and I get tons of duplicates of it.

syslog says "deferral: maildrop:_signal_0x0B/"

I tried two different maildrop versions with the same result maildrop-1.3.7-1mdk.src.rpm (rpm --rebuild) and maildrop-1.3.9.tar.gz (rpm -ta).

The maildir is created with maildirmake from qmail and I don't see anything wrong with it:

$ l -d Maildir.spam Maildir.spam/* drwx------ 5 tfj tfj 4096 May 23 11:43 Maildir.spam drwx------ 2 tfj tfj 4096 May 25 09:32 Maildir.spam/cur drwx------ 2 tfj tfj 8192 May 25 10:31 Maildir.spam/new drwx------ 2 tfj tfj 4096 May 25 10:31 Maildir.spam/tmp

Here is my current ~/.mailfilter:

DEFAULT="$HOME/Maildir/" logfile "$HOME/mail.log"

log "before spamassassin" xfilter "/usr/bin/spamassassin -P"

log "before spam check" if (/^X-Spam-Status: Yes/:h) { log "spam" to "$HOME/Maildir.spam/" }

log "before cc"

cc "!xxxx@yyyyyyyyyyyyyyyyyyy.dk"

log "fall through to default"

exception { log "Unmatched mail" }

Here is the bottom of the generated mail.log after a spam just was redelivered:

before spamassassin before spam check spam Date: Sat May 25 10:31:31 2002 From: bmda-Ginger-X <nqar@excite.com> Subj: Napster Adult-X: Last Chance Offer - Ends in 24Hrs - 100% FREE! File: /usr/tfj/Maildir.spam/ (2933)

I could not wait for help from this mailing list, so I compiled maildrop with CFLAGS="-O2 -g" to be able to debug it.

But the debug version does not crash. The stripped CFLAGS="-O2" version I got by doing rpm -ta maildrop-1.3.9.tar.gz does.

Thus, I assume there is a bug in either maildrop or some of my Mandrake-7.2 system libraries (which I otherwise never had a problem with).

ldd /usr/bin/maildrop.broken gives: $ ldd /usr/bin/maildrop libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x4001f000) libstdc++-libc6.1-2.so.3 => /usr/lib/libstdc++-libc6.1-2.so.3 (0x40025000) libm.so.6 => /lib/libm.so.6 (0x40074000) libc.so.6 => /lib/libc.so.6 (0x40092000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

ldd on the debug version gives exactly the same output.

For now, I use the debug version.

Tlf./Phone +45 35 87 89 41 | UNI-C Fax. +45 35 87 89 90 | Bygning 304 | DK-2800 Lyngby