Skip to content

Node v22 hungs when running a specific wasm module #60584

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

Activity

  1. joyeecheung commented on Nov 20, 2025

    @joyeecheung
    Member

    I suspect you might be looking at the deadlock fixed by #58047 (which was not backported to v22, PR welcomed, I am not sure if I have the bandwith to backport it as I was only nerd-sniped into fixing it to unblock the V8 upgrade).

  2. fcamblor commented on Dec 11, 2025

    @fcamblor

    As a quick workaround, downgrading node from v22.21.1 to v22.16.0 (fix #58047 was part of the release note) fixed the issue on my side

    Note that I only reproduced the issue on Windows.
    On Mac with node@22.21.1, postinstall runs without hanging

  3. viceice commented on Dec 12, 2025

    @viceice
    Author

    As a quick workaround, downgrading node from v22.21.1 to v22.16.0 (fix #58047 was part of the release note) fixed the issue on my side

    Note that I only reproduced the issue on Windows.
    On Mac with node@22.21.1, postinstall runs without hanging

    not really an option for us

  4. github-actions commented on Jul 11, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 210 days of inactivity.
    It will be automatically closed in 30 days if no further activity occurs. If this is still relevant, please leave a comment or update it to keep it open.

  5. added
    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.
    on Jul 11, 2026
  6. viceice commented on Sep 9, 2026

    @viceice
    Author

    no longer an issue for us as we require node v24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions