Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Calling os.exit while libuv threads are active may cause a VM PANIC or assertion failures #574

Open
rdw-software opened this issue Oct 19, 2024 · 0 comments

Comments

@rdw-software
Copy link
Member

rdw-software commented Oct 19, 2024

Didn't look into it much, but there's a note in the luv docs: Apparently, the Lua state will be cleaned up before the worker thread exits? Crashes aren't great and it's quite easy to see this when using the test runner. Let's see if there's a way to prevent it.

Reproduced by simply calling uv.new_thread() inside a section or subsection, then starting the test runner on the file.

PANIC: unprotected error in call to Lua API
Assertion failed: !(handle->flags & UV_HANDLE_CLOSING), file libuv/src/win/async.c, line 76
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
Status: It's a bug, NOT a feature! (FIXME)
Status: Soon™
Development

No branches or pull requests

1 participant