-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Restore macOS kernel_panics
table on modern macOS
#7585
Restore macOS kernel_panics
table on modern macOS
#7585
Conversation
Interestingly, the kernel panic log format in macOS 12 is also the exact same format I just saw generated in macOS 10.15.7. |
ec1d392
to
b9558d1
Compare
The following content is just no longer present in panic logs. I will try to find when it was last present, but right now these just can't be filled in:
The |
A note for reviewers: macOS sweeps this log directory for kernel panic logs older than say, a week, and puts them in a subdirectory called |
Another interesting note: switching macOS system language to non-English does not appear to change the content of a kernel panic file, which is still created in English. So there's no internationalization concerns with this table. |
For reviewers who wish to test, see issue #7215 for instructions on creating your own panic log file, or download one of mine and extract to the |
kernel_panics
table on modern macOS
Bumping this to 5.5 until it gets reviewed but maybe after I get approver rights I can trade @sharvilshah for a 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.
While I can't induce kernel panics on my machine (don't have access to disable SIP to do the dtrace panic() trick), tested with all the attached panic logs, and it works great!
Thanks! I guess you have no more open PRs so I'll have to review the next one 😆 |
Fixes #7215 by unwrapping a light layer of undocumented obfuscation (JSON) that Apple added to their semi-structured plaintext kernel panic log files up through macOS 10.15. Some columns don't appear to exist anymore, or might just be missing from my crash dump:
dependencies
,last_unloaded
, etc.regsiters
column, but unfortunately the data is not there anymore (at least since macOS 10.14)module_backtrace
column, but unfortunately the data is not there anymore (at least since macOS 10.14)test on macOS 11.x(skipped, since the format in 10.15.6 and 12.3.1 are exactly the same)Example of table working to parse a crash dump: