[Lldb-commits] [lldb] [LLDB] Acquire the module mutex at the start of SetLoadAddress (PR #227149)

Jacob Lalonde via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 29 17:04:49 PDT 2026


Jlalond wrote:

> > > As much as I generally distrust an agent for fixes, have you tried to ask claude or codex to create a test case that would deadlock without this fix?
> > 
> > 
> > @Jlalond can you see this draft PR? #227348 Claude came up with a test that deadlocks without the change
> 
> would you like to fold in this test? while the coverage is partial, i think there is a value in the test.

I'd prefer not to add a test to verify the lack of a dead-lock.

Primarily, such tests often fail 'open' or successfully. Giving, in my opinion, a false sense of security. Additionally any tests that are based on timing are inherently flakey and I think for a project the scale of LLVM flakey tests are massive burden. I do think @youngd007's test is great repro proving the deadlock.

https://github.com/llvm/llvm-project/pull/227149


More information about the lldb-commits mailing list