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 symbol: __asan_option_detect_stack_use_after_return #314

Open
surechen opened this issue Jul 16, 2022 · 0 comments
Open

undefined symbol: __asan_option_detect_stack_use_after_return #314

surechen opened this issue Jul 16, 2022 · 0 comments

Comments

@surechen
Copy link

surechen commented Jul 16, 2022

My system: Ubuntu 20.04.1 LTS
target: x86_64-unknown-linux-gnu

My fuzz depends on a dynamic library: ss.so.
ss is a rust project. The ss.so file is generated when cargo fuzz run fuzz_target_1 is executed. Project ss use crate-dlopen to load libraby .so

Here is the Cargo.toml of ss.so :

[lib]
name = "ss"
path = "src/lib.rs"
crate-type = ["rlib", "dylib"]

I use command:

cargo fuzz run fuzz_target_1

This is my fuzz Cargo.toml:

[package]
name = "ss-fuzz"
version = "0.0.0"
authors = ["Automatically generated"]
publish = false
edition = "2018"

[package.metadata]
cargo-fuzz = true

[dependencies.ss]
path = "../../../ss"

[dependencies]
libfuzzer-sys = "0.4"

[workspace]
members = ["."]

[[bin]]
name = "fuzz_target_1"
path = "fuzz_targets/fuzz_target_1.rs"
test = false
doc = false

The error is: thread '' panicked at 'called Result::unwrap() on an Err value: OpeningLibraryError (Custom { kind: Other, error: "........... ss.so: undefined symbol: __asan_option_detect_stack_use_after_return" })',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant