Mac: ensure crashes are forwarded to system crash reporter

Historically, we have forwarded exceptions from Crashpad to Apple's
system reporting tool explicitly. However, starting in 10.15, the crash
reporter stopped paying attention to EXC_CRASH type exceptions.
Instead, it now listens to EXC_CORPSE_NOTIFY, which is raised postmortem
if and only if an EXC_CRASH handler returns MACH_RCV_PORT_DIED. But we
specifically were *not* doing that in order to avoid multiple reports
(one from EXC_CRASH and one from EXC_CORPSE_NOTIFY) between 10.11 and
10.14.

This change stops forwarding EXC_CRASH exceptions explicitly and *does*
return MACH_RCV_PORT_DIED if they should be forwarded

Bug: chromium:388545119
Change-Id: I36a781390386b9e164072fcc602809723a2dc2ee
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/6242575
Reviewed-by: Mark Mentovai <mark@chromium.org>
5 files changed
tree: f4381006cad85582c6206d43da5194615b9e4878
  1. build/
  2. client/
  3. compat/
  4. doc/
  5. handler/
  6. infra/
  7. minidump/
  8. snapshot/
  9. test/
  10. third_party/
  11. tools/
  12. util/
  13. .clang-format
  14. .gitattributes
  15. .gitignore
  16. .gn
  17. .style.yapf
  18. .vpython3
  19. AUTHORS
  20. BUILD.gn
  21. codereview.settings
  22. CONTRIBUTORS
  23. DEPS
  24. LICENSE
  25. navbar.md
  26. OWNERS
  27. package.h
  28. README.md
README.md

Crashpad

Crashpad is a crash-reporting system.

Documentation

Source Code

Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.

Other Links