develooper Front page | perl.perl5.porters | Postings from August 2001

Re: Ack: [ID 20010824.010] Alpha error writing exceptional math value

Thread Next
From:
Andrew Dalke
Date:
August 27, 2001 00:21
Subject:
Re: Ack: [ID 20010824.010] Alpha error writing exceptional math value
Message ID:
047301c12e40$2b30fd20$0201a8c0@josiah.dalkescientific.com
Nicholas Clark <nick@ccl4.org>:
> I asked a friend to run
> perl -we 'use POSIX; print acos(3.7), "\n"'
> 
> on an alpha running Debian GNU/Linux. He gets NaN rather
> than a core dump.  He suggests building with -mieee in
> the cflags, which is what Debian use.

I recompiled the devel version of perl 5.6.1 to use
the -mieee flag.  That prevented the SIGFPE.

[perl-5.7.2]$ ./perl -Ilib -e 'use POSIX; print acos(3.7), "\n"'
nan
[perl-5.7.2]$ perl -e 'use POSIX; print acos(3.7), "\n"'
Floating exception (core dumped)
[perl-5.7.2]$

> Is building with -mieee a sensible idea? If so, should
> it be on by default on Alpha linux?

Frankly, I don't know.  If Debian does it and since
it prevents this signal from occuring, then I would
recommend it.  I don't know enough of the consequences
for that to be a solid recommendation.

                    Andrew
                    dalke@dalkescientific.com



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About