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

Issue 2664002: Make the Linux CrashGenerationClient an interface. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by rsesek
Modified:
9 years, 11 months ago
Reviewers:
Mark Mentovai, mdempsky
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Make the Linux CrashGenerationClient an interface.

Also allow it to be set on the ExceptionHandler. This will allow Chromium's
implementation to be properly treated as an out-of-process handler.

BUG=https://code.google.com/p/chromium/issues/detail?id=349600
R=mark@chromium.org

Committed: https://code.google.com/p/google-breakpad/source/detail?r=1324

Patch Set 1 #

Total comments: 20

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/crash_generation/crash_generation_client.cc View 1 2 1 chunk +52 lines, -41 lines 1 comment Download
M src/client/linux/crash_generation/crash_generation_client.h View 1 chunk +18 lines, -22 lines 0 comments Download
M src/client/linux/handler/exception_handler.h View 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 8
rsesek
9 years, 11 months ago #1
Mark Mentovai
LG otherwise https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc#newcode49 src/client/linux/crash_generation/crash_generation_client.cc:49: CrashGenerationClientImpl(int server_fd) : server_fd_(server_fd) {} explicit https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc#newcode57 ...
9 years, 11 months ago #2
rsesek
https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc#newcode49 src/client/linux/crash_generation/crash_generation_client.cc:49: CrashGenerationClientImpl(int server_fd) : server_fd_(server_fd) {} On 2014/05/05 19:28:41, Mark ...
9 years, 11 months ago #3
Mark Mentovai
You might want to test socketpair’s return value and return false there too if it ...
9 years, 11 months ago #4
rsesek
Good call on socketpair(), too. https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc File src/client/linux/crash_generation/crash_generation_client.cc (right): https://breakpad.appspot.com/2664002/diff/1/src/client/linux/crash_generation/crash_generation_client.cc#newcode84 src/client/linux/crash_generation/crash_generation_client.cc:84: IGNORE_RET(HANDLE_EINTR(sys_read(fds[0], &b, 1))); On ...
9 years, 11 months ago #5
Mark Mentovai
LGTM. Another potential hole avoided.
9 years, 11 months ago #6
rsesek
Committed patchset #3 manually as r1324 (presubmit successful).
9 years, 11 months ago #7
mdempsky
9 years, 11 months ago #8
Message was sent while issue was closed.
https://breakpad.appspot.com/2664002/diff/80002/src/client/linux/crash_genera...
File src/client/linux/crash_generation/crash_generation_client.cc (right):

https://breakpad.appspot.com/2664002/diff/80002/src/client/linux/crash_genera...
src/client/linux/crash_generation/crash_generation_client.cc:78: return false;
This predates your CL, but this return path leaks fds[0].
Sign in to reply to this message.

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