<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, May 1, 2021 at 4:19 PM Hans Hagen <<a href="mailto:j.hagen@xs4all.nl">j.hagen@xs4all.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 5/1/2021 9:46 AM, Martin Budaj wrote:<br>
> Hi,<br>
> <br>
> incidentally I've found that metapost segfaults on the following <br>
> (incorrect) input:<br>
> <br>
> nonstopmode;<br>
> % erroneously, a-b written instead of a_b<br>
> def a-b = a-c enddef;<br>
> a-b;<br>
> end<br>
> <br>
> The output is:<br>
> <br>
> l.4 def a-<br>
> b = a-c enddef;<br>
> Segmentation fault<br>
> <br>
> Tested on 2.00 (TeX Live 2020/Debian) and 2.01 (TeX Live 2021/W32TeX).<br>
> <br>
> Metafont processes the file as expected, with a regular error message.<br>
Luigi,<br>
<br>
It also crashes in luatex but not in luametatex so it might be somewhere <br>
in the input buffer or error reporting part as that's done differently.<br>
<br>
b = a-c enddef; a-b; ;<br>
<br>
The bit after the ; is not seen in the crash.<br>
<br>
Hans<br></blockquote><div><br></div><div>ok, I check. </div></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature">luigi<br></div></div>