getsentry / getsentry/sentry-cocoa

`SentryCrashMonitor_MachException` crashes on macOS

Open
#1,589 17 comments 0 reactions 0 assignees View on GitHub
Bug Cocoa Component: SentryCrash Errors
Dominant language
Swift
Stars
1.1k
Forks
418
Avg merge
2d 3h
Merged PRs (30d)
106

Description

### Environment

Sentry SaaS (sentry.io)

Sentry Cocoa 7.7.0

### Steps to Reproduce

1. Look at this report: https://sentry.io/organizations/sindresorhus/issues/2884292704/events/a191dd6573534c37aa3b87fd18430a52/
2. Notice how it crashed in "Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_MachException.c:266"

```
libsystem_kernel 0x189c29954 mach_msg_trap
libsystem_kernel 0x189c29cfc mach_msg
Lungo 0x10024cb20 handleExceptions (Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_MachException.c:266)
libsystem_pthread 0x189c6523c _pthread_start
```

### Expected Result

I expected the crash monitor to not crash.

### Actual Result

It crashed.

The crash happened for a random user. I cannot reproduce it myself.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.