bun
bun copied to clipboard
Crash when requiring native addon on Windows
How can we reproduce the crash?
https://replit.com/@hubertwalczak8/Bun-Crash-with-Native-Addon-on-Windows#index.ts
Basically, I'm doing native addon in zig for data parser, and bun crashes out whenever I require the addon on Windows. Not sure if this is the same as https://github.com/oven-sh/bun/issues/4290
Relevant log output
No output beside this:
F:\Repositories\playground>bun testworker.ts
============================================================
Bun v1.1.26 (0a37423b) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "bun" "testworker.ts"
Features: jsc tsconfig
Builtins: "bun:main"
Elapsed: 41ms | User: 15ms | Sys: 31ms
RSS: 98.36MB | Peak: 98.37MB | Commit: 0.15GB | Faults: 24229
panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF
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.1.26 (0a37423
) on windows x86_64 [AutoCommand]
Segmentation fault at address 0xFFFFFFFFFFFFFFFF
- ??? at
0x2d0931
in node.exe - ??? at
0x1056
in example.node -
BunProcess.cpp:411
:Bun::Process_functionDlopen
- 2 unknown/js code
-
llint_entry