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

print more details for the dyld[39817]: missing symbol called error #3511

Closed
wizzard0 opened this issue Jul 4, 2023 · 6 comments · May be fixed by Neo00007/bun#5
Closed

print more details for the dyld[39817]: missing symbol called error #3511

wizzard0 opened this issue Jul 4, 2023 · 6 comments · May be fixed by Neo00007/bun#5
Labels
enhancement New feature or request

Comments

@wizzard0
Copy link

wizzard0 commented Jul 4, 2023

What is the problem this feature would solve?

Identifying specific problematic modules while adjusting existing node projects to use bun takes a long time

What is the feature you are proposing to solve the problem?

Print more details for the dyld[39817]: missing symbol called error (symbol name, library name, ideally where it was required from)

What alternatives have you considered?

  • dtrace (dtruss, opensnoop) - inconvenient to use in the face of system integrity protection and stuff
  • binary search over node_modules - hard to drag thru the mess of other errors because problematic modules are typically indirect dependencies
@wizzard0 wizzard0 added the enhancement New feature or request label Jul 4, 2023
@Jarred-Sumner
Copy link
Collaborator

Unfortunately this error happens in dyld (it is not produced by Bun)

It means that the native library expects a function to exist but it didn't exist

You might get more info with DYLD_PRINT_APIS=1

@wizzard0
Copy link
Author

wizzard0 commented Jul 5, 2023

Interestingly, DYLD_PRINT_APIS=1 /always/ gives me bus error:

% bun src/hello.ts         
hello bun
% DYLD_PRINT_APIS=1 bun src/hello.ts
zsh: bus error  DYLD_PRINT_APIS=1 bun src/hello.ts
% cat src/hello.ts 
console.log("hello bun");

Reproduces for bun 0.6.13, 0.6.12, 0.6.11 on macOS Ventura 13.4.1

Darwin 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:23 PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6020 arm64

@divmgl
Copy link

divmgl commented Sep 9, 2023

I'm running into this problem now. I'd love to switch us over to using Bun but I'm unable to tell what function is getting called (or even what package has a V8 binary) in our app.

@jondot
Copy link

jondot commented Sep 11, 2023

Not perfect but try:
DYLD_PRINT_BINDINGS=1

I'm stuck migrating a project as well.
My issue it seems comes from libkrb5support

@Jarred-Sumner
Copy link
Collaborator

Duplicate of #4290

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #4290 Aug 8, 2024
@Jarred-Sumner
Copy link
Collaborator

@190n is actively working on supporting V8 C++ APIs in Bun

Please follow along in #4290. It will be fixed

@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants