* How to trap floating point exceptions so mozilla doesn't crash?
@ 1998-05-12 14:59 Christian Worley
1998-05-12 15:19 ` Uncle George
1998-05-12 16:02 ` Michal Jaegermann
0 siblings, 2 replies; 4+ messages in thread
From: Christian Worley @ 1998-05-12 14:59 UTC (permalink / raw)
To: axp-list@redhat.com
Hi,
The big problem with mozilla seems to be floating point exceptions in
its java script interpreter. It seems to know how to handle them, but
in handling them mozilla crashes. If I could just create a signal
handler that allowed floating point exceptions to fall thru (and
continue with the code) I think mozilla would work correctly.
How, in AXP/Linux can I create a signal handler that will keep the
program from crashing on floating point exceptions?
Chris
--
When I die, please cast my ashes upon Bill Gates
--for once, let him clean up after me!
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to trap floating point exceptions so mozilla doesn't crash?
1998-05-12 14:59 How to trap floating point exceptions so mozilla doesn't crash? Christian Worley
@ 1998-05-12 15:19 ` Uncle George
1998-05-12 16:02 ` Michal Jaegermann
1 sibling, 0 replies; 4+ messages in thread
From: Uncle George @ 1998-05-12 15:19 UTC (permalink / raw)
To: axp-list
i suppose u should realize that is does not handle them - otherwise there
would be a signal() routine for SIGFPE.
i also suppose u can find where signals are handled generally, and then
add to them the SIGFPE signal catch routine.
gat
BTW to sigfpe routine is as simple as catch_sigfpe(int sig){;}
or u can tell signal to IGNORE the signal outright.
Christian Worley wrote:
> Hi,
>
> The big problem with mozilla seems to be floating point exceptions in
> its java script interpreter. It seems to know how to handle them, but
> in handling them mozilla crashes. If I could just create a signal
> handler that allowed floating point exceptions to fall thru (and
> continue with the code) I think mozilla would work correctly.
>
> How, in AXP/Linux can I create a signal handler that will keep the
> program from crashing on floating point exceptions?
>
> Chris
> --
> When I die, please cast my ashes upon Bill Gates
> --for once, let him clean up after me!
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: How to trap floating point exceptions so mozilla doesn't crash?
1998-05-12 14:59 How to trap floating point exceptions so mozilla doesn't crash? Christian Worley
1998-05-12 15:19 ` Uncle George
@ 1998-05-12 16:02 ` Michal Jaegermann
1 sibling, 0 replies; 4+ messages in thread
From: Michal Jaegermann @ 1998-05-12 16:02 UTC (permalink / raw)
To: axp-list
>
> The big problem with mozilla seems to be floating point exceptions in
> its java script interpreter. It seems to know how to handle them, but
> in handling them mozilla crashes.
I was recently battling exception problems for a friend who was pushing
his Fortran beyond any limits of reason. :-) The solution is simple:
1st - apply patches by Richard Henderson to floating point
handler in kernel (these patches should be included in
in a long awaited 2.0.34 - AFAIK)
2nd - use libraries recompiled where needed with -mieee flag;
in particular all stuff handling i/o conversions needed that
or you trigger exceptions when writing your results
3rd - compile your programs with -mieee (or -mieee-with-inexact,
or...)
Points 2 and 3 will rob you of some performance but, OTOH, floating
point exceptions vanished. For at least some programs point 1 was
essential as well. Patches were posted on this list; at least the
first set, maybe the second one on linux-kernel only?
On a longer run it looks like that on Alpha we need two sets of
libraries (one with -mieee and one without) and modified compiler
specs file to pick-up a correct library sets depending on if one
of -mieee-**** flags is used. For the time beeing a bit of hacking
is required.
> How, in AXP/Linux can I create a signal handler that will keep the
> program from crashing on floating point exceptions?
See above. Flags are described in gcc docs. It looks like java
like to divide by zero, under/overflow floating point representation,
etc. It is probably "this is for pictures only - we do not care".
Michal
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to trap floating point exceptions so mozilla doesn't crash?
@ 1998-05-12 16:53 James D. Freels
0 siblings, 0 replies; 4+ messages in thread
From: James D. Freels @ 1998-05-12 16:53 UTC (permalink / raw)
To: axp-list
This is a problem I am also having in getting DEC Unix executables to
run without stopping due to floating point exceptions. For code like
mozilla that are compiled locally on the machine, you might try the
-mieee switch with the gcc compiler. However, for java, I don't
know. If you find a solution, please publish it to this newsgroup.
>Hi,
>
>The big problem with mozilla seems to be floating point exceptions in
>its java script interpreter. It seems to know how to handle them, but
>in handling them mozilla crashes. If I could just create a signal
>handler that allowed floating point exceptions to fall thru (and
>continue with the code) I think mozilla would work correctly.
>
>How, in AXP/Linux can I create a signal handler that will keep the
>program from crashing on floating point exceptions?
>
>Chris
>--
> When I die, please cast my ashes upon Bill Gates
> --for once, let him clean up after me!
>
>--
>To unsubscribe: send e-mail to axp-list-request@redhat.com with
>'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
--
/------------------------------------------------------------------\
|James D. Freels, P.E._i, Ph.D. |Phone: (423)576-8645 | | L | A |
|Oak Ridge National Laboratory |FAX: (423)574-9172 | H | I | L |
|Research Reactors Division |work e-m: fea@ornl.gov| F | N | P |
|P. O. Box 2008 |home e-m: fea@icx.net | I | U | H |
|Oak Ridge, Tennessee 37831-6392|world's best neutrons | R | X | A |
\------------------------------------------------------------------/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1998-05-12 16:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-12 14:59 How to trap floating point exceptions so mozilla doesn't crash? Christian Worley
1998-05-12 15:19 ` Uncle George
1998-05-12 16:02 ` Michal Jaegermann
-- strict thread matches above, loose matches on Subject: below --
1998-05-12 16:53 James D. Freels
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox