[luatex] Segmentation fault on LuaTeX

Dirk Laurie dirk.laurie at gmail.com
Sun Oct 14 08:29:49 CEST 2012


2012/10/14 Hironori Kitagawa <h_kitagawa2001 at yahoo.co.jp>:

>> %#!luatex
>> \newcount\X
>>
>> \X=1
>> \loop A%
>>   \advance\X by 1
>>   \ifnum \X < 10000
>> \repeat
>>
>> \end
>
> causes a segmentation fault on LuaTeX.
>
...
> If I the number on the line 7 reduced from 10000 to 1000,
> this segmentation fault disappeared.
>
> Does anyone know the cause of this behavior?

For the following variation:

\newcount\X%
\X=1%
\loop i%
  \advance\X by 1%
  \ifnum \X < 1085%
\repeat
\end

the error message is more informative:

This is LuaTeX, Version beta-0.70.2-2012062812 (TeX Live 2012)
 restricted \write18 enabled.
(./b.texluatex: ../../../texk/web2c/luatexdir/tex/primitive.w:314:
store_primitive_name: Assertion `idx<=0xFFFF' failed.
Aborted (core dumped)


More information about the luatex mailing list