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 a few days running inside docker #12589

Open ttmx opened 1 month ago

ttmx commented 1 month ago

How can we reproduce the crash?

https://github.com/carrismetropolitana/discord-bot Running the previous software in docker compose for multiple days.

There was nothing in specific that seemed to trigger the crash.

Relevant log output

Bun v1.1.17 (bb66bba1) Linux x64 (baseline)
Linux Kernel v6.5.0 | glibc v2.31
Args: "bun" "run" "index.js"
Features: jsc Bun.stdin(2) fetch(5757) WebSocket(51) 
Builtins: "bun:main" "bun:sqlite" "node:buffer" "node:events" "node:fs" "node:fs/promises" "node:http" "node:os" "node:path" "node:process" "node:string_decoder" "node:timers" "node:timers/promises" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "undici" "ws" 
Elapsed: 341182632ms | User: 123978ms | Sys: 124518ms
RSS: 0.88GB | Peak: 0.18GB | Commit: 0.88GB | Faults: 27
panic(main thread): 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:

Stack Trace (bun.report)

Bun v1.1.17 (bb66bba) on linux x86_64_baseline [RunCommand]

Segmentation fault at address 0x00000000

github-actions[bot] commented 1 month ago

@ttmx, the latest version of Bun is v1.1.20, but this crash was reported on Bun v1.1.17.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade
ttmx commented 1 month ago

Since this is such a hard to reproduce bug, I can't know if it is still present in the newest version or not. Either way, I have just updated.