Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(49)

Issue 386001: A hackish patch to make Breakpad upload the log if it's impossible to create a file in the crashed …

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by glider
Modified:
12 years, 4 months ago
Reviewers:
Mark Mentovai, jeremy
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src/
Visibility:
Public.

Description

A hackish patch to make Breakpad upload the log if it's impossible to create a
file in the crashed process
(e.g. in a sandboxed Chromium renderer)
Instead we pass the log string (mapped by the Breakpad user) as an out-of-line
Mach message to the crash inspector, which creates the temporary file
and adds it to the config dictionary.

My current concerns are:
 -- Is it the right way to deal with sandboxed processes (assuming we'll be
using the current Breakpad for some time)?
 -- Should it be possible to pass several log messages OOL (ASan will never need
to)?
 -- Should we have a common ancestor for MachMsgPortDescriptor and
MachMsgOOLDescriptor (probably yes)?
 -- How "random" should the temporary filenames be? I suppose there shouldn't be
any security problem if the file is called "asan-log%timestamp%"?

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 20

Patch Set 12 : #

Patch Set 13 : #

Total comments: 18

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M client/apple/Framework/BreakpadDefines.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M client/mac/Framework/Breakpad.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +7 lines, -0 lines 1 comment Download
M client/mac/Framework/Breakpad.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +42 lines, -1 line 5 comments Download
M client/mac/crash_generation/Inspector.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -3 lines 0 comments Download
M client/mac/crash_generation/Inspector.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +51 lines, -15 lines 1 comment Download
M common/mac/MachIPC.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +31 lines, -0 lines 2 comments Download
M common/mac/MachIPC.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +30 lines, -0 lines 4 comments Download

Messages

Total messages: 10
glider
Mark, can you appraise the idea? Please disregard the hardcoded text constants and the bitwise ...
12 years, 7 months ago #1
Mark Mentovai
To Jeremy for front-line review. He’s done work with both Breakpad and Mach message passing. ...
12 years, 7 months ago #2
jeremy
Initial review comments, I need to look over MachIPC more closely, I'll do that on ...
12 years, 7 months ago #3
glider
Please take another look. So for the slow response time, there was a bunch of ...
12 years, 7 months ago #4
jeremy
I asked last time but didn't see your answer: This code is tested and working ...
12 years, 6 months ago #5
glider
On 2012/05/16 08:13:06, jeremy wrote: > I asked last time but didn't see your answer: ...
12 years, 6 months ago #6
glider
https://breakpad.appspot.com/386001/diff/22007/client/mac/Framework/Breakpad.h File client/mac/Framework/Breakpad.h (right): https://breakpad.appspot.com/386001/diff/22007/client/mac/Framework/Breakpad.h#newcode277 client/mac/Framework/Breakpad.h:277: // cannot create files. On 2012/05/16 08:13:07, jeremy wrote: ...
12 years, 6 months ago #7
jeremy
https://breakpad.appspot.com/386001/diff/35007/client/mac/Framework/Breakpad.h File client/mac/Framework/Breakpad.h (right): https://breakpad.appspot.com/386001/diff/35007/client/mac/Framework/Breakpad.h#newcode277 client/mac/Framework/Breakpad.h:277: // the client process cannot create files. * Could ...
12 years, 6 months ago #8
jeremy
glider: are you still working on this?
12 years, 4 months ago #9
glider
12 years, 4 months ago #10
On 2012/07/23 09:59:49, jeremy wrote:
> glider: are you still working on this?

This is still on my plate, but I had to temporarily switch to the Linux crash
uploading for now.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted