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
Tried to use this library but found out that it segfaults occasionally. Cloned repo installed deps and ran npm run test which already fails to segfault every time.
Tested on two machines with same result
2) Uncaught error outside test suite
339 passing (53s)
7 pending
2 failing
1) context process exit
with default context
should produce warning when messages are queued without blocky:
AssertionError: expected '' to match /\(node:\d+\) WARNING: Waiting for queued ZeroMQ messages to be delivered\.\r?\n/
at Context.<anonymous> (/home/alaine/Projects/repos/zeromq.js/test/unit/context-process-exit-test.ts:75:14)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
2) Uncaught error outside test suite:
Uncaught Error: Workerpool Worker terminated Unexpectedly
exitCode: `null`
signalCode: `SIGSEGV`
workerpool.script: `/home/alaine/Projects/repos/zeromq.js/node_modules/.pnpm/mocha@10.7.3/node_modules/mocha/lib/nodejs/worker.js`
spawnArgs: `/usr/bin/node,--expose-gc,/home/alaine/Projects/repos/zeromq.js/node_modules/.pnpm/mocha@10.7.3/node_modules/mocha/lib/nodejs/worker.js`
spawnfile: `/usr/bin/node`
stdout: `null`
stderr: `null`
at ChildProcess.<anonymous> (/home/alaine/Projects/repos/zeromq.js/node_modules/.pnpm/workerpool@6.5.1/node_modules/workerpool/src/WorkerHandler.js:297:13)
at ChildProcess.emit (node:events:517:28)
at ChildProcess.emit (node:domain:489:12)
at Process.ChildProcess._handle.onexit (node:internal/child_process:292:12)
The failures are caused by running multiple proxies or conflicting classes in the same process. #688 fixes the issue with the proxies by using worker threads to run the tests in parallel with individual workers and independent contexts.
Make sure to maintain independent contexts if you create multiple connections for proxies and ensure proper clean-ups in other use cases.
Describe the bug
Running test suite fails with segfault.
Tried to use this library but found out that it segfaults occasionally. Cloned repo installed deps and ran
npm run test
which already fails to segfault every time.Tested on two machines with same result
Reproducing
Expected behavior
All tests pass
Tested on
Machine 1
Machine 2
library version
The text was updated successfully, but these errors were encountered: