Scenario 1
make clean
make tomo-race-detector
The
tomobinary executable file (built using themake tomo-race-detectorcommand) can be used to start the node and detect data races during interactions with the node. However, this process will result in a downgrade in the node's performance.
Scenario 2
make clean
make test-race-detector
Data race detected

Please see report file at Link
Build normally after diagnosing race detector
make clean
make all
The
-raceflag should only be used during testing to detect data race