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 Behavior Sanitizer Link Failure #38

Open
marquitos0119 opened this issue Sep 7, 2022 · 1 comment
Open

Undefined Behavior Sanitizer Link Failure #38

marquitos0119 opened this issue Sep 7, 2022 · 1 comment

Comments

@marquitos0119
Copy link
Contributor

When using ubsan: -fsanitize=undefined, the final build of cryptofuzz fails due to a linker failure. The workaround that has solved this for me is to manually link with -lubsan. However, this is not the recommended action

When taking the recommended approach (linking with Wl,-fsanitize=undefined) I see runtime errors, so I just wanted to share what's worked for me in case others also encounter it.

@kestrelrin
Copy link

Can I checking if the command to enter is
export CFLAGS="-fsanitize=address,fuzzer-no-link -O2 -g -lubsan" and
export CXXFLAGS="-fsanitize=address,fuzzer-no-link -D_GLIBCXX_DEBUG -O2 -g -lubsan"?
I have used this command but the modules cannot be compiled

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

2 participants