https://bugs.kde.org/show_bug.cgi?id=445504
Bug ID: 445504 Summary: Using C++ condition_variable results in bogus "mutex is locked simultaneously by two threads" warning Product: valgrind Version: unspecified Platform: Debian stable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: drd Assignee: bart.vanassche+...@gmail.com Reporter: nikol...@rath.org Target Milestone: --- Created attachment 143555 --> https://bugs.kde.org/attachment.cgi?id=143555&action=edit Testcase $ g++ -pthread -Wall -o valgrind_test valgrind_test.cpp && valgrind --tool=drd ./valgrind_test ==867712== drd, a thread error detector ==867712== Copyright (C) 2006-2017, and GNU GPL'd, by Bart Van Assche. ==867712== Using Valgrind-3.16.1 and LibVEX; rerun with -h for copyright info ==867712== Command: ./valgrind_test ==867712== Other thread: waiting for notify ==867712== The impossible happened: mutex is locked simultaneously by two threads: mutex 0x1fff000080, recursion count 1, owner 2. ==867712== at 0x48428B4: pthread_mutex_lock (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_drd-amd64-linux.so) ==867712== by 0x10B917: __gthread_mutex_lock(pthread_mutex_t*) (in /home/nikratio/consulting/valve/steamfs/valgrind_test) ==867712== by 0x10BB5F: std::mutex::lock() (in <redacted>/valgrind_test) ==867712== by 0x10C633: std::lock_guard<std::mutex>::lock_guard(std::mutex&) (in <redacted>/valgrind_test) -- You are receiving this mail because: You are watching all bug changes.