From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Tue, 1 Dec 2009 02:55:26 -0500 To: 9fans@9fans.net Message-ID: <2d42b6b28807634253ba28dc55a96de6@brasstown.quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] compiler double bug. Topicbox-Message-UUID: a5fe61bc-ead5-11e9-9d60-3106f5b1d025 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 #include 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