MarkersExtractor icon indicating copy to clipboard operation
MarkersExtractor copied to clipboard

Resolve thread sanitizer issues

Open orchetect opened this issue 1 year ago • 4 comments

Reported in: 0.3.6

When Thread Sanitizer is enabled in Xcode, some warnings are posted to the console. This likely is a byproduct of the multi-threading that was introduced a little while ago (#49).

But in practice, the operation of the tool does not seem to be adversely affected (it works as expected). It's likely the warnings are being triggered by an over-abundance of caution from the TSAN but it would still be good to resolve them.

orchetect avatar May 06 '24 23:05 orchetect

The warnings don't show up in GitHub build action? Or do we need to enable any special switches to show the warnings.

IAmVigneswaran avatar May 21 '24 09:05 IAmVigneswaran

When Thread Sanitizer is enabled in Xcode

orchetect avatar May 21 '24 18:05 orchetect

Ahh noted!

Reading some articles related to Thread Sanitizer.

https://www.avanderlee.com/swift/thread-sanitizer-data-races/ https://undo.io/resources/gdb-watchpoint/using-threadsanitizer-to-debug-data-races https://medium.com/@lucianoalmeida1/i-little-bit-about-thread-sanitizer-56a887dc144

IAmVigneswaran avatar May 21 '24 20:05 IAmVigneswaran

This is just something I need to debug when I have time. Was just logging the issue for reference.

orchetect avatar May 21 '24 20:05 orchetect