Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frtree assert in awk #4

Closed
adbennet opened this issue Nov 16, 2018 · 2 comments
Closed

frtree assert in awk #4

adbennet opened this issue Nov 16, 2018 · 2 comments

Comments

@adbennet
Copy link

adbennet commented Nov 16, 2018

The actual message is "awk: can't happen: unknown type 0 in freetr".

You might be interested in OpenTerm Issue #163, also opened by me, which may or may not be related. Mr. Holzschuch made a partial fix there.
awk dies trying to access NF #163

Below is a simple script and data to reproduce the error. I would not pay attention to the source line number. In another script I saw the same assert in an END pattern, and it seems to occur on whatever source line happens to be the last one. The sample also produced another intermittent error for me, whereby it printed #oo 1# instead of # foo 1#. It's a little weird, especially because I can't reproduce it consistently. Anyway one bug at a time. Maybe if this one gets fixed the other one will resolve itself.
$ cat s1null.awk
{
$1 = "";
print "#" $0 "#";
}
$ cat s1null-data.txt
1 foo 1
2 bar 2
3 baz 3
$ awk -f s1null.awk s1null-data.txt
# foo 1# (edit : escape the BOL # characters)
# bar 2#
# baz 3#
awk: can't happen: unknown type 0 in freetr
input record number 3, file s1null-data.txt
source line number 3
$

@ColdGrub1384
Copy link
Owner

Ok, I will re-compile ios_system and it should be fixed

@ColdGrub1384
Copy link
Owner

Should be fixed since the last update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants