Closed Bug 476 Opened 27 years ago Closed 26 years ago

Core dump on startup of moz-export

Categories

(Core :: JavaScript Engine, defect, P3)

DEC
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: torsten, Assigned: mike+mozilla)

Details

Created by Torsten Rüger (torsten@ponton-hamburg.de) on Monday, July 13, 1998 4:56:09 AM PDT Additional Details : I'm getting a floating point exception in js/src/jsapi.c line 1184 because the check JSDOUBLE_IS_NaN does not recognise the variable as being Nan 0xfffffffffffff Updated by Mike McCabe (mccabe@netscape.com) on Monday, July 13, 1998 1:18:59 PM PDT Additional Details : Thanks for looking at this; other people have noticed the same problem with builds on alpha linux and bsd - platforms that raise SIGFPE on int casts of NaN values. I have a fix in hand, and it's checked into the javascript sources in js/ref (from which js/src is generated; see READMEs in js/ref and js/src.) The fix is to change JSDOUBLE_IS_INT(d, i) to conditionalize the (jsint) cast on d being non-NaN, plus some removed casts and restructuring. I'm putting off propagating it into js/src for the time being, because the client is currently in a stability freeze for the time being, and it's not a critical fix. I'll close this bug as soon as I can propagate the fixes to js/src, and confirm that they correct the crash.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
I propagated the fix, and Torsten Rüger just confirmed it for me on Alpha Linux. Many thanks!
Status: RESOLVED → VERIFIED
marking verified against old code base
Changing component to "Javascript Engine". "Javascript" component is being retired.
You need to log in before you can comment on or make changes to this bug.