Luanti version
Luanti 5.15.1 (Linux)
Using LuaJIT 2.1.1767980792
Built by GCC 15.2
Running on Linux/6.19.13 x86_64
BUILD_TYPE=Release
RUN_IN_PLACE=0
USE_CURL=1
USE_GETTEXT=1
USE_SOUND=1
STATIC_SHAREDIR="/usr/share/luanti"
STATIC_LOCALEDIR="/usr/share/locale"
Operating system and version
arch btw
CPU model
No response
GPU model
No response
Active renderer
No response
Summary
When having the visible_wielditem mod enabled and doing //lua debug.sethook(error, "c") with debug hooks, this happens:
2026-04-25 22:33:39: ACTION[Server]: [log] Caught command '/lua', issued by 'singleplayer'. Parameters: 'debug.sethook(error,"c")'
2026-04-25 22:33:39: ERROR[Main]: ServerError: AsyncErr: Lua: Runtime error from mod 'worldedit_shortcommands' in callback on_chat_message(): /usr/share/luanti/builtin/common/misc_helpers.lua:120: call
2026-04-25 22:33:39: ERROR[Main]: stack traceback:
2026-04-25 22:33:39: ERROR[Main]: [builtin#19]: at 0x7f458d1d6ed0
2026-04-25 22:33:39: ERROR[Main]: /usr/share/luanti/builtin/common/misc_helpers.lua:120: in function 'dump'
2026-04-25 22:33:39: ERROR[Main]: /home/et/.minetest/mods/worldedit/worldedit/code.lua:27: in function 'lua'
2026-04-25 22:33:39: ERROR[Main]: .../et/.minetest/mods/worldedit/worldedit_commands/code.lua:24: in function 'func'
2026-04-25 22:33:39: ERROR[Main]: .../et/.minetest/mods/worldedit/worldedit_commands/init.lua:53: in function 'run'
2026-04-25 22:33:39: ERROR[Main]: .../et/.minetest/mods/worldedit/worldedit_commands/init.lua:61: in function 'func'
2026-04-25 22:33:39: ERROR[Main]: /usr/share/luanti/builtin/game/chat.lua:79: in function </usr/share/luanti/builtin/game/chat.lua:50>
2026-04-25 22:33:39: ERROR[Main]: /usr/share/luanti/builtin/common/register.lua:27: in function </usr/share/luanti/builtin/common/register.lua:13>
2026-04-25 22:33:40: ACTION[ServerStop]: Server: Shutting down
2026-04-25 22:33:40: ERROR[ServerStop]: ModError while shutting down: Runtime error from mod 'worldedit_shortcommands' in callback on_shutdown(): /usr/share/luanti/builtin/common/register.lua:13: call
2026-04-25 22:33:40: ERROR[ServerStop]: stack traceback:
2026-04-25 22:33:40: ERROR[ServerStop]: [builtin#19]: at 0x7f458d1d6ed0
2026-04-25 22:33:40: ERROR[ServerStop]: /usr/share/luanti/builtin/common/register.lua:13: in function </usr/share/luanti/builtin/common/register.lua:13>
2026-04-25 22:33:40: ERROR[ServerStop]: Check debug.txt for details.
2026-04-25 22:33:40: ERROR[ServerStop]: ModError while shutting down: Runtime error from mod 'visible_wielditem' in callback luaentity_Deactivate(): /home/et/.minetest/mods/visible_wielditem/init.lua:158: call
2026-04-25 22:33:40: ERROR[ServerStop]: stack traceback:
2026-04-25 22:33:40: ERROR[ServerStop]: [builtin#19]: at 0x7f458d1d6ed0
2026-04-25 22:33:40: ERROR[ServerStop]: /home/et/.minetest/mods/visible_wielditem/init.lua:158: in function </home/et/.minetest/mods/visible_wielditem/init.lua:158>
2026-04-25 22:33:40: ERROR[ServerStop]: Check debug.txt for details.
2026-04-25 22:33:49: WARNING[ServerStop]: server::ActiveObjectMgr::~ActiveObjectMgr(): not cleared.
Error: nu::shell::core_dumped
This may not be exclusive to that mod, but i have managed to reproduce the issue with it
Steps to reproduce
- Have the
visible_wielditem mod (https://content.luanti.org/packages/LMD/visible_wielditem/)
- run
//lua debug.sethook(error, "c")
- luanti should segfault
Luanti version
Operating system and version
arch btw
CPU model
No response
GPU model
No response
Active renderer
No response
Summary
When having the
visible_wielditemmod enabled and doing//lua debug.sethook(error, "c")with debug hooks, this happens:This may not be exclusive to that mod, but i have managed to reproduce the issue with it
Steps to reproduce
visible_wielditemmod (https://content.luanti.org/packages/LMD/visible_wielditem/)//lua debug.sethook(error, "c")