Lua through 5.4.0 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://github.com/lua/lua/commit/a2195644d89812e5b157ce7bac35543e06db05e3