bugSpamAssassin Milter Plugin - Bugs: bug #4640, milter issues NULL context in...

 
 

bug #4640: milter issues NULL context in mlfi_close, stops talking to sendmail

Submitter:  None
Submitted:  Tue 05 Aug 2003 10:13:04 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Need Info
Privacy:  Public Assigned to:  dnelson
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

  Spam posted by anonymous
Tue 05 Aug 2003 10:29:08 PM UTC, comment #1: 

It definitely should not happen, at least according to the sendmail API documentation.  mlfi_close should only be called once per connection, and since mlfi_connect sets the context variable at the beginning of a connection, it should never be NULL at close.  I wonder what happens if a client opens a connection to sendmail and immediately closes it; if mlfi_connect takes a while to return, mlfi_close might get called on another thread..  I'll have to see if this is possible.

Could you try running with the "-d func,misc" commandline switch?  With the amount of messages you're processing logging might be too verbose to determine what's wrong though.  If you have valgrind you can try running it under that (make sure you don't run the milter with -f, so you can see any valgrind messages); it shouldn't cause much of a performance hit.

Dan Nelson <dnelson>
Group administrator
Tue 05 Aug 2003 10:13:04 PM UTC, original submission:  

Log has loads of "NULL context in mlfi_close! Should not happen!" milter stops taking requests from sendmail. Can't be sure the two are related but something is very wrong.

Milter runs for 3-10 minutes depending on load then
locks. This appears to be a "timing" issue. The test machine receives about 20-30 messages per minute. Running on Gentoo 1_4 with 2.4.20 kernel, sendmail 8.12.9, AMD Athalon-XP 2000, 512 M RAM, ONLY one milter in the .mc file

The higher the load the shorter amount it runs.

-email is unavailable-

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gdt (Updated the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-01 gdt StatusNone Need Info
    2020-08-01 gdt Open/ClosedOpen Closed
    2003-08-05 dnelson Assigned toNone None

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code