================ @@ -264,34 +288,35 @@ PathMappingList::FindFile(const FileSpec &orig_spec) const { bool PathMappingList::Replace(llvm::StringRef path, llvm::StringRef new_path, bool notify) { - std::lock_guard<std::recursive_mutex> lock(m_mutex); - uint32_t idx = FindIndexForPath(path); - if (idx < m_pairs.size()) { + { + std::lock_guard<std::mutex> lock(m_pairs_mutex); + uint32_t idx = FindIndexForPath(path); ---------------- kastiglione wrote:
@JDevlieghere It seems these two lines lead to deadlock. `FindIndexForPath` attempts to lock `m_pairs_mutex` too, but can't. https://github.com/llvm/llvm-project/pull/114576 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits