oven-sh / bun

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

Crash in bun #14856

Open soof-golan opened 3 days ago

soof-golan commented 3 days ago

How can we reproduce the crash?

Sorry, no repro at the time

Relevant log output

Args: "bun" "./server/index.ts"
Features: jsc Bun.stdin(2) dotenv http_server(2) spawn transpiler_cache(29) tsconfig_paths tsconfig(22)
Builtins: "bun:jsc" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:dns" "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:querystring" "node:readline" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "ws" "node-fetch" "node:v8" "node:http2"
Elapsed: 167969ms | User: 4115ms | Sys: 955ms
RSS: 0.32GB | Peak: 0.36GB | Commit: 0.32GB | Faults: 2265

Stack Trace (bun.report)

Bun v1.1.29 (6d43b36) on macos aarch64 [AutoCommand]

Segmentation fault at address 0xB498BF0643234020

Features: jsc, Bun.stdin, dotenv, http_server, spawn, transpiler_cache, tsconfig_paths, tsconfig

Sentry Issue: BUN-7H5

github-actions[bot] commented 3 days ago

@soof-golan, the latest version of Bun is v1.1.33, but this crash was reported on Bun v1.1.29.

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

bun upgrade
soof-golan commented 3 days ago

Reproduced also on v1.1.33

============================================================
Bun v1.1.33 (247456b6) macOS Silicon
macOS v15.0
Args: "bun" "./server/index.ts"
Features: Bun.stdin(2) abort_signal dotenv http_server(2) jsc spawn transpiler_cache(27) tsconfig(22) tsconfig_paths
Builtins: "bun:jsc" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:dns" "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:querystring" "node:readline" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "ws" "node-fetch" "node:v8" "node:http2"
Elapsed: 118454ms | User: 6334ms | Sys: 854ms
RSS: 0.35GB | Peak: 0.37GB | Commit: 0.47GB | Faults: 106

panic(main thread): Segmentation fault at address 0xD0
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.33/Ma1247456bA9u/6/d_mmhn2B2vsm2B2pym2B2+o01B+3j01Bm4g81Bun6i2Bu5g11B+zoz1BA2AgN

error: script "server" was terminated by signal SIGTRAP (Trace or breakpoint trap)
error: script "dev" was terminated by signal SIGTRAP (Trace or breakpoint trap)
github-actions[bot] commented 2 days ago

Hello @soof-golan. Please provide a minimal reproduction using a GitHub repository, Replit, CodeSandbox, or provide a bulleted list of commands to run that reproduce this issue. Issues marked with needs repro will be closed if they have no activity within 3 days.

soof-golan commented 13 hours ago

Full source code at https://github.com/soof-golan/tix-q

Big dependencies include prisma, vite as the hot reloading dev server. This crash happens while querying a CockroachDB instance locally.

soof-golan commented 13 hours ago

This does reproduce crash sort of reliably, but I'm definitely happy I'm not using bun as my prod server, only for local dev