Skip to content

Rust 1.90 causes Wasm crash by out of memory #147465

@dalance

Description

@dalance

After updating to Rust 1.90.0, Wasm becomes to be crashed by out of memory.
The reproduce senquence is below:

$ cargo install wasm-pack
$ cargo install miniserve

$ git clone https://github.com/veryl-lang/doc doc_1.89.0
$ cd doc_1.89.0/playground
$ rustup override set 1.89.0
$ wasm-pack build --target web -d html/pkg --no-typescript
$ miniserve html --index index.html -p 8080

access to http://127.0.0.1:8080

$ git clone https://github.com/veryl-lang/doc doc_1.90.0
$ cd doc_1.90.0/playground
$ rustup override set 1.90.0
$ wasm-pack build --target web -d html/pkg --no-typescript
$ miniserve html --index index.html -p 8081

access to http://127.0.0.1:8081

http://127.0.0.1:8080 using Rust 1.89.0 works fine when Build and Format buttons are pushed.
However, http://127.0.0.1:8081 using Rust 1.90.0 is crashed after a short time of pressing the button like below.

Image

My UI is Japanese, they are written like below:

There is not enough memory to open this page.
Try closing other tabs or programs to free up memory.
Error Code: Out of Memory

Meta

rustc --version --verbose:

rustc 1.90.0 (1159e78c4 2025-09-14)
binary: rustc
commit-hash: 1159e78c4747b02ef996e55082b704c09b970588
commit-date: 2025-09-14
host: x86_64-unknown-linux-gnu
release: 1.90.0
LLVM version: 20.1.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-wasmTarget: WASM (WebAssembly), http://webassembly.org/needs-triageThis issue may need triage. Remove it if it has been sufficiently triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions