procmail
[Top] [All Lists]

write & EFBIG

2001-04-22 13:38:54
I've started receiving strange errors from procmail, and have traced the
problem to some unusual fwrite behaviour.

With verbose logging on, procmail logs:
procmail: Bypassed locking "/var/spool/mail/noam.lock"
procmail: Assigning "LASTFOLDER=/var/spool/mail/noam"
procmail: Opening "/var/spool/mail/noam"
procmail: Acquiring kernel-lock
procmail: Error while writing to "/var/spool/mail/noam"
procmail: Truncated file to former size
From noam(_at_)TC2(_dot_)dynamic(_dot_)wondermill(_dot_)com  Sun Apr 22 
13:24:03 2001
 Subject: testing this stuff lalala
  Folder: **Bounced**
procmail: Notified comsat: "noam@:**Bounced**"

And an strace on procmail shows:
write(5, "91 12692 12693 12694 12695 12696"..., 16384) = 16384
write(5, "5422 15423 15424 15425 15426 154"..., 16384) = 7579
write(5, "685 16686 16687 16688 16689 1669"..., 11000) = -1 EFBIG (File
too large)
--- SIGXFSZ (File size limit exceeded) ---
fsync(5)                                = 0
shmat(5, 0, 0x6)                        = 0x2
close(5)                                = 0

Filehandle 5 is /var/spool/mail/noam:
open("/var/spool/mail/noam", O_WRONLY|O_APPEND|O_CREAT, 0667) = 5

The error is the same on every message; one of the write calls returns
short, and then the next one returns an error. (All the numbers being
written are simply my test pattern, but I've verified that the same thing
occurs with all sorts of data.)

The permissions on the mail spool are fine, and I have plenty of free disk
space on the partition. For that matter, I can write to the file
manually (with a cat >> /var/spool/mail/noam for instance) with no
problem. The problem with procmail seems to occur whenever writing the
message would bring the mailbox over 10240000 bytes, or thereabouts (I
haven't been able to determine the exact number).

I'm unsure whether I made any system changes around the time that this
started; I know I had upgraded my kernel a few weeks before (2.2.x to
2.4.0; I'm now at 2.4.2). I may however have changed other system
files/libraries which I don't recall. I'm currently running glibc 2.2.2.

This problem has me totally baffled.. if anyone has encountered a similar
problem or has any pointers as to what to try next, I would be most
appreciative!

Noam Sturmwind




_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>
  • write & EFBIG, Noam Sturmwind <=