Open JavierBejMen opened 2 months ago
A data race inside the implementation of std::shared_ptr
is very unlikely.
Please make sure the build is clean, and does not pick up somehow a binary from a old or different version of the C++ standard library.
The symptom sounds related to:
Describe your environment gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 opentelemetry-cpp 1.8.3#6 Same behaviour on latest too.
Steps to reproduce
What is the expected behavior? I expect that thread sanitizer reports no warnings.
What is the actual behavior? Getting to data races on shared ptr when calling provider->GetMeter("default")
Additional context When setting the GlobalProvider there are no warnings, but when accessing through the provider directly it does. I don't know if I'm doing something wrong or if it is an internal bug from the SDK, if you could help me I would appreciate it!