Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Uncle George <gatgul@voicenet.com>
To: axp-list@redhat.com
Subject: Re: [Fwd: Mozilla]
Date: Fri, 22 May 1998 15:48:21 -0400	[thread overview]
Message-ID: <3565D684.93547A51@voicenet.com> (raw)
In-Reply-To: 3565538A.336F537E@ukans.edu

how about :

    if ( isnan(d)) return(0);
    else if ( isinf(d) ) { ...... }
    else i = d;

gat

Chad Campbell wrote:

> Anyone had problems with SIGFPE like this?:
>
> Program received signal SIGFPE, Arithmetic exception.
> 0x1205fd2ac in JS_DefineConstDoubles (cx=0x120c20400, obj=0x120c39d70,
>     cds=0x120b72ad0) at jsapi.c:1182
> 1182            jsint i = (jsint)d;
>
> I've been trying to fix this with the help of one of the Netscape
> people.  He suggested using _MD_EarlyInit set like that of freebsd.c:
>
> void _MD_EarlyInit(void)
> {
>     struct sigaction act;
>
>     act.sa_handler = SIG_IGN;
>     sigemptyset(&act.sa_mask);
>     act.sa_flags = SA_RESTART;
>     sigaction(SIGFPE, &act, 0);
> }
>
> to ignore SIGFPE.  However, even though this function is called before
> JS_DefineConstDoubles, and nothing is restoring the default SIGFPE
> handler, SIGFPE is still not being ignored.  Can anyone point me towards
> a solution?  I'm using egcs 1.03a in RedHat 5.0 with lesstif.
>
> jsapi.c is in mozilla/js/src
> _MD_EarlyInit is defined in mozilla/nsprpub/pr/src/md/unix
>
> Apparently, jsint i = (jsint)d; is ending up trying to cast NaN to
> integer.
>
> Thanks,
>
> Chad
>
> --
> -------------
> Chad Campbell
> Web Manager                 | Software Engineer/System Administrator
> KU Natural History Museum   | Innovision Corporation
> campbell@ukans.edu          | chad@innovision.com
> www.ukans.edu/home/campbell | www.innovision.com
>
> --
> 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





  reply	other threads:[~1998-05-22 19:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-22 10:29 [Fwd: Mozilla] Chad Campbell
1998-05-22 19:48 ` Uncle George [this message]
1998-05-24 19:04   ` Christoph Zens
1998-05-25  9:52     ` Uncle George
  -- strict thread matches above, loose matches on Subject: below --
1998-05-22 11:23 Jochen Kuepper
1998-05-22 14:55 ` Michal Jaegermann
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox