Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
2466 Discussions

Inspector XE 2013SP1 reports data race in _concurrent_unordered_impl

__steve
Beginner
254 Views

Hi,

I just upgraded to the latest Intel Tools, including TBB to 4.2. Running the Inspector on one of my unit tests it reports some data races triggered by parallel calls from tbb::concurrent_unordered_map::find(). The data races are all related to the initialization of the buckets, see part of the call stack below.

Do I really got a problem here or is it a false positive ?

Thanks.


Thread Read:
  UnitTest.dll!init_bucket - _concurrent_unordered_impl.h:1292
  UnitTest.dll!internal_find - _concurrent_unordered_impl.h:1190
Thread Write:
  UnitTest.dll!set_bucket - _concurrent_unordered_impl.h:1358
  UnitTest.dll!init_bucket - _concurrent_unordered_impl.h:1299
  UnitTest.dll!internal_find - _concurrent_unordered_impl.h:1190

 

0 Kudos
2 Replies
RafSchietekat
Valued Contributor III
254 Views

1190 and 1299 are blank in 4.2 ("the latest Intel Tools, including TBB to 4.2") and comments in 4.2 update 5 (current version). 1292 is a comment resp. a function header. Maybe it's a different update?

And isn't the Inspector dependent on explicit instrumentation in TBB?

(Added after #3) Commercial release, of course... please ignore.

0 Kudos
Vladimir_P_1234567890
254 Views

These lines correspond to headers from commercial package. 

we are checking whether these hits are false positives.

Re: Raf. I do not see any guards in the header so I'm not sure that "-DDO_ITT_NOTIFY" macro might help in this case.

--Vladimir

0 Kudos
Reply