Hi Werner,

On Fri, 2025-04-04 at 11:01 +0000, Werner LEMBERG wrote:
> > There are 4 possible combinations that you could try:
> >
> >      LD_PRELOAD= texluac -o test.luc test.lua \
> >        && LD_PRELOAD= texlua loader.lua
> >      LD_PRELOAD=libtrash.so texluac -o test.luc test.lua \
> >        && LD_PRELOAD= texlua loader.lua
>
> These two work.
>
> >      LD_PRELOAD= texluac -o test.luc test.lua \
> >        && LD_PRELOAD=libtrash.so texlua loader.lua
> >      LD_PRELOAD=libtrash.so texluac -o test.luc test.lua \
> >        && LD_PRELOAD=libtrash.so texlua loader.lu
>
> These two crash, only showing 'C'.

Ok, so the issue is with loading the bytecode, not with creating it.

> OK, thanks.  So: lua 5.3.6 coming with openSUSE 15.6 works/crashes in
> exactly the same way as above.
>
> I also tested lua versions 5.1.5 and 5.4.4, which also come with
> openSUSE: with 5.1.5, everything works fine; with 5.4.4, it crashes in
> the same way.

Alright, so the issue seems to be in Lua somewhere, and not LuaTeX
itself. But plenty of other programs embed Lua, so it's interesting that
LuaTeX is the only/first place that this bug showed up for you.

I also tried installing libtrash on my computer, and everything works
properly with libtrash v3.8 and Lua v5.4.7. So the issue seems to depend
on something specific with your installation, although I have no idea
what. Is it something to do with FORTIFY_SOURCE or a weird ABI mismatch
maybe?

Thanks,
-- Max

Reply via email to