-
Notifications
You must be signed in to change notification settings - Fork 3k
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
faiss-napi package segfault from version 1.2.2 to 1.2.5 #18071
Comments
Thank you for reporting this crash. For Bun's internal tracking, this issue is BUN-E2H. |
We rewrote a large chunk of N-API in 1.2.5, @190n could you take a look? |
@asilvas-godaddy Is it possible to share some code so it's easier for us to reproduce? |
I tried running the example code in the faiss-napi README, and I do get a C++ exception:
But the same thing happens in Node, too:
I would love to see a code example that reproduces the segfault if you can share one. Also, do versions 1.2.3 and 1.2.4 have this segfault? |
Having a hard time trying to provide an isolated repro code, but I'll keep trying. Yes versions 1.2.2, 1.2.3, 1.2.4, 1.2.5 all had the same issue. Exceptions are not the concern unless those exceptions are resulting in the segfault. |
@asilvas-godaddy can you try running with |
Also, if you have a script you can run that will either crash or not (even if it's somewhat complex), you could try bisecting to narrow down commits that might be responsible:
|
Looks like good idea for |
I would but the issue magically vanished and can no longer repro. I'll reopen the issue if it comes back. Appreciate all the replies! |
How can we reproduce the crash?
Reverting to version 1.2.1 was required to stop crash.
Relevant log output
Stack Trace (bun.report)
Bun v1.2.5 (
013fddd
) on macos aarch64 [AutoCommand]Segmentation fault at address 0x00000018
long long Zig::NapiClass_ConstructorFunction<false>
jsc_llint_commonCallOp__llintOpWithMetadata__llintOpWithReturn__llintOp__commonOp__fn__fn__makeReturn__fn__fn__fn__684_callHelper__dispatch_LowLevelInterpreter64_asm_2535
llint_call_javascript
Features: transpiler_cache, tsconfig, workers_spawned, napi_module_register, process_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, fetch, jsc
The text was updated successfully, but these errors were encountered: