You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
var import_worker_threads = require("worker_threads");
if (import_worker_threads.isMainThread) {
const worker = new import_worker_threads.Worker("./segfault");
} else {
var import_napi_rs = require("@napi-rs/package-template");
}
If the parent thread has also imported it, it seems to work fine:
segfault.js with parent import:
var import_worker_threads = require("worker_threads");
var import_napi_rs = require("@napi-rs/package-template");
if (import_worker_threads.isMainThread) {
const worker = new import_worker_threads.Worker("./segfault");
}
The text was updated successfully, but these errors were encountered:
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: