Skip to content

Conversation

@JDevlieghere
Copy link

Fix crash in BreakpointSite::BumpHitCounts due to missing synchronization. When bumping the hit count, we were correctly acquiring the constituents mutex, but didn't protect the breakpoint location collection. This PR fixes the issue by making the iterator returned by the collection a LockingAdaptedIterable.

rdar://163760832
(cherry picked from commit 97d50b5)

Fix crash in `BreakpointSite::BumpHitCounts` due to missing
synchronization. When bumping the hit count, we were correctly acquiring
the constituents mutex, but didn't protect the breakpoint location
collection. This PR fixes the issue by making the iterator returned by
the collection a `LockingAdaptedIterable`.

rdar://163760832
(cherry picked from commit 97d50b5)
@JDevlieghere
Copy link
Author

@swift-ci test

@felipepiovezan
Copy link

https://ci.swift.org/job/apple-llvm-project-pr-macos/8564/console

04:02:29  ********************
04:02:29  Unresolved Tests (1):
04:02:29    lldb-api :: tools/lldb-dap/attach/TestDAP_attach.py
04:02:29  ********************
04:02:29  Timed Out Tests (1):
04:02:29    lldb-api :: tools/lldb-dap/module/TestDAP_module.py

@felipepiovezan
Copy link

@swift-ci test macos platform

@JDevlieghere JDevlieghere merged commit c385dd1 into stable/21.x Nov 11, 2025
3 checks passed
@JDevlieghere JDevlieghere deleted the jdevlieghere/radar/163760832 branch November 11, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants