Subject: Re: awk bug in current ?
To: walt <wa1ter@myrealbox.com>
From: John R. Shannon <john@johnrshannon.com>
List: current-users
Date: 03/19/2006 11:02:34
walt wrote:
> On Sun, 2006-03-19 at 18:07 +0100, Vincent wrote:
>> walt a écrit :
>>> On Sun, 2006-03-19 at 17:19 +0100, Vincent wrote:
>>>
>>>> Hi there,
>>>> I've build the current release some minutes ago, and now I get this message:
>>>>
>>>> assertion "c < NCHARS" failed: file "/usr/src/dist/nawk/b.c", line 890, 
>>>> function "cgoto"
>>>> [1]   Abort trap (core dumped) /usr/bin/awk "/#...
>>>
>>> I see the same (on i386):
>> You're right, I omitted to add that I was running current on i386.
>> Worse, with that broken awk, I cannot build the system anymore:
> 
> As a temporary workaround until Christos can do the correct fix,
> just delete line 890 of /usr/src/dist/nawk/b.c and recompile
> and reinstall /usr/src/usr.bin/awk.
> 
> Here is the line to be deleted:
>               assert(c < NCHARS);
> 
> That should allow us to rebuild the system when the correct
> fix is committed.
> 
> 
> 
The table:

gototab[NSTATES][NCHARS]

is protected by that assertion.

-- 
John R. Shannon, CISSP
john@johnrshannon.com
jshannon@dsci-usa.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org