oven-sh / bun

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

Bun crash: Segmentation fault #14274

Open MouadCh opened 2 weeks ago

MouadCh commented 2 weeks ago

How can we reproduce the crash?

Runnin main.ts file, here is the used command : bun run --env-file=../.env ./src/main.ts

my bun version is : bun --version 1.1.17

I upgraded bun to latest version v1.1.29 and still have same issue

Relevant log output

$ bun run --env-file=../.env ./src/main.ts | pino-pretty --hideObject
[16:33:39.487] INFO (35478): Starting a postgresql pool with 25 connections.
[16:33:39.528] INFO (35478): [events] Scheduling recurring events...
[16:33:39.560] INFO (35478): ZenStackPlugin installing routes at prefix: /api/v1
[16:33:39.589] INFO (35478): XXXXXXXX app ready with settings checked
[16:33:39.595] INFO (35478): XXXXXXXX app listening on http://0.0.0.0:3001
[16:33:40.118] INFO (35478): [events] Registering event subscribers...
[16:33:40.120] INFO (35478): [events] Registering event handlers...
[16:33:40.142] INFO (35478): Starting a postgresql pool with 25 connections.
[16:33:40.161] ERROR (35478): Failed to connect
[16:33:40.181] WARN (35478): Worker terminated normally
============================================================
Bun v1.1.17 (bb66bba1) macOS Silicon
macOS v15.0
Args: "bun" "run" "--env-file=../.env" "./src/main.ts"
Features: jsc Bun.stdin(6) dotenv(6) http_server transpiler_cache(66) tsconfig_paths(6) tsconfig(20) 
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:process" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "node:worker_threads" "node:http2" "node:diagnostics_channel" 
Elapsed: 3041ms | User: 2907ms | Sys: 454ms
RSS: 1.03GB | Peak: 1.03GB | Commit: 0.26GB | Faults: 48

panic: Segmentation fault at address 0x413B4D41414D2C59
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/Mr1bb66bbaAqoghgH_mhstI________A2i0mtnhCyl20phC

Stack Trace (bun.report)

Bun v1.1.17 (bb66bba) on macos aarch64 [RunCommand]

Segmentation fault at address 0x413B4D41414D2C59

github-actions[bot] commented 2 weeks ago

@MouadCh, the latest version of Bun is v1.1.29, 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
MouadCh commented 2 weeks ago

I upgraded bun to latest version v1.1.29 and still have same issue

Jarred-Sumner commented 2 weeks ago

@MouadCh can you paste the updated stack trace?

MouadCh commented 2 weeks ago

@MouadCh can you paste the updated stack trace?

Its the same logs as i mentioned in Relevant log output