Lua 5.4.0 (fixed in 5.4.1) has a segmentation fault in changedline in ldebug.c (e.g., when called by luaG_traceexec) because it incorrectly expects that an oldpc value is always updated upon a return of the flow of control to a function.
https://www.lua.org/bugs.html#5.4.0-8
https://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3