http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4693

           Summary: copy_config failure caused disk full -> "Attempt to free
                    unreferenced scalar"
           Product: Spamassassin
           Version: 3.1.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P5
         Component: spamc/spamd
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


something went terribly wrong here...  in approx 24 hours, i had a 34GB spam.log
file and a disk full.  

# grep 'Attempt to free' spamd.log | wc -l
4970786

Approximately 800-900 'Attempt to free' log entries/second is about what i see.
 I t started right after a copy_config failure, which alarm'd 10 seconds after
an incoming connection was logged.

2005-11-17 13:12:12.421475500 [20716] error: __alarm__
2005-11-17 13:12:12.427746500 [20716] warn: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 964.

 from looking at the code in /usr/bin/spamd,  [EMAIL PROTECTED]'__alarm__' 
which should have
made spamd exit and respawned the parent.

         if ($err =~ /__alarm__/) {
            warn("spamd: copy_config timeout, respawning child process after ".
                            ($i+1)." messages");
            exit;         # so that the master spamd can respawn

          } else {
            die $err;     # propagate failures
          }

instead, it went into this spin out of control...  bigger log snippet below.


2005-11-17 13:11:28.095485500 [18735] info: spamd: connection from
localhost.localdomain [127.0.0.1] at port 39950
2005-11-17 13:11:28.097515500 [18735] info: spamd: handle_user unable to find
user: $global
2005-11-17 13:11:28.189210500 [18735] info: spamd: processing message
<[EMAIL PROTECTED]> for $global:200
2005-11-17 13:11:33.943557500 [18735] error: __alarm__
2005-11-17 13:11:36.110337500 [18735] info: spamd: clean message (-99.1/4.5) for
$global:200 in 8.0 seconds, 22460 bytes.
2005-11-17 13:11:36.110834500 [18735] info: spamd: result: . -99 -
AWL,BAYES_50,DBL_12_LETTER_FLDR,DBL_12_LETTER_PGIMG,HTML_MESSAGE,MIME_HTML_ONLY,NO_RECEIVED,NO_RELAYS,USER_IN_WHITELIST
scantime=8.0,size=22460,user=$global,uid=200,required_score=4.5,rhost=localhost.localdomain,raddr=127.0.0.1,rport=39950,mid=<[EMAIL
 PROTECTED]>,bayes=0.487863122868568,autolearn=no
2005-11-17 13:11:36.592555500 [818] info: spamd: handled cleanup of child pid
18735 due to SIGCHLD
2005-11-17 13:11:36.623644500 [818] info: spamd: server successfully spawned
child process, pid 20844
2005-11-17 13:12:02.204952500 [20716] info: spamd: connection from
localhost.localdomain [127.0.0.1] at port 39954
2005-11-17 13:12:12.421475500 [20716] error: __alarm__
2005-11-17 13:12:12.427746500 [20716] warn: spamd: copy_config timeout,
respawning child process after 1 messages at /usr/bin/spamd line 964.
2005-11-17 13:12:15.065816500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.065995500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.066132500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.066269500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.066406500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.066542500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.066678500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.066815500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.067004500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.067146500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.067283500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.067494500 [20716] warn: Attempt to free non-existent shared
string during global destruction.
2005-11-17 13:12:15.067630500 [20716] warn: Attempt to free non-existent shared
string during global destruction.
2005-11-17 13:12:15.067766500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.067903500 [20716] warn: Attempt to free non-existent shared
string during global destruction.
2005-11-17 13:12:15.068038500 [20716] warn: Attempt to free non-existent shared
string during global destruction.
2005-11-17 13:12:15.068172500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.068305500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.068437500 [20716] warn: Attempt to free non-existent shared
string during global destruction.
2005-11-17 13:12:15.068573500 [20716] warn: Attempt to free non-existent shared
string during global destruction.
2005-11-17 13:12:15.068706500 [20716] warn: Attempt to free unreferenced scalar
during global destruction.
2005-11-17 13:12:15.068839500 [20716] warn: Attempt to free non-existent shared
string during global destruction.



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

Reply via email to