Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* X server (4.2.0) dying with signal 8
@ 2002-02-12 19:38 Robert M. Riches Jr.
  2002-02-12 22:17 ` Jay Estabrook
  0 siblings, 1 reply; 3+ messages in thread
From: Robert M. Riches Jr. @ 2002-02-12 19:38 UTC (permalink / raw)
  To: axp-list

Greetings,

A Google search shows I'm not the only one seeing X servers
dying with signal 8.  Apparently, this is an FP exception
caused by a cbrt() function passing a negative argument to
pow().

For programs other than X, I have had very good luck using
the -mieee compilation switch.  This would seem to be better
than hacking up the sources to handle special numeric cases.

Is there some reason the -mieee compilation switch would not
be appropriate when building an X server?

Thanks.

Robert Riches
richesr1@inetarena.com




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

* Re: X server (4.2.0) dying with signal 8
  2002-02-12 19:38 X server (4.2.0) dying with signal 8 Robert M. Riches Jr.
@ 2002-02-12 22:17 ` Jay Estabrook
  0 siblings, 0 replies; 3+ messages in thread
From: Jay Estabrook @ 2002-02-12 22:17 UTC (permalink / raw)
  To: axp-list

On Tue, Feb 12, 2002 at 11:38:34AM -0800, Robert M. Riches Jr. wrote:
> 
> A Google search shows I'm not the only one seeing X servers
> dying with signal 8.  Apparently, this is an FP exception
> caused by a cbrt() function passing a negative argument to
> pow().
> 
> For programs other than X, I have had very good luck using
> the -mieee compilation switch.  This would seem to be better
> than hacking up the sources to handle special numeric cases.
> 
> Is there some reason the -mieee compilation switch would not
> be appropriate when building an X server?

Well, it will cause some degradation in performance of those code paths
that involve FP instructions.

And that error is most likely happening in external math library code,
which wouldn't be helped by compiling X with the -mieee flag, anyway.

Apparently, from looking at the code, one can protect onesself from
this by setting:

	#define	HasCbrt NO

in host.def when building, in which case one gets a simple cbrt() that
tests its arg for sign and calls pow() appropriately (see mi/cbrt.c
for details).

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K15         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------




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

* Re: X server (4.2.0) dying with signal 8
@ 2002-02-13  5:02 Robert M. Riches Jr.
  0 siblings, 0 replies; 3+ messages in thread
From: Robert M. Riches Jr. @ 2002-02-13  5:02 UTC (permalink / raw)
  To: axp-list

> From: Jay Estabrook <Jay.Estabrook@compaq.com>
> Date: Tue, 12 Feb 2002 17:17:46 -0500
>
> Apparently, from looking at the code, one can protect onesself from
> this by setting:
>
> 	#define	HasCbrt NO
>
> in host.def when building, in which case one gets a simple cbrt() that
> tests its arg for sign and calls pow() appropriately (see mi/cbrt.c
> for details).

Thanks.  I'll give that a try at the earliest opportunity.
I'm glad you guys who know all the right stuff are on this
list to help those of us who do not.

Robert Riches
richesr1@inetarena.com




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

end of thread, other threads:[~2002-02-13  5:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-12 19:38 X server (4.2.0) dying with signal 8 Robert M. Riches Jr.
2002-02-12 22:17 ` Jay Estabrook
  -- strict thread matches above, loose matches on Subject: below --
2002-02-13  5:02 Robert M. Riches Jr.

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