From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net From: erik quanstrom Date: Sat, 10 Jan 2009 14:43:20 -0500 In-Reply-To: <20090110161922.B3AFF8E35@okapi.maths.tcd.ie> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] a bug in awk? Topicbox-Message-UUID: 7f939a5c-ead4-11e9-9d60-3106f5b1d025 > For what it's worth, bwk awk does not have this problem, so the error > must be in code introduced later. > >> Note the 5946903e318 which AWK may mistakenly treat as a floating >> point constant. Now to figure how to prevent such errors... not exactly. i believe this is an ape problem. i don't think that c89 or c99 allow a strtod to result in an exception. [...] acid: cont() 11260359 d05544897ff642ca36e58174bc753b0f3382b793 0 3 8192 Jan 9 18:09 4 11258672 5946903e318d3596c21e35b42a13c1dea5fd32cc 0 7627: math coprocessor error strtod+0x3b5 FMOVD rv+0x44(SP),F0 Notes pending: sys: fp: numeric overflow fppc=0x16852 status=0xb8a8 acid: stk() strtod(s00=0x4f0a4,se=0xdfffee24)+0x3b5 /sys/src/ape/lib/ap/stdio/strtod.c:473 is_number(s=0x4f09d)+0x55 /sys/src/cmd/awk/lib.c:703 fldbld()+0x16c /sys/src/cmd/awk/lib.c:333 getnf(a=0x5a90c)+0xe /sys/src/cmd/awk/run.c:439 execute(u=0x5a8fc)+0xbb /sys/src/cmd/awk/run.c:157 - erik