Re: [BUG?] Segmentation fault in lua_error() - easily reproducible

  • From: Mike Pall <mike-1412@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 16 Dec 2014 02:49:04 +0100

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

Other related posts: