-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Crashlytics] Mach IPC identity protected address backwards compatibility #15725
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
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. |
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request adds backward compatibility for Mach exception handling on older macOS versions by falling back to EXCEPTION_DEFAULT behavior. The changes are well-structured, using a union to handle different message formats and a behavior field to control the logic.
I've identified a critical bug where the code for finding the crashed thread (FIRCLSCrashedThreadLookup) incorrectly handles the new EXCEPTION_DEFAULT case, which could lead to a crash. I've also suggested refactoring to reduce code duplication and removing some leftover development comments. Please address the critical issue before merging.
e102f96 to
1b137ff
Compare
1b137ff to
0980af7
Compare
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly adds backward compatibility for older macOS versions by falling back to EXCEPTION_DEFAULT behavior for the Mach exception handler. The use of a union for different message formats and propagating the behavior flag is well done. However, I've identified a critical bug in FIRCLSCrashedThreadLookup where it fails to handle the EXCEPTION_DEFAULT case, which would prevent crash reporting on older macOS versions. I've provided a detailed explanation and a fix for this issue. Additionally, I've included a minor suggestion to improve logging for better debugging.
0980af7 to
24564be
Compare
|
/gemini review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly implements backward compatibility for Mach exception handling on older macOS versions by introducing a fallback to EXCEPTION_DEFAULT behavior. The use of a union to manage different message structures is appropriate. The code is generally well-structured, but I've pointed out a minor opportunity for code deduplication to improve maintainability, along with a small style fix.
24564be to
bceeb1f
Compare
bceeb1f to
bd007da
Compare
Follow up for #15612
Since MacOS 10.5 and 11 does not have identity protected behavior option, we need to fall back to default behavior for backward compatibility.
#15393
#no-changelog