Skip to content

better-sqlite3 crashes on windows version v1.2.5 (0x7FFE7597A4B0) #18219

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
karemont opened this issue Mar 15, 2025 · 0 comments
Closed

better-sqlite3 crashes on windows version v1.2.5 (0x7FFE7597A4B0) #18219

karemont opened this issue Mar 15, 2025 · 0 comments
Labels
crash An issue that could cause a crash runtime windows An issue that is known to occur on Windows

Comments

@karemont
Copy link

How can we reproduce the crash?

Run the following script using bun and node

test.js

import Database from 'better-sqlite3';

const db = new Database('sqlite.db');

console.log(db.prepare('SELECT 1 + 1 AS result')
	.all());

version used [email protected]

Relevant log output

bun test.js
107 |         return opts[p] || p;
108 |       })
109 |     );
110 |     tries.push(n);
111 |     try {
112 |       b = opts.path ? requireFunc.resolve(n) : requireFunc(n);
                                                     ^
error: LoadLibrary failed: A dynamic link library (DLL) in
 code: "ERR_DLOPEN_FAILED"

      at bindings (C:\[REDACTED]\bun\node_modules\bindings\bindings.js:112:48)
      at new Database (C:\[REDACTED]\bun\node_modules\better-sqlite3\lib\database.js:48:29)
      at C:\[REDACTED]\bun\test.js:4:12

Bun v1.2.5 (Windows x64)
============================================================
Bun v1.2.5 (013fdddc) Windows x64
Windows v.win10_cu
CPU: sse42 avx avx2
Args: "C:\Users\[REDACTED]\.bun\bin\bun.exe" "test.js"
Features: jsc tsconfig tsconfig_paths process_dlopen
Builtins: "bun:main" "node:fs" "node:path" "node:util" "node:util/types"
Elapsed: 193ms | User: 31ms | Sys: 93ms
RSS: 0.14GB | Peak: 0.14GB | Commit: 0.20GB | Faults: 35388

panic(main thread): Segmentation fault at address 0x7FFE7597A4B0

Stack Trace (bun.report)

Bun v1.2.5 (013fddd) on windows x86_64 [RunCommand]

Segmentation fault at address 0x7FFED7729F50

Features: tsconfig, process_dlopen, jsc

Sentry Issue: BUN-8RS

@karemont karemont added the crash An issue that could cause a crash label Mar 15, 2025
@github-actions github-actions bot added runtime windows An issue that is known to occur on Windows labels Mar 15, 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 runtime windows An issue that is known to occur on Windows
Projects
None yet
Development

No branches or pull requests

2 participants