Skip to content

bun crashes on running a script with better-sqlite3 #19116

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

Closed
punkish opened this issue Apr 18, 2025 · 1 comment
Closed

bun crashes on running a script with better-sqlite3 #19116

punkish opened this issue Apr 18, 2025 · 1 comment
Labels
crash An issue that could cause a crash macOS An issue that occurs on macOS runtime

Comments

@punkish
Copy link

punkish commented Apr 18, 2025

How can we reproduce the crash?

ran a program with bun 1.2.10 that runs fine with node 22.14.0. The program crashed

Relevant log output

============================================================
Bun v1.2.10 (db2e7d7f) macOS Silicon
macOS v15.4.1
CPU: fp aes crc32 atomics
Args: "bun" "lib/database/all-in-one.js"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) jsc transpiler_cache(8) tsconfig(2)
Builtins: "bun:main" "node:crypto" "node:fs" "node:path" "node:process" "node:url" "node:util"
Elapsed: 211ms | User: 161ms | Sys: 100ms
RSS: 108.63MB | Peak: 108.63MB | Commit: 1.01GB | Faults: 1510

panic(main thread): Segmentation fault at address 0x0
Crashed while while loading native module: /Users/punkish/Projects/zai2/node_modules/better-sqlite3/build/Release/better_sqlite3.node
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.2.10/Ma1db2e7d7GuggQ___u258iB______A2AA

[1]    21869 trace trap  bun lib/database/all-in-one.js

Stack Trace (bun.report)

Bun v1.2.10 (db2e7d7) on macos aarch64 [RunAsNodeCommand]

Segmentation fault at address 0x00000000

  • 3 unknown/js code
  • v8::Isolate::Isolate

Features: Bun.stderr, Bun.stdout, jsc

@punkish punkish added the crash An issue that could cause a crash label Apr 18, 2025
@github-actions github-actions bot added macOS An issue that occurs on macOS runtime labels Apr 18, 2025
@190n
Copy link
Collaborator

190n commented Apr 18, 2025

better-sqlite3 won't work until we implement more V8 C++ APIs, see #4290.

@190n 190n closed this as completed Apr 18, 2025
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

2 participants