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


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

Submitted by:  None
Submitted on:  Tue 05 Aug 2003 10:13:04 PM UTC  
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  Dan Nelson <dnelson>
Open/Closed:  Open

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


  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>
Project AdministratorIn charge of this item.
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-



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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


CC list is empty


Do you think this task is very important?
If so, you can add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2003-08-05 dnelson Assigned toNone => NA

Back to the top

Powered by Savane 3.5