procmail
[Top] [All Lists]

File size limit exceeded?!

2001-07-07 07:59:49
I'm running Mandrake Linux 8.0 with the stock postfix/procmail
configuration and stock kernel 2.4.3-20mdk, and I just ran into this
bizare problem with procmail.  It opens up my 55029049-byte mailbox
and then dies.

The log file says this:

procmail: Locking "agora.lock"
procmail: Assigning "LASTFOLDER=agora"
procmail: Opening "agora"
procmail: Acquiring kernel-lock
procmail: Error while writing to "agora"
procmail: Truncated file to former size
procmail: Unlocking "agora.lock"

I straced the process, and it's truely bizarre. File size limit
exceeded??!!!  The mailbox is less than 55 MB!  Is there some setting
I need to change or something?

Also, oddly enough, if I run procmail from a terminal, it writes just
fine and dandy to that mailbox.  The problem only seems to happen when
it's run from postfix.  Any ideas?

The strace says this:

[pid 21156] write(2, "procmail: Opening \"agora\"\n", 26) = 26
[pid 21156] open("agora", O_WRONLY|O_APPEND|O_CREAT, 0667) = 5
[pid 21156] lseek(5, 0, SEEK_END)       = 54971631
[pid 21156] time(NULL)                  = 994516373
[pid 21156] write(2, "procmail: Acquiring kernel-lock\n", 32) = 32
[pid 21156] wait4(-1, NULL, WNOHANG, NULL) = -1 ECHILD (No child processes)
[pid 21156] lseek(5, 0, SEEK_CUR)       = 54971631
[pid 21156] shmat(5, 0xffffffff, 0x7)   = 0x1
[pid 21156] lseek(5, 0, SEEK_END)       = 54971631
[pid 21156] write(5, "F", 1)            = -1 EFBIG (File too large)
[pid 21156] --- SIGXFSZ (File size limit exceeded) ---
[pid 21156] fstat64(5, {st_mode=S_IFREG|0660, st_size=54971631, ...}) = 0
[pid 21156] write(5, "rom dan(_at_)peng(_dot_)dyndns(_dot_)org  Sat Jul"..., 
16384) = -1 EFBIG (File too large)
[pid 21156] --- SIGXFSZ (File size limit exceeded) ---
[pid 21156] fsync(5)                    = 0
[pid 21156] shmat(5, 0, 0x6)            = 0x2
[pid 21156] close(5)                    = 0
[pid 21156] time(NULL)                  = 994516373
[pid 21156] write(2, "procmail: Error while writing to"..., 41) = 41
[pid 21156] truncate("agora", 54971631) = 0
[pid 21156] time(NULL)                  = 994516373
[pid 21156] write(2, "procmail: Truncated file to form"..., 40) = 40
[pid 21156] alarm(0)                    = 960
[pid 21156] time(NULL)                  = 994516373
[pid 21156] write(2, "procmail: Unlocking \"agora.lock\""..., 33) = 33
[pid 21156] unlink("agora.lock")        = 0

-- 
`When you say "I wrote a program that crashed Windows", people just stare at
you blankly and say "Hey, I got those with the system, *for free*".'
(By Linus Torvalds)

X-Operating-System: Linux dan.linux 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 
2001 i686 unknown
X-Uptime:  10:40am  up 14:17,  7 users,  load average: 0.06, 0.10, 0.09
_______________________________________________
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>