From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 15745 invoked from network); 22 May 1998 08:07:26 -0000 Received: from falcon.cc.ukans.edu (root@129.237.34.1) by mail2.redhat.com with SMTP; 22 May 1998 08:07:26 -0000 Received: from dv013s26.lawrence.ks.us by falcon.cc.ukans.edu (8.8.7/1.1.8.2/12Jan95-0207PM) id DAA0000002952; Fri, 22 May 1998 03:07:21 -0500 (CDT) Sender: campbell@falcon.cc.ukans.edu Message-ID: <3565538A.336F537E@ukans.edu> Date: Fri, 22 May 1998 10:29:30 +0000 From: Chad Campbell Organization: University of Kansas Natural History Museum X-Mailer: Mozilla 3.04Gold (X11; I; Linux 2.1.102 alpha) MIME-Version: 1.0 To: axp-list@redhat.com Subject: [Fwd: Mozilla] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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