Skip to content

Node v22 hungs when running a specific wasm module #60584

@viceice

Description

@viceice

Version

v22.21.1

Platform

Linux 9100362cc84d 6.6.87.2-microsoft-standard-WSL2 #1 SMP PREEMPT_DYNAMIC Thu Jun  5 18:30:46 UTC 2025 x86_64 GNU/Linux

Subsystem

No response

What steps will reproduce the bug?

lib.zip

> docker run --rm -it -v .:/work -w /work node:24 run-in-node.js # works
> docker run --rm -it -v .:/work -w /work node:22 run-in-node.js # hungs

How often does it reproduce? Is there a required condition?

It hungs always, so node never exits and it eats all memory under windows.

What is the expected behavior? Why is that the expected behavior?

the test above should just exit like it does with node v24

What do you see instead?

node never exits

Additional information

see this issue for a longer discussion

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions