Red Hat Bugzilla – Bug 184139
mailx dies with "panic: temporary file seek" on mailboxes larger than 128MB
Last modified: 2007-11-30 17:07:23 EST
Description of problem:
Mailx aborts when attempting to display the index for any message which begins
more than 128MB from the start of the file.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Create a mail folder which is larger than 128MB (134217728 bytes)
2. Append at least one message to this folder
3. Run "mail -f foldername"
4. Issue the command "h$" to attempt to display the last screenful of message
Abort with the error message:
fseek: Invalid argument
panic: temporary file seek
Display of the last screenful of message headers.
The bug is caused by an integer overflow. In def.h, struct message defines
m_block as a (signed) short. Since m_block represents 4096 bytes, this causes
an overflow at 32768 * 4096 bytes, or 128MB.
Changing "short m_block;" to "long m_block;" in def.h and recompiling appears to
correct the symptom, although I have not tested to determine whether this
introduces any new problems.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.
*** Bug 184296 has been marked as a duplicate of this bug. ***
I'm a bit confused. That errata is marked as affecting product "Other", and I
can't find the source RPM for it on ftp.redhat.com. Is an update going to be
released for RHEL4?
The source RPM wasn't pushed to ftp.redhat.com for some reason, sorry. It's