[lldb-dev] Help fixing deadlock in DWARF symbol preloading

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Tue Feb 9 12:09:45 PST 2021

On 05/02/2021 00:38, Jorge Gorbe Moya wrote:
> Wouldn't it be preferable to try_lock in GetDescription (which is the 
> one currently acquiring the mutex) instead?

I'd be uncomfortable with a function like GetDescription "randomly" 
doing nothing (returning an empty string, or whatever). OTOH, while it's 
definitely not ideal, I think I could live with ReportError not 
reporting anything (or skipping the description, or something) under 
some circumstances.

That said, I like both Greg's and Raphael's ideas on how to fix this 
(assuming they work)...


More information about the lldb-dev mailing list