Skip to content

Potential Wasm execution limits in some low-memory environments #40201

Closed
@guybedford

Description

@guybedford

Version

12

Platform

?

Subsystem

No response

What steps will reproduce the bug?

I'm getting a few reports in nodejs/cjs-module-lexer#61 (comment) that cpanel environments running Node.js 12 may be hitting a Wasm out of memory issue in the Wasm allocation requirements for the lexer.

It is worth keeping an eye on these issues from a reliability perspective.

Note this path is only hit when importing CommonJS from an ES module for the first time as well, so it won't be soon on all boots but only as users adopt ES modules.

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

It seems to be very low memory environments.

What is the expected behavior?

No response

What do you see instead?

WebAssembly.instantiate throwing an out of memory error.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    wasmIssues and PRs related to WebAssembly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions