I'm using ThreadSanitizer with Catch2. Unfortunately, ThreadSanitizer is finding thread leaks with Catch2 and Thread race conditions in my code. Is there any way to disable ThreadSanitizer's thread leak detection but leaving on its race condition testing?
Asked
Active
Viewed 304 times
0
-
Are your threads detached? I find that it reports detached threads as leaked. – doug94028 Dec 05 '21 at 23:41
1 Answers
0
It turns out that the right thing to do was to fix the bug. I was creating threads and not joining them or deleting the std::thread
object.

vy32
- 28,461
- 37
- 122
- 246