Sergei Zhirikov wrote: > This code is supposed to panic, but it results in a segmentation > fault inside lua_error() instead. Thank you for the report and the test case! Fixed in the git repository. > Admittedly, this not a very common usage pattern, but calling > lua_error() on a suspended Lua thread can be useful sometimes. I don't think this is useful at all. You can't do anything with the whole lua_State (and not just the coroutine) after a panic. --Mike