[Bug 38443] New: "log enable dwarf all" introduces deadlocks

Bug ID 38443
Summary “log enable dwarf all” introduces deadlocks
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter mosescu@google.com
CC llvm-bugs@lists.llvm.org

Enabling dwarf logging introduces deadlocks: Module::m_mutex is aquired by
Module::GetDescription() for logging purposes. The problem is that most module
operations already hold this mutex (and the actual operation which requires
logging likely happens on a thread pool)

Here's a deadlock example:

Thread 1