Mike Pall wrote:
Dead coroutines hold onto their stack because this is the only way to get a backtrace if coroutine.resume() returns an error.
And so "C" code can extract Lua variables from the coroutine. db