-
-
Notifications
You must be signed in to change notification settings - Fork 648
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
ThreadSanitizer: signal-unsafe call inside of a signal #147
Comments
The version is doctest 2.0.0. |
I'll have to think about this. In the meantime I would suggest suppressing TSAN errors from that code part. |
A simple workaround may be to use std::atomic<std::string> in signal handler? |
I think the issue will not be solved with atomic strings - I think the problem is that there are allocations which may throw and its not just because of Anyway I won't be able to attend to this in the near future... but I'm keeping it open |
I will try to fix this,and then give a PR. |
any news on this? |
I'll go ahead and close it - until something more comes up. |
This seems to not be fully resolved yet. (Version 2.3.6)
I believe this is due to the const char*-change of this issue is being converted to const std::string& I will try to fix this,and then give a PR. |
When I use doctest with ThreadSanitizer,it reports the following error:
Usually the signal handle code should be as simple as possible to avoid non signal-safe calls, so I suggest to refactor this code.
The text was updated successfully, but these errors were encountered: