[Panic]: Heap-corruption-like panics and SIGSEGV in long-lived Node processes on Linux x64 (1.2.10, 1.2.11), possibly related to #10860
I'm seeing nondeterministic crashes of Node processes that run Vite 8 builds and dev servers, and I think they may share a cause with #10860 (the allocator change in 1.2.8). I'm adding what I have in case it's useful, because the crashes include Rust panics with impossible values, which look like memory corruption rather than logic bugs.
In roughly 40–50 % of full suite runs (316 tests), one worker dies. Across about 30 runs, 13 had a crashed worker. I saw:
- SIGSEGV (most common, on both Node versions)
- one SIGABRT
- one worker whose RSS grew to 29.5 GB before the kernel OOM-killed it (the V8 heap limit is far lower, so that was native memory)
- three Rust panics, each at a different location:
Panic message
thread '<unnamed>' panicked at oxc_parser-0.151.0/src/lexer/byte_handlers.rs:686:5: internal error: entered unreachable code (rolldown 1.2.10, Node 24)
thread 'rolldown-worker' panicked at oxc_minifier-0.151.0/src/peephole/inline.rs:15:13: internal error: entered unreachable code (rolldown 1.2.10, Node 22)
thread 'rolldown-worker' panicked at oxc_index-5.0.0/src/indexing.rs:38:10: index out of bounds: the len is 380 but the index is 4294965876 (rolldown 1.2.11, Node 24)
The index 4294965876 is −1420 wrapped to a u32, and the same inputs build fine on every other run. Three unrelated unreachable/bounds panics, in the parser, the minifier and an index vector, from the same deterministic inputs look to me like heap corruption more than oxc bugs. That's why I suspect the same cause as #10860.
Reproduction
Not minimal yet. The project is public: https://github.com/karnaugh94/blitzstrahl/tree/v1.1.0 (Node ≥ 24, pnpm 12).
pnpm install && pnpm build && npx playwright install chromium
npx playwright test --workers=12 # repeat a few times; about every other run loses a worker.A crashed worker shows as worker process exited unexpectedly (signal=SIGSEGV) or Rolldown panicked; the other failures in that run are its victims (timeouts), never assertions.
What didn't reproduce: 12 processes × 40 sequential build() calls each (480 builds, no dev servers, same machine). It seems to need a long-lived process that mixes builds, dev servers and ssrLoadModule.
System Info
- Linux 7.0.0 x86_64, glibc 2.39 (Ubuntu), 32 cores, 31 GB RAM
- Node 24.21.0 and Node 22.23.3 (both crash)
- vite 8.3.0 with rolldown 1.2.10, and vite 8.3.1 with rolldown 1.2.11 (both crash)
- Crashing processes are Playwright 1.63 test workers (--workers=12). Each worker runs many sequential Vite build() calls, a few createServer() dev servers and some ssrLoadModule over its lifetime, all in one process. No worker runs two builds at once.Additional context
For full disclosure, I did use an LLM to compile information about the issue. The project this is affecting is basically a pet project to do some presentations without msppt headaches, and it absolutely managed to catch all the issues faster than me.
Source: rolldown/rolldown