[luatex] Setting internal parameters of TeX in a callback

Hironori KITAGAWA h_kitagawa2001 at yahoo.co.jp
Tue Jun 17 14:07:43 CEST 2014


Hello,

When I processed the following source (test1.tex) by LuaTeX rev 5021,
I got "assertion failed" error:

----
%#!luatex
\directlua{
  callback.register('vpack_filter',
    function(h)
      tex.set('vbadness', 2000)
      return h
    end
  )
}

\vbox{}
\bye
----
$ luatex test1
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 5021) 
 restricted \write18 enabled.
(./test1.texluatex: ../../../source/texk/web2c/luatexdir/tex/texnodes.w:1022: free_error: Assertion `p> my_prealloc' failed.
----

Is it dangerous to assign internal parameters of TeX 
in a callback, as in test1.tex above?


Regards
Hironori KITAGAWA <h_kitagawa2001 at yahoo.co.jp>



More information about the luatex mailing list