On Mon, Apr 8, 2019 at 1:53 PM Hironobu Yamashita <h.y.acetaminophen@gmail.com> wrote:
Hi Luigi,

On 2019-04-02 at 21:59:21 +0200, luigi scarso wrote:
>
> On Tue, Apr 2, 2019 at 9:48 PM Reinhard Kotucha <reinhard.kotucha@web.de>
> wrote:
>     I suppose that texlua crashes when trying to print the warning, see
>     gdb output below.  What I don't understand is is why luatex and
>     texlua behave differently here.
>
> because the print of the warning requires a TeX state. texlua has
> only a Lua state.

Do you have any plan of fixing this?
If not, please consider the attached patch.
Without this, even the simple file test.lua containing

pdfe.open("foo.pdf")

causes a segfault...

Yes I will fix it, unfortunately after TeXLive  2019 is closed.
 Thank you for the patch.
--
luigi