oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.02k stars 2.66k forks source link

Crash after 8 hrs and 134,615 processes were spawned #12265

Open HeYzZe opened 2 months ago

HeYzZe commented 2 months ago

How can we reproduce the crash?

root@hyz-home_ ~ 2024_6_30 22_55_10(1)

Relevant log output

Bun v1.1.17 (bb66bba1) Linux x64 (baseline)
WSL Kernel v5.15.133 | glibc v2.35
Args: "kuzco" "worker" "start"
Features: jsc Bun.stderr Bun.stdin(2) Bun.stdout fetch(11427) spawn(134615) WebSocket(8)
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:perf_hooks" "node:process" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "node:diagnostics_channel"
Elapsed: 31070157ms | User: 127310ms | Sys: 89251ms
RSS: 0.02ZB | Peak: 1.19GB | Commit: 0.02ZB | Faults: 0

panic: Segmentation fault at address 0x0
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

To send a redacted crash report to Bun's team,
please file a GitHub issue using the link below:

 https://bun.report/1.1.17/B_1bb66bbaA+gigoQ21ozmE+xyQqxzrmDk2kwtDk0jtrDknpm/D29rl/Ds13rpDg25s+CksllBA2AA

Stack Trace (bun.report)

Bun v1.1.17 (bb66bba) on linux x86_64baseline []

Segmentation fault at address 0x00000000

Jarred-Sumner commented 2 months ago

0.02ZB

hmm I wonder why it thinks 0.2 zetabytes were allocated (200,000,000 GB)