From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] a bug in awk?
Date: Sat, 10 Jan 2009 14:43:20 -0500 [thread overview]
Message-ID: <e6c76f7db64bfde2c2cf9632bb50c8fd@quanstro.net> (raw)
In-Reply-To: <20090110161922.B3AFF8E35@okapi.maths.tcd.ie>
> 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
next prev parent reply other threads:[~2009-01-10 19:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-10 5:57 Tharaneedharan Vilwanathan
2009-01-10 6:26 ` lucio
2009-01-10 6:39 ` Tharaneedharan Vilwanathan
2009-01-10 16:19 ` John Stalker
2009-01-10 19:43 ` erik quanstrom [this message]
2009-01-10 21:45 erik quanstrom
2009-01-11 7:07 ` Russ Cox
2009-01-11 7:24 ` erik quanstrom
2009-01-11 9:30 ` Tharaneedharan Vilwanathan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6c76f7db64bfde2c2cf9632bb50c8fd@quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).