[tex-k] Crash (segmentation fault) from endwrite token

Shreevatsa R shreevatsa.public at gmail.com
Thu Jul 7 16:07:00 CEST 2022


This report is from "user202729" on StackExchange, just reporting here on
their behalf in case they don't get around to it:
https://tex.stackexchange.com/a/649069

Boiled down to a plain TeX case by Phelype Oleinik:

\def\weird{\expandafter\weirda\expandafter{\iffalse}\fi}
\def\weirda#1{\expandafter\weirdb\noexpand}
\def\weirdb#1{\iffalse{\fi}#1\edef\mycontainendwrite{\noexpand#1}}
\immediate\write16{\weird}
\expandafter\let\expandafter\myendwrite\mycontainendwrite
\bye

(The last \bye is optional as the crash happens before it.)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-k/attachments/20220707/47e83b20/attachment.html>


More information about the tex-k mailing list.