lksnmnn / symbolicate-crashreports Goto Github PK
View Code? Open in Web Editor NEWThis script is based on Apple's symbolicate script. With some minor changes it now symbolicates Mac and iOS crash reports from PLCrashReporter.
This script is based on Apple's symbolicate script. With some minor changes it now symbolicates Mac and iOS crash reports from PLCrashReporter.
Hi,
I'm currently looking to symbolicate some kernel panic log I've got.
Currently I'm doing it manually .. for each address in the backtrace, I find within which driver range it's found, then I call that address with 'atos' in order to find it's matching function:line in the following manner :
atos -o <pathToDriverMacho> -l <driverBaseAddress> <addressFromBacktrace>
the backtrace can contain several drivers involved, all are listed below with their corresponding address range :
panic(cpu 0 caller 0xffffff800917ff59): "Releasing non-exclusive RW lock without a reader refcount!"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4570.51.1/osfmk/i386/locks_i386.c:1254 Backtrace (CPU 0), Frame : Return Address 0xffffff80690a3010 : 0xffffff800906e166 0xffffff80690a3060 : 0xffffff8009196714 0xffffff80690a30a0 : 0xffffff8009188a00 0xffffff80690a3120 : 0xffffff8009020180 0xffffff80690a3140 : 0xffffff800906dbdc 0xffffff80690a3270 : 0xffffff800906d99c 0xffffff80690a32d0 : 0xffffff800917ff59 0xffffff80690a3300 : 0xffffff800918010e 0xffffff80690a3320 : 0xffffff7f8a4621b0 0xffffff80690a33f0 : 0xffffff7f8a4625cc 0xffffff80690a3460 : 0xffffff7f8a43c4ba 0xffffff80690a3540 : 0xffffff7f8a410152 0xffffff80690a3d60 : 0xffffff80092cfa56 0xffffff80690a3de0 : 0xffffff80092b6b74 0xffffff80690a3f10 : 0xffffff80092b6da7 0xffffff80690a3f40 : 0xffffff8009604418 0xffffff80690a3fa0 : 0xffffff8009020966 Kernel Extensions in backtrace: com.apple.filesystems.apfs(748.51)[4E26C92D-330B-33A8-8DA7-C1498DD86AB7]@0xffffff7f8a3da000->0xffffff7f8a4bffff dependency: com.apple.kec.corecrypto(1.0)[CA65BD09-4559-3507-A72B-733ED9110DF1]@0xffffff7f89faf000 dependency: com.apple.driver.AppleEffaceableStorage(1.0)[6B49B846-2852-3D7C-BD45-E70DC2684A8E]@0xffffff7f8a33e000 dependency: com.apple.iokit.IOStorageFamily(2.1)[F27A8A2A-6662-3608-83BD-415037509E01]@0xffffff7f89ab7000
it seems like this script perform this routine automatically. but doesn't come with usage example, perhaps you can provide one ?
thanks
Does this work on Xcode 9?
I'm running into errors when I try to use it.
/Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash Esa-super-easy-timer-crash-1-0-23.crash > readable_report.crash
sh: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun: No such file or directory
Error: can't find tool named 'otool' in the macosx SDK or any fallback SDKs at /Applications/Xcode.app/Contents/SharedFrameworks/DVTFoundation.framework/Versions/A/Resources/symbolicatecrash line 115.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.