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

Issue 408002: Add the capability to include an arbitrary data stream within minidumps (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 4 months ago by Cris Neckar
Modified:
12 years, 4 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Add the capability to include an arbitrary data stream within minidumps
This is supplied via a custom field "custom-data-stream"
Committed: https://code.google.com/p/google-breakpad/source/detail?r=984

Patch Set 1 #

Total comments: 15

Patch Set 2 : #

Total comments: 5

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/windows/common/ipc_protocol.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/client/windows/crash_generation/client_info.cc View 1 2 3 4 chunks +45 lines, -0 lines 3 comments Download
M src/client/windows/crash_generation/client_info.h View 3 chunks +8 lines, -0 lines 0 comments Download
M src/client/windows/crash_generation/crash_generation_server.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M src/client/windows/crash_generation/minidump_generator.cc View 1 4 chunks +17 lines, -4 lines 0 comments Download
M src/client/windows/crash_generation/minidump_generator.h View 3 chunks +3 lines, -0 lines 0 comments Download
M src/client/windows/unittests/minidump_test.cc View 1 8 chunks +23 lines, -6 lines 0 comments Download
M src/google_breakpad/common/minidump_format.h View 2 chunks +5 lines, -1 line 1 comment Download

Messages

Total messages: 21
Cris Neckar
12 years, 4 months ago #1
Cris Neckar
12 years, 4 months ago #2
Cris Neckar
nealsid, I want to provide a little bit of context on this. Carlos and I ...
12 years, 4 months ago #3
Cris Neckar
Changing reviewers. Mark, would you mind taking a look at this?
12 years, 4 months ago #4
Mark Mentovai
http://breakpad.appspot.com/408002/diff/1/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/1/src/client/windows/crash_generation/client_info.cc#newcode217 src/client/windows/crash_generation/client_info.cc:217: const_cast<wchar_t*>(&custom_client_info_.entries[i].value[0]); What’s the const_cast about? Can’t address_str just be ...
12 years, 4 months ago #5
cpu1
http://breakpad.appspot.com/408002/diff/1/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/1/src/client/windows/crash_generation/client_info.cc#newcode224 src/client/windows/crash_generation/client_info.cc:224: LPVOID address = reinterpret_cast<LPVOID>(wcstol(address_str, NULL, 16)); is LPVOID a ...
12 years, 4 months ago #6
cpu1
http://breakpad.appspot.com/408002/diff/1/src/client/windows/unittests/minidump_test.cc File src/client/windows/unittests/minidump_test.cc (right): http://breakpad.appspot.com/408002/diff/1/src/client/windows/unittests/minidump_test.cc#newcode333 src/client/windows/unittests/minidump_test.cc:333: } // namespace hmmm. It should be relatively straightforward ...
12 years, 4 months ago #7
Cris Neckar
http://breakpad.appspot.com/408002/diff/1/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/1/src/client/windows/crash_generation/client_info.cc#newcode217 src/client/windows/crash_generation/client_info.cc:217: const_cast<wchar_t*>(&custom_client_info_.entries[i].value[0]); On 2012/07/09 20:33:46, Mark Mentovai wrote: > What’s ...
12 years, 4 months ago #8
Mark Mentovai
http://breakpad.appspot.com/408002/diff/7002/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/7002/src/client/windows/crash_generation/client_info.cc#newcode219 src/client/windows/crash_generation/client_info.cc:219: wchar_t* address_str = value; What’s the point of address_str ...
12 years, 4 months ago #9
Cris Neckar
http://breakpad.appspot.com/408002/diff/7002/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/7002/src/client/windows/crash_generation/client_info.cc#newcode219 src/client/windows/crash_generation/client_info.cc:219: wchar_t* address_str = value; On 2012/07/09 22:33:01, Mark Mentovai ...
12 years, 4 months ago #10
cpu1
Breakpad works in 64 bits. Notice GoogleCrashHandler64.exe eating cpu in your windows machine as we ...
12 years, 4 months ago #11
Cris Neckar
On 2012/07/09 23:46:32, cpu1 wrote: > Breakpad works in 64 bits. Notice GoogleCrashHandler64.exe eating cpu ...
12 years, 4 months ago #12
ted_mielczarek.org
On Mon, Jul 9, 2012 at 6:33 PM, <mark@chromium.org> wrote: > (This doesn’t need to ...
12 years, 4 months ago #13
Mark Mentovai
http://breakpad.appspot.com/408002/diff/13004/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/13004/src/client/windows/crash_generation/client_info.cc#newcode225 src/client/windows/crash_generation/client_info.cc:225: void* address = reinterpret_cast<void*>(wcstol(address_str, NULL, 16)); If you want ...
12 years, 4 months ago #14
Cris Neckar
http://breakpad.appspot.com/408002/diff/13004/src/client/windows/crash_generation/client_info.cc File src/client/windows/crash_generation/client_info.cc (right): http://breakpad.appspot.com/408002/diff/13004/src/client/windows/crash_generation/client_info.cc#newcode225 src/client/windows/crash_generation/client_info.cc:225: void* address = reinterpret_cast<void*>(wcstol(address_str, NULL, 16)); On 2012/07/10 13:01:56, ...
12 years, 4 months ago #15
Mark Mentovai
LGTM
12 years, 4 months ago #16
Ted Mielczarek
http://breakpad.appspot.com/408002/diff/1010/src/google_breakpad/common/minidump_format.h File src/google_breakpad/common/minidump_format.h (right): http://breakpad.appspot.com/408002/diff/1010/src/google_breakpad/common/minidump_format.h#newcode335 src/google_breakpad/common/minidump_format.h:335: MD_CUSTOM_DATA_STREAM = 0x47670003 /* MDRawCustomDataStream */ FYI, this overlaps ...
12 years, 4 months ago #17
Cris Neckar
On 2012/07/13 00:55:51, Ted Mielczarek wrote: > http://breakpad.appspot.com/408002/diff/1010/src/google_breakpad/common/minidump_format.h > File src/google_breakpad/common/minidump_format.h (right): > > http://breakpad.appspot.com/408002/diff/1010/src/google_breakpad/common/minidump_format.h#newcode335 ...
12 years, 4 months ago #18
Mark Mentovai
I’m trying to figure out why we’re having trouble rolling Breakpad DEPS to r995 or ...
12 years, 4 months ago #19
Mark Mentovai
This change had to be backed out at r999. It caused Chrome test failures on ...
12 years, 4 months ago #20
Michael Krebs
12 years, 4 months ago #21
Just a drive-by review based on Mark's comment about new[]/delete...

https://breakpad.appspot.com/408002/diff/1010/src/client/windows/crash_genera...
File src/client/windows/crash_generation/client_info.cc (right):

https://breakpad.appspot.com/408002/diff/1010/src/client/windows/crash_genera...
src/client/windows/crash_generation/client_info.cc:93: delete
custom_data_stream_;
On 2012/07/24 21:25:03, Mark Mentovai wrote:
> This was allocated with new[]. Shouldn’t you have used delete[]? Line 236 as
> well.

Also, this is delete'ing it as a CustomDataStream, but it was allocated as an
array of u_int8_t's.  Since CustomDataStream is POD, that might not be causing
damage (i.e. no destructor) but it's definitely not good to do.

https://breakpad.appspot.com/408002/diff/1010/src/client/windows/crash_genera...
src/client/windows/crash_generation/client_info.cc:231: new
u_int8_t[sizeof(CustomDataStream) + size - 1]);
Technically, I would add a placement new here (e.g. "new (custom_data_stream)
CustomDataStream;"), but if there's zero chance CustomDataStream will become
non-POD some day then that might be considered overkill.
Sign in to reply to this message.

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