From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31258 invoked from network); 22 May 1998 11:23:42 -0000 Received: from bacchus.pc1.uni-duesseldorf.de (root@134.99.152.11) by mail2.redhat.com with SMTP; 22 May 1998 11:23:42 -0000 Received: from bacchus.pc1.uni-duesseldorf.de (jochen@localhost [127.0.0.1]) by bacchus.pc1.uni-duesseldorf.de (8.8.7/8.8.7) with SMTP id NAA28109 for ; Fri, 22 May 1998 13:21:57 +0200 From: Jochen Kuepper Reply-To: jochen@uni-duesseldorf.de To: axp-list@redhat.com Subject: Re: [Fwd: Mozilla] Date: Mon, 28 Jun 2134 19:48:18 +0200 X-Mailer: KMail [version 0.6.5] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <98052213215700.28064@bacchus.pc1.uni-duesseldorf.de> Content-Transfer-Encoding: quoted-printable X-KMail-Mark: On Fri, 22 May 1998, Chad Campbell wrote: >Anyone had problems with SIGFPE like this?: > >Program received signal SIGFPE, Arithmetic exception. >0x1205fd2ac in JS_DefineConstDoubles (cx=3D0x120c20400, obj=3D0x120c39d7= 0, > cds=3D0x120b72ad0) at jsapi.c:1182 >1182 jsint i =3D (jsint)d; Yes, same here. Linux-2.0.33, glibc-2.0.7, egcs-1.0.3. >I've been trying to fix this with the help of one of the Netscape Good boy. >people. He suggested using _MD_EarlyInit set like that of freebsd.c: > >void _MD_EarlyInit(void) >{ > struct sigaction act; > > act.sa_handler =3D SIG_IGN; > sigemptyset(&act.sa_mask); > act.sa_flags =3D 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 =3D (jsint)d; is ending up trying to cast NaN to >integer. Would compiling with -mieee help eventually ? Wish you good luck, -- Jochen ----------------------------------------------------------------------- Jochen K"upper Heinrich-Heine-Universit"at D"usseldorf jochen@uni-duesseldorf.de Institut f"ur Physikalische Chemie I Universit"atsstr. 1, Geb 26.43 Raum 02.29 phone ++49-211-8113681 40225 D"usseldorf fax ++49-211-8115195 Germany http://www-public.rz.uni-duesseldorf.de/~jochen -----------------------------------------------------------------------