[lldb-dev] Weird results running lldb under Valgrind

Dmitry Antipov via lldb-dev lldb-dev at lists.llvm.org
Fri Sep 25 07:53:21 PDT 2020


On 9/24/20 9:14 PM, Greg Clayton wrote:

> This must be a valgrind issue, there would be major problems if the OS isn't able to lock mutex objects correctly ("mutex is locked simultaneously by two threads"). It is getting confused by a recursive mutex? LLDB uses recursive mutexes.W

LLDB's Predicate.h uses plain std::mutex, which is not recursive, and std::lock_guard/std::unique_lock
on top of it.

This needs more digging in because the latest Valgrind snapshot reports the same "impossible" condition.

Dmitry


More information about the lldb-dev mailing list