oven-sh / bun

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

Crash: Segmentation Fault #11967

Open binmalyi opened 5 months ago

binmalyi commented 5 months ago

How can we reproduce the crash?

Editing a live preview of a svelte web project, specifically audio component.

import { onMount } from "svelte";

onMount(async () => {
     const audio = new Audio("/audio/Kalam.mp3");
     audio.volume = .25;
     console.log(document.querySelector(`img[alt="Audio"]`));
     // audio.play().then(_ => document.querySelector(`img[alt="Audio"]`)!.hidd)
})

Relevant log output

Bun v1.1.13 (bd6a6051) Windows x64
Args: "node" "C:\Users\George\Desktop\web\node_modules\vite\bin\vite.js" "dev"
Features: jsc Bun.stdin(2) Bun.stdout abort_signal(4) http_server spawn(2) transpiler_cache(6) tsconfig_paths(3) tsconfig(5)
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:v8"
Elapsed: 4953516ms | User: 51546ms | Sys: 11656ms
RSS: 0.32GB | Peak: 0.44GB | Commit: 5.00GB | Faults: 521221
panic(main thread): Segmentation fault at address 0x0
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.13 (bd6a605) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x00000000

github-actions[bot] commented 5 months ago

@binmalyi, the latest version of Bun is v1.1.14, but this crash was reported on Bun v1.1.13.

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

bun upgrade