<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 19, 2024, 9:19 PM <<a href="mailto:arnold@skeeve.com">arnold@skeeve.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Rob Pike <<a href="mailto:robpike@gmail.com" target="_blank" rel="noreferrer">robpike@gmail.com</a>> wrote:<br>
<br>
> The Cornell PL/I compiler, PL/C, ran on the IBM 360 so of course used batch<br>
> input. It tried automatically to keep things running after a parsing error<br>
> by inserting some token - semicolon, parenthesis, whatever seemed best -<br>
> and continuing to parse, in order to maximize the amount of input that<br>
> could be parsed before giving up. At least, that's what I took the<br>
> motivation to be. It rarely succeeded in fixing the actual problem, despite<br>
> PL/I being plastered with semicolons, but it did tend to ferret out more<br>
> errors per run. I found the tactic helpful.<br>
><br>
> -rob<br>
<br>
Gawk used to do this, until people started fuzzing it, causing cascading<br>
errors and eventually core dumps. Now the first syntax error is fatal.<br>
It got to the point where I added this text to the manual:<br>
<br>
In recent years, people have been running "fuzzers" to generate<br>
invalid awk programs in order to find and report (so-called)<br>
bugs in gawk.<br>
<br>
In general, such reports are not of much practical use. The<br>
programs they create are not realistic and the bugs found are<br>
generally from some kind of memory corruption that is fatal<br>
anyway.<br>
<br>
So, if you want to run a fuzzer against gawk and report the<br>
results, you may do so, but be aware that such reports don’t<br>
carry the same weight as reports of real bugs do.<br>
<br>
(Yeah, I've just changed the subject, feel free to stay on topic. :-)<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Awk bailing out near line 1.</div><div dir="auto"><br></div><div dir="auto">Warner </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Arnold<br>
</blockquote></div></div></div>