Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash run test with serve #15157

Open
aralroca opened this issue Nov 14, 2024 · 3 comments
Open

crash run test with serve #15157

aralroca opened this issue Nov 14, 2024 · 3 comments
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS runtime transpiler parser || printer

Comments

@aralroca
Copy link
Contributor

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

  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_
  • src.js_parser.NewParser_

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

@aralroca aralroca added the crash An issue that could cause a crash label Nov 14, 2024
@github-actions github-actions bot added macOS An issue that occurs on macOS runtime labels Nov 14, 2024
Copy link
Contributor

Thank you for reporting this crash.

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

@nektro nektro added the transpiler parser || printer label Nov 14, 2024
@Jarred-Sumner
Copy link
Collaborator

Can you paste the code?

@aralroca
Copy link
Contributor Author

aralroca commented Nov 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS runtime transpiler parser || printer
Projects
None yet
Development

No branches or pull requests

3 participants