rust-minidump / rust-minidump

Type definitions, parsing, and analysis for the minidump file format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to parse symbols for Mac OS system libraries(eg:libqcocoa.dylib or libsystem_kernel.dylib) in minidump_stackwalk

marshalchan opened this issue · comments

How to obtain the symbol file of the macos system library? Is there a system library file symbol file that can automatically download the corresponding version by specifying srv * like Windbg?

Unfortunately there is no such thing for macOS. What we do in Mozilla is manually scrape the system libraries and put them on our symbol server. Since it's public you can use it, try it with:

minidump-stackwalk --symbols-url https://symbols.mozilla.org

We have symbols for most versions of macOS starting with 10.12+

Thank you for your reply. Previously, I thought this symbol server was just a symbol file for Firefox browser. However, there is a problem. The stack file I parsed using the following command still cannot see any functions from the Mac OS system library:
./mimidump_stackwalk-intel 1.dmp --symbols-url https://symbols.mozilla.org ./symbols > 1.txt

@gabrielesvelto Is there a problem with my usage?

Then it's likely that we don't have that particular symbol on file. We have many but not all.

I would like to obtain the following results:
image

The actual analysis results are as follows:
image

Then it's likely that we don't have that particular symbol on file. We have many but not all.

That's probably the reason. Thank you again for your reply