how to analysis breakpad

2,328 views
Skip to first unread message

tomorrow chen

unread,
Nov 23, 2016, 2:30:13 AM11/23/16
to Chromium-dev
Hi ALL
I'm working on android platform.
Could anybody tell me how to analysis the breadpad output from logcat, or how to pull the crash dump and decode it like "https://www.chromium.org/developers/decoding-crash-dumps" said?
I have read "https://www.chromium.org/developers/crash-reports", but it doesn't work in android.
Maybe because it only work in mac/windows/linux.
Could anybody tell me how to do it in android?

Mikhail Lopatkin

unread,
Nov 23, 2016, 3:37:34 AM11/23/16
to tomorr...@gmail.com, Chromium-dev
Hi,
 
To decode breakpad's output from logcat (the so called microdump) you should follow instructions for linux from here https://www.chromium.org/developers/decoding-crash-dumps, but instead of building and running minidump_stackwalk you should use microdump_stackwalk and use text file with logcat output as an input (instead of foo.dmp).
 
You can (and probably should) build both dump_syms and microdump_stackwalk inside of your Android checkout (with target_os=android set in args.gn); both tools should be run on the desktop, of course.
 
-- 
Mikhail Lopatkin.
 
 
 
23.11.2016, 10:28, "tomorrow chen" <tomorr...@gmail.com>:
--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

tomorrow chen

unread,
Nov 28, 2016, 1:36:49 AM11/28/16
to Mikhail Lopatkin, Chromium-dev

Hi Lopatkin
Thanks a lot!
I can get stacktrace without symbols now.
Yet failed to get the debugging symbols.

Following is my step:

./dump_syms  $SRC/out/Release/lib/libxwalkcore.so  $SRC/out/Release/xwalk_core_library/libs/armeabi-v7a/libxwalkcore.so >~/my_symbols/libxwalkcore.sym
 $SRC/out/Release/lib/libxwalkcore.so is the so with symbol ,$SRC/out/Release/xwalk_core_library/libs/armeabi-v7a/libxwalkcore.so  is so without symbol.

./microdump_stackwalk -m ~/log/breakpad.log ~/my_symbols

Yet there's still stacktrace without symbol.

Am I right with dump_syms arguments?
 




To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

Mikhail Lopatkin

unread,
Nov 28, 2016, 3:01:08 AM11/28/16
to tomorr...@gmail.com, Chromium-dev
Hi,
 
You should only supply your library with symbols for dump_syms:
./dump_syms  $SRC/out/Release/lib/libxwalkcore.so > ~/my_symbols/libxwalkcore.sym
 
Then you should follow the instruction https://www.chromium.org/developers/decoding-crash-dumps and read carefully about where to place symbol file.
 
First, find the module hash, e.g. by running
head ~/my_symbols/libxwalkcore.sym
and copying hexadecimal string from the line that says MODULE (your hash will be different):
MODULE Linux arm 88E4FFA94D467358B692B6E56B44193C0 libxwalkcore.so
 
After that you have to make a sub-tree and put your symbols file into it:
mv ~/my_symbols/libxwalkcore.sym ~/my_symbols/libxwalkcore.so/88E4FFA94D467358B692B6E56B44193C0/
 
You may want to compare hash from the module and hash from the breakpad log if you're not sure that the log comes from the samy library you have locally.
 
Then you can run ./microdump_stackwalk -m ~/log/breakpad.log ~/my_symbols
-- 
Mikhail Lopatkin.
 
 
 
28.11.2016, 09:36, "tomorrow chen" <tomorr...@gmail.com>:
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

tomorrow chen

unread,
Nov 28, 2016, 4:47:44 AM11/28/16
to Mikhail Lopatkin, Chromium-dev
Hi Lopatkin
Thanks for your kind help.
I followed your step ,yet it doesn't work for me.
I suspect microdump did not try to locate the sym.

There's not such output when symbols directory is empty
"
[time stamp] simple_symbol_supplier.cc:150: INFO: No symbol file at /tmp/my_symbols/libfoo/hash/libfoo.sym"

So even I generate the sym in the folder, it has not impact. And display the same content with the command without sym.

I also check the hash code. It's match.

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

 

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages