From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 23116 invoked from network); 22 May 1998 19:50:20 -0000 Received: from mail12.voicenet.com (HELO voicenet.com) (207.103.0.6) by mail2.redhat.com with SMTP; 22 May 1998 19:50:20 -0000 Received: (qmail 15234 invoked from network); 22 May 1998 19:50:17 -0000 Received: from rotary947-pri.voicenet.com (HELO voicenet.com) (209.71.52.47) by mail12.voicenet.com with SMTP; 22 May 1998 19:50:17 -0000 Message-ID: <3565D684.93547A51@voicenet.com> Date: Fri, 22 May 1998 15:48:21 -0400 From: Uncle George Organization: None Avail X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: [Fwd: Mozilla] References: <3565538A.336F537E@ukans.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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