Skip to content

Disable rtcheck if sanitizers are enabled#166

Open
joeloftusdev wants to merge 1 commit intoTracktion:developfrom
joeloftusdev:develop
Open

Disable rtcheck if sanitizers are enabled#166
joeloftusdev wants to merge 1 commit intoTracktion:developfrom
joeloftusdev:develop

Conversation

@joeloftusdev
Copy link

This change updates CMakeLists.txt to automatically set PLUGINVAL_ENABLE_RTCHECK=OFF if either WITH_ADDRESS_SANITIZER or WITH_THREAD_SANITIZER is enabled.

Fixes a crash when running with ThreadSanitizer. Both TSan and librtcheck were wrapping libc functions like stat(), which caused a conflict during startup and led to a segfault before main() ran.

Disable rtcheck when using address or thread sanitizers.
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