Re: Error (signal 11) during auto-train

Brian Burton <[email protected]> Thu, 16 Feb 2006 10:08:40 -0500
Newsgroups gmane.mail.spam.spamprobe.general
Message-ID <[email protected]>
Chris Ross wrote:
>> After processing roughly 10% of the messages, I receive this error:
>>
>>    caught signal 11: quitting
>>
>> Searching about "signal 11", one cause in Linux appears to be  memory 
>> full, and SP is using a large portion (8.5%), but not all,  of the 
>> available memory of the machine.  I included a portion of  the output 
>> at the end of this message.  Can someone shed some light  on this?
> 
>   Signal 11 is a segmentation violation.  That means the program  
> crashed because
> it tried to access data outside of the applications memory space.   It's 
> a bug in
> code, either in spamprobe or some library that spamprobe is compiled  with.
> 
>   If you can run it under a debugger, you may be able to find out where
> the SEGV is being caused.

Yes, it's a problem with SP.  One of the emails is triggering a crash. 
Based on the output it's probably one of the messages in 
X-Spam.Storage.2000.  If that file has X-SpamProbe headers in the 
message you can probably find the right message by looking for the email 
following the one with d21e5e36fcbd7d69d72ab654c593bb6a in the 
X-SpamProbe header.

If you can get SP to crash by scanning just that file or message with 
train-spam then it should be easy to fix this.  Just send me the email 
and I'll take a look at it this weekend.

Also a stack trace would be a big help.  If you could run the program 
under gdb like this:

gdb spamprobe
(gdb) run -c -v auto-train SPAM .X-Spam .X-Spam.Storage* GOOD .Business* 
.Current* .Friends* .Miscellaneous*

Then once the SEGV happens type "where" at the (gdb) prompt.  gdb will 
print a stack trace that should show me where the crash happened.

All the best,
++Brian


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642