-
-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There's an 100-thread limit in crash reports #4006
Comments
Thanks @dnguyen032123 for reaching out. I believe this is a hard limit defined in here: sentry-cocoa/Sources/SentryCrash/Recording/Tools/SentryCrashMachineContext_Apple.h Line 47 in cf97209
We need to have a limit because it's not possible to allocate more memory during crash handling. We will investigate whether it is okay to raise this limit. |
Yes, indeed, we can't allocate memory when we're crashing, but we can change our approach. When we receive a signal or a mach message we get the thread fill the thread list of the sentry-cocoa/Sources/SentryCrash/Recording/Tools/SentryCrashMachineContext.c Lines 60 to 92 in cf97209
Then we use the information from the sentry-cocoa/Sources/SentryCrash/Recording/SentryCrashReport.c Lines 1058 to 1115 in cf97209
|
Platform
macOS
Environment
Production
Installed
Manually
Version
8.22.1
Xcode Version
15.1
Did it work on previous versions?
No response
Steps to Reproduce
The code below tries to make the thread 100 crash. Apple's crash report shows that thread 108 (some additional threads were automatically created by Cocoa, I think) crashed indeed. However, the crash report on the Sentry server doesn't show the crashed thread (108); thread 0 is shown by default instead. Also, the Threads dropdown only contains threads 0 to 99, so the crashed thread is not even in the dropdown. I checked the local .json crash report in the SentryCrash folder; it doesn't seem to have the crashed thread either. Thus, I think there's a 100-thread limit. Could we increase it or at least show the crashed thread at the top of the dropdown?
Expected Result
The crashed thread (108) is at the top of the Threads dropdown, and its backtrace is also shown.
Actual Result
The thread 0 is at the top of the Threads dropdown, and its backtrace is shown instead.
test_sentry_with_memmove-report-000000009c800000.json
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: