Apparent bug in pdftex/xetex (but not luatex)

Don Hosek don.hosek at gmail.com
Tue Apr 27 21:41:33 CEST 2021


Raising this here at the suggestion of David Carlisle. Original post at tex.se <http://tex.se/>: https://tex.stackexchange.com/questions/594702/apparent-bug-in-pdflatex-xelatex-but-not-lualatex <https://tex.stackexchange.com/questions/594702/apparent-bug-in-pdflatex-xelatex-but-not-lualatex>

test.tex:

\def\zz#1{#1}
\zz{\input test.l2e }

text.l2e:

\oops
Hit E at the error prompt and an error along the lines of:

pdflatex:calledit: unexpected if_ptr=5 not in range 1..2,from input_stack[2].namefield=2378
xelatex:calledit: unexpected if_ptr=6 not in range 1..2,from input_stack[2].namefield=2230090

will appear.

I’ve not had a chance to dig into source to look for the issue. David’s diagnosis from stackexchange:

> Note you need the wrapping macro, if you just call \input directly it works, presumably related to the input_stack[2] in the error when it fails.
-dh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20210427/3329c845/attachment-0001.html>


More information about the tex-live mailing list.