https://bugs.kde.org/show_bug.cgi?id=416286
Bug ID: 416286 Summary: DRD reports “conflicting load” error on std::mutex::lock Product: valgrind Version: 3.15 SVN Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: drd Assignee: bvanass...@acm.org Reporter: igor.chorazew...@intel.com Target Milestone: --- Created attachment 125144 --> https://bugs.kde.org/attachment.cgi?id=125144&action=edit test code When I run attached code under drd I get "conflicting load" error on std::mutex::lock. Both removing 'counter' constructor and calling 'get_counter' in main thread before any thread starts solves the issue. It seems drd thinks that static initialization of an object is not thread safe. I tested this with g++-9.2.1 and clang++ 9.0.0. -- You are receiving this mail because: You are watching all bug changes.