I am running a program with thread sanitizers and wonder how to interpret the following warning:
==================
WARNING: ThreadSanitizer: data race (pid=2788668)
Read of size 4 at 0x7f7eefc4e298 by main thread:
[Stacktrace follows...]
Previous write of size 8 at 0x7f7eefc4e298 by thread T27:
[Stacktrace follows...]
Location is heap block of size 307272 at 0x7f7eefc1c000 allocated by thread T27
[Stacktrace follows...]
Thread T27 (tid=2790352, running) created by main thread at:
[Stacktrace follows...]
==================
I am interpreting this message as just saying that the main thread read memory written to previously by a different thread. The different thread was created by the main thread and this different thread also allocated the memory. Is this correct? If so, is there a way to suppress this particular warning in the following runs?