-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmentation fault when workers exit #83
Comments
opened parent issue too: napi-rs/package-template#308 |
It's a known issue upstream: rust-lang/rust#91979 My suggestion is don't use In Promise.all([
compress("hello"),
compress("hello"),
compress("hello"),
compress("hello"),
]) the code below will execute in four threads. |
@Brooooooklyn So you mean that |
@hanlakewind Yes, they are already multi-threaded, I'll update README. |
Got it. I am just using a pool of worker threads for a job queue and happen to be using snappy for some stuff -- caught me by surprise that my queue would crash if I ever had a job NOT doing snappy compression. Forcing it to stay loaded by requiring in the parent process works for now |
I get segfaults on node 16 and node 18 when I use these in workers.
I'm on linux gnu x64
Replication steps:
Just run
node segfault.js
with:segfault.js
If the parent thread has also imported it, it seems to work fine:
segfault.js with parent import:
The text was updated successfully, but these errors were encountered: