Bug 77183 - Running "mail" crashes with floating point exception on 4-line window
Running "mail" crashes with floating point exception on 4-line window
Product: Red Hat Linux
Classification: Retired
Component: mailx (Show other bugs)
i686 Linux
medium Severity low
: ---
: ---
Assigned To: Ivana Varekova
Depends On:
  Show dependency treegraph
Reported: 2002-11-02 10:35 EST by James Hunt
Modified: 2007-04-18 12:48 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-12-03 05:38:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Hunt 2002-11-02 10:35:11 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 Galeon/1.2.0 (X11; Linux i686; U;) Gecko/20020408

Description of problem:
If you run "mail" in a window with *exactly* 4 lines, and if you do have atleast
1 email in your inbox, mail will crash:

[jdhunt@huntj:jdhunt> mail
Mail version 8.1 6/6/93.  Type ? for help.
"/var/spool/mail/jdhunt": 1 message 1 unread
Floating point exception
[jdhunt@huntj:jdhunt> echo $?

If your terminal window (xterm, aterm, Eterm) has 3 lines, or 5 lines, the
problem does not occur.

If your window has > 4 lines, setting "LINES=4" does not reproduce the problem.
The number of columns the window has is not relevant.

I am able to reproduce this problem consistently on 2 different RH7.3 boxes
running the same version of mail.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.ensure you have some email in /var/spool/mail/<user>
2.resize terminal emulator window to *exactly* 4 lines
3.run, "mail".

Actual Results:  mail command crashed with a floating point exception.

Expected Results:  mail should have produced a summary line, 1 for each email in
my inbox, followed by a command prompt (line beginning with '& ').

Additional info:
Comment 1 James Hunt 2004-10-06 10:40:35 EDT
James here again. Fedora Core 2 still has this problem.
"rpm -q mailx" returns, "mailx-8.1.1-32".

If it is any help, the Debian folk fixed this problem back in 2002.
Here's the bug report (#170784) I raised with them:


Thanks in advance,

Comment 2 Ivana Varekova 2004-11-03 07:29:14 EST
Thank you for your notice.
The problem was fixed.
Comment 3 Ivana Varekova 2004-12-03 05:38:25 EST
Solved with -40.

Note You need to log in before you can comment on or make changes to this bug.