Closed blowekamp closed 1 week ago
@blowekamp cool, thanks! Do you need me to try with TSan or did you already?
@blowekamp cool, thanks! Do you need me to try with TSan or did you already?
Yes, please test to confirm. I have not configured TSan yet.
Yes, please test to confirm.
I'm afraid all 3 tests still fail under TSan.
I have not configured TSan yet.
Which platform/compiler do you use? TSan is quite easy to use with clang on unix-like OS (and with gcc AFAIK).
Well that is disappointing.
I am on OSX 12 ARM. Do you have any documentation for using this tool?
Very easy then, just add -fsanitize=thread
to CMAKE_CXX_FLAGS
and CMAKE_C_FLAGS
.
For details: https://clang.llvm.org/docs/ThreadSanitizer.html
Very easy then, just add
-fsanitize=thread
toCMAKE_CXX_FLAGS
andCMAKE_C_FLAGS
.For details: https://clang.llvm.org/docs/ThreadSanitizer.html
Yes, that was easy. The SLIC tests now pass local with the thread sanitizer flag enabled now.
Yes, that was easy. The SLIC tests now pass local with the thread sanitizer flag enabled now.
Sweet! Thanks. The change looks reasonable looking to me, but I don't know this code at all.
The change is small, but non-trivial. I can't dive now into the code to understand what it does, and to verify the change is OK.
@thewtex Looks like this PR was directly merged into release-5.4. Not sure what need to occur now, to get the release and release-5.4 branches is order.
Merge release-5.4
to release
, then merge release
into master
?
@thewtex Looks like this PR was directly merged into release-5.4. Not sure what need to occur now, to get the release and release-5.4 branches is order.
I went ahead and updated release
and master
-- happy to do so with an @ ping. Docs are also available here: https://docs.itk.org/en/latest/contributing/index.html#merge-a-topic
@thewtex Looks like this PR was directly merged into release-5.4. Not sure what need to occur now, to get the release and release-5.4 branches is order.
I went ahead and updated
release
andmaster
-- happy to do so with an @ ping. Docs are also available here: https://docs.itk.org/en/latest/contributing/index.html#merge-a-topic
Thanks for the doc links. It's not clear to me what currently is the difference between the release and the release-x.x branches, and how to determine is a "patch" should got to just release or to both.
Thanks for the doc links. It's not clear to me what currently is the difference between the release and the release-x.x branches, and how to determine is a "patch" should got to just release or to both.
release
is not version specific, which release-X.X
is.
They always go into both.
I went ahead and updated
release
andmaster
Meaning this should be reflected in today's cdash, right?
SLICFixture.Blank2DImage is still failing under TSan on my bot: https://open.cdash.org/tests/1617156531
Was it passing locally for you @blowekamp ?
Perhaps you fixed one race, but not all of them?
Meaning this should be reflected in today's cdash, right?
Yes
Addresses issue #4711.
When RelabelConnectedRegion is called by ThreadedConnectivity, both outputLabel and requeredLabel are the same value. Don't re-write the same value.
PR Checklist
Refer to the ITK Software Guide for further development details if necessary.