oven-sh / bun

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

Random crash using discord.js bot #10797

Closed malmz closed 2 months ago

malmz commented 5 months ago

How can we reproduce the crash?

Create a minimal discord bot with discord.js (maybe also @sapphire/framework?). This error occured randomly after running for a few minutes.

Relevant log output

Bun v1.1.6 (e58d67b4) Windows x64
Args: "C:\Users\[redacted]\.bun\bin\bun.exe", "run", "src/index.ts"
Features: Bun.stderr Bun.stdin(2) Bun.stdout dotenv fetch(6) transpiler_cache(6) tsconfig_paths(2) tsconfig(4) WebSocket(2)
Builtins: "bun:main" "bun:sqlite" "node:buffer" "node:console" "node:events" "node:fs" "node:fs/promises" "node:http" "node:path" "node:string_decoder" "node:timers" "node:timers/promises" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "undici" "ws"
Elapsed: 1429263ms | User: 1062ms | Sys: 750ms
RSS: 0.14GB | Peak: 0.20GB | Commit: 0.22GB | Faults: 353052

Stack Trace (bun.report)

Bun v1.1.6 (e58d67b) on windows x86_64 [RunCommand]

Segmentation fault at address 0xFFFFFFFFFFFFFFFF

cirospaciari commented 2 months ago

Fixed in canary v1.1.22 if is happening after bun upgrade --canary feel free to reopen