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

Bun seg fault #18141

Open
expelledboy opened this issue Mar 12, 2025 · 7 comments
Open

Bun seg fault #18141

expelledboy opened this issue Mar 12, 2025 · 7 comments
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS runtime

Comments

@expelledboy
Copy link

How can we reproduce the crash?

No response

Relevant log output

~/repos/expelledboy/ticktick-tui on  master! ⌚ 6:09:09
$ just e2e-test
bun test v1.2.4 (fd9a5ea6)

tests/e2e.test.tsx:
============================================================
Bun v1.2.4 (fd9a5ea6) macOS Silicon
macOS v15.3.1
Args: "/nix/store/6kzyrm20r3gwl4nia3iwl45m24cxvdaw-bun-1.2.4/bin/bun" "test" "--timeout" "15000" "--bail" "--preload" "./src/ticktick/api.mock" "./tests/e2e.test.tsx"
Features: jsc tsconfig
Elapsed: 100ms | User: 48ms | Sys: 55ms
RSS: 50.35MB | Peak: 50.35MB | Commit: 1.07GB | Faults: 1275

panic(main thread): Segmentation fault at address 0x5F45444F4E2E7672
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:

Stack Trace (bun.report)

Bun v1.2.4 (fd9a5ea) on macos aarch64 [TestCommand]

Segmentation fault at address 0x5F45444F4E2E7672

  • 1 unknown/js code
  • JSC::JSLockHolder::JSLockHolder
  • JSC::JSLockHolder::JSLockHolder
  • JSC::evaluate
  • Bun::evaluateCommonJSModuleOnce
  • Bun::JSCommonJSModule::evaluate
  • Bun::fetchCommonJSModule
  • Bun::jsFunctionRequireCommonJS
  • 1 unknown/js code
  • jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__666_callHelper__dispatch_LowLevelInterpreter64_asm_2535

Features: tsconfig, jsc

Sentry Issue: BUN-E5D

@expelledboy expelledboy added the crash An issue that could cause a crash label Mar 12, 2025
@github-actions github-actions bot added macOS An issue that occurs on macOS runtime labels Mar 12, 2025
Copy link
Contributor

@expelledboy, the latest version of Bun is v1.2.5, but this crash was reported on Bun v1.2.4.

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

bun upgrade

@dylan-conway
Copy link
Member

Could you share the contents of ./tests/e2e.test.tsx?

@DonIsaac
Copy link
Contributor

I cannot reproduce on a canary build.
Steps:

  • remove postinstall script (idk what bun2nix is)
  • bun install
  • bun install ink-testing-library (it's not in package.json)
  • bun test --timeout 15000 --preload=./src/ticktick/api.mock ./tests/e2e.test.tsx
Image

@expelledboy
Copy link
Author

@DonIsaac

~/repos/expelledboy/ticktick-tui on  master ⌚ 11:33:27
$ git checkout b255e83c7c98d0e63858c15d0d20243b5f430721
Image

@expelledboy
Copy link
Author

Its was very flaky and not 100% reproducible. Its crashes about 20% of the time

@DonIsaac
Copy link
Contributor

checking out that ref, then running just test-e2e-tests gives me this

Image

Please provide full details to reproduce this from scratch. Remember, I don't have the same tools installed on my machine and I don't always know where to find them.

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
Projects
None yet
Development

No branches or pull requests

3 participants