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

Add --enable-asan & --enable-ubsan. By default disabled. #352

Closed
wants to merge 1 commit into from

Conversation

atupone
Copy link
Contributor

@atupone atupone commented May 26, 2024

To enable sanitizer.

Reading the net, it seems that -g -O1 is also very helpful to read the trace.

Also this is good to have a stack trace and halt when there are problems:
export UBSAN_OPTIONS=print_stacktrace=1:halt_on_error=1
to execute before running bzflag

No check is performed to see if the compiler actually respect those flags or faults (To be added in future)

@atupone atupone closed this Mar 20, 2025
@atupone atupone deleted the sanitizers branch March 20, 2025 21:06
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

Successfully merging this pull request may close these issues.

1 participant