We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v14.17.4
Linux OMITTED 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
No response
test file
# test.js const events = require('events'); const EventEmitter = events.EventEmitter; const TEARDOWN = 'teardown'; const applicationEvents = new EventEmitter(); function onTeardown(listener) { return applicationEvents.on(TEARDOWN, listener); } function emitTeardown() { return applicationEvents.emit(TEARDOWN); } onTeardown(() => (console.log('Goodbye!'))); Promise.resolve().then(emitTeardown);
call (failing)
node --v8-pool-size=0 ./test.js
call (passing)
# note 1 or higher is fine node --v8-pool-size=1 ./test.js
# note, no v8 switch node ./test.js
--v8-pool-size=0
--v8-pool-size
The process exits cleanly, presumably 0.
0
The process never ends.
an strace reveals the last action after console output
futex(0x4565f60, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY
The text was updated successfully, but these errors were encountered:
Checked with the current master seems to be working fine. Following is the output that i see when running the test script.
❯ ./node --v8-pool-size=0 ./test.js Goodbye!
Sorry, something went wrong.
I observed a similar issue (#42523) when running a script using worker_threads.
Closing, as only Node.js 14 is affected and this is a non-critical issue for which we haven't identified the fix.
No branches or pull requests
Version
v14.17.4
Platform
Linux OMITTED 5.13.0-22-generic #22-Ubuntu SMP Fri Nov 5 13:21:36 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Subsystem
No response
What steps will reproduce the bug?
test file
call (failing)
call (passing)
call (passing)
How often does it reproduce? Is there a required condition?
--v8-pool-size=0
switch--v8-pool-size
switch--v8-pool-size
switch to any positive numberWhat is the expected behavior?
The process exits cleanly, presumably
0
.What do you see instead?
The process never ends.
Additional information
an strace reveals the last action after console output
The text was updated successfully, but these errors were encountered: