Repl crashes when used with AsyncLocalStorage #38936
Labels
async_hooks
Issues and PRs related to the async hooks subsystem.
confirmed-bug
Issues with confirmed bugs.
What steps will reproduce the bug?
Run the following script with
node repro.js
:The process crashes after the repl prompt
>
is printed, and a stacktrace from C-land is produced: see the output below.How often does it reproduce? Is there a required condition?
Given the info above it consistently reproduces on node v16.2.0 and v16.3.0, but not on any of the previous versions of node v16.
What is the expected behavior?
The repl should appear, and the rest of the callback passed to
run()
should execute. The process should not exit until the user exits the repl.What do you see instead?
This is the output from the reproduction script shown above. The process crashes near-immediately, but you can see that the repl prompt
>
is output.Additional information
This was originally observed when using hpal-debug's repl, which is run under async local storage. I think that's about it, but happy to provide any more information!
The text was updated successfully, but these errors were encountered: