commit | f7f5e2b8db13170ab1dc5fc355c84485e3e4c81a | [log] [tgz] |
---|---|---|
author | Ben Hamilton <benhamilton@google.com> | Mon Apr 01 12:44:31 2024 -0600 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 11 10:00:33 2024 -0700 |
tree | 206bed79d052007cb0bf16363b97c6ba642fa6e0 | |
parent | 3ef1bdbbcb95bb03eeb2d1256357b9aff2d7213b [diff] |
[ios] Fix TSAN issue and Mach port leak in CrashpadClient There were two issues with the iOS implementation of CrashpadClient which I reported in https://crbug.com/crashpad/481: 1) TSAN found a data race in ResetForTesting() when it modified the ScopedMachReceiveRight while the Mach exception port thread was reading it 2) The Mach port connected to the exception server was never deallocated This CL fixes both issues. Change-Id: I50f4a5488a3434cf0dbea65438fad943abfcde10 Bug: https://crbug.com/crashpad/481 Bug: b:332305593 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/5410301 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Justin Cohen <justincohen@chromium.org> GitOrigin-RevId: 8df174c64ca2b9dc0f83b089d30760867966b173
Crashpad is a crash-reporting system.
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.