oven-sh / bun

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

crash run test with serve #15157

Open aralroca opened 4 hours ago

aralroca commented 4 hours ago

How can we reproduce the crash?

I had a test with Bun.serve and it worked fine, after running it several times now I get panic error and even if I clean all the Bun processes and run it again now it always comes out.

Relevant log output

Bun Canary v1.1.35-canary.51 (357581c6) macOS Silicon
macOS v14.6.1
Args: "bun" "test" "--preload" "./e2e/preload.ts" "./e2e/examples.test.ts"
Features: Bun.stderr Bun.stdin(2) Bun.stdout bunfig jsc shell(2) spawn(3) tsconfig(3) tsconfig_paths 
Builtins: "node:buffer" "node:crypto" "node:os" "node:path" "node:process" "node:string_decoder" "node:tty" "node:util/types" 
Elapsed: 2320ms | User: 47ms | Sys: 11ms
RSS: 45.63MB | Peak: 45.63MB | Commit: 1.07GB | Faults: 53

panic(main thread): Internal error: attempted to call popScope() on the topmost scope

Stack Trace (bun.report)

Bun v1.1.35-canary (357581c) on macos aarch64 [TestCommand]

panic: Internal error: attempted to call popScope() on the topmost scope

Features: Bun.stderr, Bun.stdin, Bun.stdout, bunfig, jsc, shell, spawn, tsconfig, tsconfig_paths, tsconfig_paths

github-actions[bot] commented 4 hours ago

Thank you for reporting this crash.

For Bun's internal tracking, this issue is BUN-7GB.