You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2005/09/16 09:06:46 UTC

[Bug 4588] New: spamd pre-forker parent segfaults

http://bugzilla.spamassassin.org/show_bug.cgi?id=4588

           Summary: spamd pre-forker parent segfaults
           Product: Spamassassin
           Version: 3.1.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P5
         Component: spamc/spamd
        AssignedTo: dev@spamassassin.apache.org
        ReportedBy: kgc@sonic.net


spamd parent segfaults (quickly) under real world email flows under perl 5.6.1
on linux when using new pre-forker child management.  Problem does not manifest
when using the old child management system via --round-robin.

Worth noting that the bug also does not manifest when given a mail flow to
process as single user.

Arguments leading to failure:

spamd -d -x -Q -i 0.0.0.0 -H /opt/spamassassin/home/ -p 784 -A 127.0.0.1
--max-children=40

FWIW:

(gdb) bt
#0  0x400cc50d in memmove () from /lib/libc.so.6
#1  0x080a4eb0 in Perl_sv_setpvn ()
#2  0x080b8275 in Perl_pp_split ()
#3  0x08099dd8 in Perl_runops_standard ()
#4  0x0805c2c1 in S_run_body ()
#5  0x0805c04b in perl_run ()
#6  0x08059c91 in main ()
#7  0x400681c4 in __libc_start_main () from /lib/libc.so.6

Debug output immediately before segfault:

[16816] dbg: prefork: child 16863: entering state 3
[16816] dbg: prefork: new lowest idle kid: 16819
[16816] dbg: prefork: adjust: decreasing, too many idle children (3 > 2), killed
16863
[16816] dbg: prefork: new lowest idle kid: 16819
[16816] info: spamd: handled cleanup of child pid 16863 due to SIGCHLD

This is easily reproducable on my systems.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4588] spamd pre-forker parent segfaults

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4588





------- Additional Comments From kgc@sonic.net  2005-09-16 10:31 -------
working on it now, of course, doesn't seem to want to crash when running under
strace. ;)



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4588] spamd pre-forker parent segfaults

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4588





------- Additional Comments From jm@jmason.org  2005-09-16 10:19 -------
Hi Kelsey --

memmove()!  oh dear, that's not promising :(
any chance of an strace log?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4588] spamd pre-forker parent segfaults

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4588





------- Additional Comments From kgc@sonic.net  2005-09-16 10:57 -------
pthreads? WTF?

open("/lib/libpthread.so.0", O_RDONLY)  = 5

What's doing threads in SA now?





------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4588] spamd pre-forker parent segfaults

Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4588


felicity@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From felicity@apache.org  2006-08-02 00:31 -------
Since it looks like it's a perl related issue, I'm closing as wfm since there's
not much we can do about that. :|



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4588] spamd pre-forker parent segfaults

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4588





------- Additional Comments From jm@jmason.org  2005-09-16 10:44 -------
oh, that sounds familiar.  have you checked the pthread libraries are up to date?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

[Bug 4588] spamd pre-forker parent segfaults

Posted by bu...@bugzilla.spamassassin.org.
http://bugzilla.spamassassin.org/show_bug.cgi?id=4588





------- Additional Comments From jm@jmason.org  2005-09-16 11:46 -------
nothing in SA uses threads -- but perl may link against libpthread, and strace
interferes with how pthreads were implemented (before NPTL) which would result
in differing behaviour depending on whether or not the app was being straced or not.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.