[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: build failure (alpha-current): floating point exception 8
On Mon, Mar 02, 2009 at 02:44:23PM +0100, Nicolas Joly wrote:
> On Mon, Mar 02, 2009 at 12:29:57PM +0000, Christos Zoulas wrote:
> > In article <20090302110553.GA274304%medusa.sis.pasteur.fr@localhost>,
> > Nicolas Joly <njoly%pasteur.fr@localhost> wrote:
> > >On Sun, Mar 01, 2009 at 11:08:02PM +0000, Christos Zoulas wrote:
> > >> In article <86sklwyhov.wl%kazumi%mse.biglobe.ne.jp@localhost>,
> > >> FURUSAWA Kazumi <kazumi%mse.biglobe.ne.jp@localhost> wrote:
> > >> >Hi, all,
> > >> >
> The last one, seems to comes from strtod returning NaN which is the
> compared to a huge number ...
> njoly@thanos [~/tmp]> gdb /local/src/NetBSD/tool/bin/nbawk
> GNU gdb 6.5
> This GDB was configured as "alpha--netbsd"...
> (gdb) run '$NF!~/^rump/' 1.out
> Starting program: /local/src/NetBSD/tool/bin/nbawk '$NF!~/^rump/' 1.out
> Program received signal SIGFPE, Arithmetic exception.
> 0x0000000120011004 in is_number (s=0x160308024 "nanotime")
> at /local/src/NetBSD/src/dist/nawk/lib.c:713
> 713 if (ep == s || r == HUGE_VAL || errno == ERANGE)
To be sure, i removed the `r == HUGE_VAL' and the build succeeded.
If i understand correctly, HUGE_VAL is used to check for for infinity
(wonder if INFINITY should be used instead ?). But nothing check for
While here i noted that strtod(3) man page state that `NAN' sequence
string are not supported, which does not looks correct anymore:
- one of NAN or NAN(n-char-sequence-opt), ignoring case. This
implementation currently does not interpret such a sequence.
Biological Software and Databanks.
Institut Pasteur, Paris.
Main Index |
Thread Index |