Apparent bug in pdftex/xetex (but not luatex)

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

Raising this here at the suggestion of David Carlisle. Original post at <>: <>


\zz{\input test.l2e }


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the tex-live mailing list.