SA Bugzilla – Bug 4645
spamassassin core dump with snoopy
Last modified: 2006-12-05 11:31:51 UTC
I installed snoopylogger (http://sourceforge.net/projects/snoopylogger/). snoopylogger hooks into the system via the LD_PRELOAD mechanism. It puts a wrapper around the 'execv' and 'execve' calls to add logging. To reproduce this download snoopylogger and build it. I do not think you need to install it. Simply run export LD_PRELOAD=/path/snoopy.so spamassassin unset LD_PRELOAD You will get a segmentation fault. I noticed this because after I installed snoopy logger my home directory was full of core files. (no debug symbols so they were not useful).
Normally one doesn't run spamassassin with no parameters and no input. Can you try export LD_PRELOAD=/path/snoopy.so spamassassin <MailMessageFile unset LD_PRELOAD and see if the problem still exists? Q: Why do you flag this as a critical SA item, if SA does not fail on its own, but only if you insist on using snoopylogger? I would think you would at least open a snoopylogger bug so it would be worked on from that end also, no? Also, reading http://sourceforge.net/tracker/index.php?func=detail&aid=612504&group_id=9226&atid=109226 suggests that this may very well be a problem within snoopylogger, since the symptom (segmentation failure) seems the same. Please clarify.
(In reply to comment #1) > Normally one doesn't run spamassassin with no parameters and no input. Can you try That is true. I was just providing the simplest cast that failed. Each incoming msg caused a core file in my home directory meaning each procmail invocation of spamassassin crashed. > Q: Why do you flag this as a critical SA item, if SA does not fail on its own, > but only if you insist on using snoopylogger? I would think you would at least > open a snoopylogger bug so it would be worked on from that end also, no? You have a valid point. I flagged SA because no other application I am running has shown a problem. It seems specific to SA / snoopylogger interaction and it causes the filesystem to fill up with core files. > Also, reading > http://sourceforge.net/tracker/index.php?func=detail&aid=612504&group_id=9226&atid=109226 > suggests that this may very well be a problem within snoopylogger, since the > symptom (segmentation failure) seems the same. Thank you for pointing this out. I will examine the snoopylogger code in detail and see if I can fix that myself. Perhaps the segfault is within a subsequent exec call with corrupted argument sizes.
This isn't a SpamAssassin issue as far as I can see. It's either an issue with snoopy or perl.