9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
[parent not found: <<d5e75e65219a1207aad92a000119dba0@terzarima.net>]
[parent not found: <<0232aa110f8423b8381e009b6cda7cef@terzarima.net>]
[parent not found: <<dc10137c2661c11595d2aa2ca370ba45@brasstown.quanstro.net>]
[parent not found: <<a4d2df97e4d97d460ae33ca0800a4060@terzarima.net>]
[parent not found: <<615bb2c21f211025b5d9aba799fffe0d@terzarima.net>]
[parent not found: <<9987774388a28369b01fa5658da35af9@terzarima.net>]
[parent not found: <<2d42b6b28807634253ba28dc55a96de6@brasstown.quanstro.net>]
* [9fans] compiler double bug.
@ 2009-12-01  7:55 erik quanstrom
  0 siblings, 0 replies; 17+ messages in thread
From: erik quanstrom @ 2009-12-01  7:55 UTC (permalink / raw)
  To: 9fans

after 5 hrs of tracking a floating point exception in
awk (present in all versions i could find), i isolated
this sequence of events, which does not require ape:

#include <u.h>
#include <libc.h>

void
main(void)
{
	double g = 4215866817.;

	print("%d\n", (int)g);
	print("%d\n", (int)g);
	exits("");
}

; 8c -FVTw x.c && 8l x.8 && 8.out
-2147483648
8.out 26264: suicide: sys: fp: invalid operation fppc=0x105d status=0xc0a1 pc=0x107a

- erik



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

end of thread, other threads:[~2009-12-02  1:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <<d893fc0b1d0b52a1dd610d7eb14279d3@terzarima.net>
2009-12-01 22:31 ` [9fans] compiler double bug erik quanstrom
2009-12-01 23:33   ` Charles Forsyth
     [not found] <<d5e75e65219a1207aad92a000119dba0@terzarima.net>
2009-12-02  1:59 ` erik quanstrom
     [not found] <<0232aa110f8423b8381e009b6cda7cef@terzarima.net>
2009-12-01 21:45 ` erik quanstrom
     [not found] <<dc10137c2661c11595d2aa2ca370ba45@brasstown.quanstro.net>
2009-12-01 18:53 ` erik quanstrom
     [not found] <<a4d2df97e4d97d460ae33ca0800a4060@terzarima.net>
2009-12-01 18:41 ` erik quanstrom
2009-12-01 21:35   ` Charles Forsyth
2009-12-01 22:19   ` Charles Forsyth
     [not found] <<615bb2c21f211025b5d9aba799fffe0d@terzarima.net>
2009-12-01 16:39 ` erik quanstrom
2009-12-01 17:02   ` Charles Forsyth
2009-12-01 16:39 ` erik quanstrom
     [not found] <<9987774388a28369b01fa5658da35af9@terzarima.net>
2009-12-01 15:05 ` erik quanstrom
2009-12-01 16:31   ` Charles Forsyth
     [not found] <<2d42b6b28807634253ba28dc55a96de6@brasstown.quanstro.net>
2009-12-01  8:02 ` erik quanstrom
2009-12-01  9:43   ` Charles Forsyth
2009-12-01  9:45     ` Charles Forsyth
2009-12-01  7:55 erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).