From: Chad Campbell <campbell@ukans.edu>
To: axp-list@redhat.com
Subject: [Fwd: Mozilla]
Date: Fri, 22 May 1998 10:29:30 +0000 [thread overview]
Message-ID: <3565538A.336F537E@ukans.edu> (raw)
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
next reply other threads:[~1998-05-22 8:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-05-22 10:29 Chad Campbell [this message]
1998-05-22 19:48 ` [Fwd: Mozilla] Uncle George
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