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

undefined symbols for fuzzer binary_only/frida_libpng #2922

Open
rainbowcardiod opened this issue Feb 1, 2025 · 2 comments
Open

undefined symbols for fuzzer binary_only/frida_libpng #2922

rainbowcardiod opened this issue Feb 1, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@rainbowcardiod
Copy link

When compiling fuzzers/binary_only/frida_libpng I get undefined symbols, see below.

$ sw_vers 
ProductName:		macOS
ProductVersion:		15.3
BuildVersion:		24D60

$ rustc --version
rustc 1.84.0 (9fc6b4312 2025-01-07) (Homebrew)

$ cd fuzzers/binary_only/frida_libpng

$ cargo run
....
          Undefined symbols for architecture arm64:
            "__frida_g_get_current_dir", referenced from:
                frida_gum::process::Process::current_dir::h7ab5639f21cbba14 in libfrida_gum-65f16446e27b8f25.rlib[5](frida_gum-65f16446e27b8f25.frida_gum.a96db2485db9796c-cgu.2.rcgu.o)
            "__frida_g_get_home_dir", referenced from:
                frida_gum::process::Process::home_dir::h058beb1f826552f2 in libfrida_gum-65f16446e27b8f25.rlib[5](frida_gum-65f16446e27b8f25.frida_gum.a96db2485db9796c-cgu.2.rcgu.o)
            "__frida_g_get_tmp_dir", referenced from:
                frida_gum::process::Process::tmp_dir::h611516336a6bc0c9 in libfrida_gum-65f16446e27b8f25.rlib[5](frida_gum-65f16446e27b8f25.frida_gum.a96db2485db9796c-cgu.2.rcgu.o)
            "_gum_linux_parse_ucontext", referenced from:
                frida_gum::backtracer::Backtracer::accurate_with_signal_context::h79e9b1780c65ca38 in libfrida_gum-65f16446e27b8f25.rlib[6](frida_gum-65f16446e27b8f25.frida_gum.a96db2485db9796c-cgu.3.rcgu.o)
                frida_gum::backtracer::Backtracer::fuzzy_with_signal_context::h17b4e5c9b22bb179 in libfrida_gum-65f16446e27b8f25.rlib[6](frida_gum-65f16446e27b8f25.frida_gum.a96db2485db9796c-cgu.3.rcgu.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile `frida_fuzzer` (bin "frida_fuzzer") due to 1 previous error

@rainbowcardiod rainbowcardiod added the bug Something isn't working label Feb 1, 2025
@tokatoka
Copy link
Member

tokatoka commented Feb 1, 2025

@s1341
Can you take a look?

@s1341
Copy link
Collaborator

s1341 commented Feb 1, 2025

This has already been reported to me. I am working on a fix. Probably tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants