DescriptionBecause of UID isolation on Android, crash dump generation has to happen
in-process for renderers as well (as the browser cannot access all the
necessary states of the renderer process).
Breakpad has support for generating minidumps to a passed FD (as the renderer
process on Android does not have permission to create file), so the flow on
Android is:
- when a render process is created the browser creates a file and passes its FD
to the process
- the renderer process initializes Breakpad with that FD
- if there is a crash, Breakpad generates the minidump to that FD.
- when the browser process detects a renderer stopped it checks the minidump
file. If it's empty it deletes the file. If it's not empty, it means there
was a crasher in which case it moves it to the crash dump folder for it to be
picked up and uploaded by the Java side.
BUG=None
TEST=Test that minidumps are generated and uploaded when visiting about:crash
and about:crashbrowserforrealz on Android and desktop Chrome.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163917
Patch Set 1 #Patch Set 2 : Clean-up #Patch Set 3 : Clean-up (part deux) #Patch Set 4 : Improved patch description. #
Total comments: 17
Patch Set 5 : Addressed comments. #
Total comments: 31
Patch Set 6 : More comments addressed. #
Total comments: 10
Patch Set 7 : Addressed comments. #
Total comments: 3
Patch Set 8 : Addressed latest comments. #Patch Set 9 : Synced #Patch Set 10 : Synced again. #Messages
Total messages: 13 (0 generated)
|