Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1718)

Issue 2961008: Linux: Guess the thread id for crashing renderers in a different PID namespac... (Closed)

Created:
10 years, 5 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
agl
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Linux: Guess the thread id for crashing renderers in a different PID namespace. BUG=48997 TEST=Google Chrome gets valid crash reports for about:crash most of the time. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52723

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix typo #

Patch Set 3 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -8 lines) Patch
M base/linux_util.h View 1 chunk +6 lines, -0 lines 0 comments Download
M base/linux_util.cc View 2 chunks +47 lines, -0 lines 1 comment Download
M chrome/app/breakpad_linux.cc View 3 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/crash_handler_host_linux.cc View 1 2 5 chunks +49 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lei Zhang
I can't think of a way to get translate the TID between the renderer's pid ...
10 years, 5 months ago (2010-07-14 16:52:48 UTC) #1
agl
It's been too long. Remind me again why we need the crashing TID? And I'm ...
10 years, 5 months ago (2010-07-15 17:31:14 UTC) #2
Lei Zhang
On 2010/07/15 17:31:14, agl wrote: > It's been too long. Remind me again why we ...
10 years, 5 months ago (2010-07-15 22:16:56 UTC) #3
Lei Zhang
Please see patch set 3. I'm reading /proc/[pid]/task/*/syscall. Not sure if this is better or ...
10 years, 5 months ago (2010-07-16 03:17:34 UTC) #4
agl
10 years, 5 months ago (2010-07-16 12:43:25 UTC) #5
LGTM

http://codereview.chromium.org/2961008/diff/8001/4002
File base/linux_util.cc (right):

http://codereview.chromium.org/2961008/diff/8001/4002#newcode283
base/linux_util.cc:283: if (0 == strncmp(expected_data.c_str(),
syscall_data.get(),
Based on the description of the function, I expected this to be a memcmp.
However, syscall is a textual function so it doesn't really matter.

Powered by Google App Engine
This is Rietveld 408576698