Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* [Fwd: Mozilla]
@ 1998-05-22 10:29 Chad Campbell
  1998-05-22 19:48 ` Uncle George
  0 siblings, 1 reply; 6+ messages in thread
From: Chad Campbell @ 1998-05-22 10:29 UTC (permalink / raw)
  To: axp-list

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fwd: Mozilla]
@ 1998-05-22 11:23 Jochen Kuepper
  1998-05-22 14:55 ` Michal Jaegermann
  0 siblings, 1 reply; 6+ messages in thread
From: Jochen Kuepper @ 1998-05-22 11:23 UTC (permalink / raw)
  To: axp-list

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=0x120c20400, obj=0x120c39d70,
>    cds=0x120b72ad0) at jsapi.c:1182
>1182            jsint i = (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 = 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.

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
-----------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fwd: Mozilla]
  1998-05-22 11:23 Jochen Kuepper
@ 1998-05-22 14:55 ` Michal Jaegermann
  0 siblings, 0 replies; 6+ messages in thread
From: Michal Jaegermann @ 1998-05-22 14:55 UTC (permalink / raw)
  To: jochen; +Cc: axp-list

> >
> >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.

Does not sound like the very robust design.

> Would compiling with -mieee help eventually ?

When fairly recently I was helping with problems encountered by some
Fortran programs, while pushing floating point arithmetic beyond
reasonable limits, I had to recompile with -mieee also some libraries.
In particular i/o conversion routines.  After some such tweaks end-users
were happy.  What meaning can be ascribed to their results I am not even
trying to judge. :-)

  Michal


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fwd: Mozilla]
  1998-05-22 10:29 [Fwd: Mozilla] Chad Campbell
@ 1998-05-22 19:48 ` Uncle George
  1998-05-24 19:04   ` Christoph Zens
  0 siblings, 1 reply; 6+ messages in thread
From: Uncle George @ 1998-05-22 19:48 UTC (permalink / raw)
  To: axp-list

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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fwd: Mozilla]
  1998-05-22 19:48 ` Uncle George
@ 1998-05-24 19:04   ` Christoph Zens
  1998-05-25  9:52     ` Uncle George
  0 siblings, 1 reply; 6+ messages in thread
From: Christoph Zens @ 1998-05-24 19:04 UTC (permalink / raw)
  To: axp-list


> how about :
> 
>     if ( isnan(d)) return(0);
>     else if ( isinf(d) ) { ...... }
>     else i = d;

Works ok for me, but running the program I get:

Warning: No type converter registered for 'String' to 'Cardinal'
conversion.

(a few times) and after that:

Warning: 
    Name: bookmarkList
    Class: XmLGrid
    Attempt to destroy dropSite info for widget that
hasn't been added as a dropSite.

Warning: Actions not found: PageUp, PageDown
[...]

Warning: 
    Name: hscroll
    Class: XmScrollBar
    Specified slider size is less than 1.

Warning: 
    Name: vscroll
    Class: XmScrollBar
    Specified slider size is less than 1.

Segmentation fault (core dumped)

Meanwhile, an empty window (Netscape Error) appears until the
program dumps core.

Am I using the wrong lesstif version? (lesstif-0.81)

--
    _
 _ //
 \X/  Christoph Zens <e9126506@student.tuwien.ac.at>



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fwd: Mozilla]
  1998-05-24 19:04   ` Christoph Zens
@ 1998-05-25  9:52     ` Uncle George
  0 siblings, 0 replies; 6+ messages in thread
From: Uncle George @ 1998-05-25  9:52 UTC (permalink / raw)
  To: Christoph Zens; +Cc: axp-list

lesstif 0.81 ! gee, u betcha ( like "u bet" or yup for those who r not
into usa colloquialism's) try getting the lesstif-current, or currrent
.84

Christoph Zens wrote:

> > how about :
> >
> >     if ( isnan(d)) return(0);
> >     else if ( isinf(d) ) { ...... }
> >     else i = d;
>
> Works ok for me, but running the program I get:
>
> Warning: No type converter registered for 'String' to 'Cardinal'
> conversion.
>
> (a few times) and after that:
>
> Warning:
>     Name: bookmarkList
>     Class: XmLGrid
>     Attempt to destroy dropSite info for widget that
> hasn't been added as a dropSite.
>
> Warning: Actions not found: PageUp, PageDown
> [...]
>
> Warning:
>     Name: hscroll
>     Class: XmScrollBar
>     Specified slider size is less than 1.
>
> Warning:
>     Name: vscroll
>     Class: XmScrollBar
>     Specified slider size is less than 1.
>
> Segmentation fault (core dumped)
>
> Meanwhile, an empty window (Netscape Error) appears until the
> program dumps core.
>
> Am I using the wrong lesstif version? (lesstif-0.81)
>
> --
>     _
>  _ //
>  \X/  Christoph Zens <e9126506@student.tuwien.ac.at>
>
> --
> 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




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1998-05-25  9:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-05-22 10:29 [Fwd: Mozilla] Chad Campbell
1998-05-22 19:48 ` 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

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