http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5166
Summary: mass-check: Too many open files
Product: Spamassassin
Version: unspecified
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P5
Component: Masses
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Ok, this has been causing me trouble for weeks and I think I've narrowed it
down.
The problem is that my mass-checks complain about too many open files, fairly
loudly. I get lots of lines like this:
bayes: cannot write to
/home/duncf/svn/spamassassin-nightly/masses/spamassassin/bayes_journal, bayes db
update ignored: Too many open files
util: secure_tmpfile failed to create file '/tmp/.spamassassin5912T01JRetmp':
Too many open files
etc.
The mass-check still completes, but only a small number of messages actually get
checked.
By searching through my nightly logs uploads in
spamassassin.zones.apache.org:/home/automc/corpus/html, I've found that this
occurred between revisions r440298 and r440658.
Looking through these revisions, revision 440575 looks suspicious. "use temp
files for mime parts that we're unlikely to use during processing, and fall-back
to memory-only if it's not going to work out. also, use a scalar to hold the
decoded information."
I believe this causes us to open new filehandles to store this data, but it
never gets closed, causing mass-check to open too many files, hence the
messages.
I'm not nearly familiar enough with this code, so Theo, can you take a look?
I'll see what I can do and attach a patch if I'm successful.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.