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

Issue 7190019: Always search TIDs for the crashing processes. (Closed)

Created:
9 years, 6 months ago by kmixter1
Modified:
9 years, 6 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Always search TIDs for the crashing processes. Kernels newer than 2.6.32 support TID and PID namespacing where processes' view of their TIDs and PIDs are not globally unique or externally meaningful. We have workarounds to find the TID and PID of the crashing process from outside in the browser process. However, we were only assuming TID namespacing was happening if PID namespacing was enabled and the kernel had a bug that was fixed since 2.6.38. This change causes us to always treat the TID as subject to namespacing. Our trick to find the TID relies on a procfs feature added in 2008. We assume if that feature is not yet present that the TID translation is not necessary. This fixes the bug where all crashes of non-browser processes on Linux 2.6.38+ (Chrome OS r13+) are unusable (result in UnspecifiedStackSignature). BUG=chromium-os:15462 TEST=Do about:crash on 2.6.38 kernel and verify proper tid listed in MDException block Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89795

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -34 lines) Patch
M base/linux_util.h View 1 chunk +4 lines, -2 lines 0 comments Download
M base/linux_util.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/crash_handler_host_linux.cc View 1 2 chunks +36 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
kmixter1
9 years, 6 months ago (2011-06-17 00:30:49 UTC) #1
oshima
I don't think i'm qualified to review this as i'm not familiar with this code, ...
9 years, 6 months ago (2011-06-17 01:50:34 UTC) #2
kmixter1
No worries. I eventually found out why my "brand" wasn't set to Chrome and got ...
9 years, 6 months ago (2011-06-17 17:10:46 UTC) #3
Lei Zhang
I'll take a look today / over the weekend. I just upgraded my CR48 to ...
9 years, 6 months ago (2011-06-17 21:30:24 UTC) #4
Lei Zhang
LGTM, but please update the comments. http://codereview.chromium.org/7190019/diff/1/chrome/browser/crash_handler_host_linux.cc File chrome/browser/crash_handler_host_linux.cc (right): http://codereview.chromium.org/7190019/diff/1/chrome/browser/crash_handler_host_linux.cc#newcode224 chrome/browser/crash_handler_host_linux.cc:224: // Kernel bug ...
9 years, 6 months ago (2011-06-20 21:37:10 UTC) #5
kmixter1
I've updated with Lei's comments, and tested the changes (which were just to comments but ...
9 years, 6 months ago (2011-06-20 23:31:01 UTC) #6
Lei Zhang
The commit bot can do it, but we probably need some OWNERs approvals. I'll click ...
9 years, 6 months ago (2011-06-20 23:37:02 UTC) #7
commit-bot: I haz the power
Presubmit check for 7190019-9001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 6 months ago (2011-06-20 23:37:21 UTC) #8
kmixter1
I still need a reviewer from base OWNERS for the small change in linux_utils.cc. This ...
9 years, 6 months ago (2011-06-20 23:49:17 UTC) #9
Mark Mentovai
LGTM http://codereview.chromium.org/7190019/diff/9001/base/linux_util.cc File base/linux_util.cc (right): http://codereview.chromium.org/7190019/diff/9001/base/linux_util.cc#newcode277 base/linux_util.cc:277: *syscall_supported = false; Can you do this at ...
9 years, 6 months ago (2011-06-21 00:11:24 UTC) #10
kmixter1
Updated with changes per Mark's request. Tested on local device. http://codereview.chromium.org/7190019/diff/9001/base/linux_util.cc File base/linux_util.cc (right): http://codereview.chromium.org/7190019/diff/9001/base/linux_util.cc#newcode277 ...
9 years, 6 months ago (2011-06-21 00:55:33 UTC) #11
Mark Mentovai
My LG was valid with those changes made, but just to be explicit: LGTM
9 years, 6 months ago (2011-06-21 01:54:21 UTC) #12
commit-bot: I haz the power
9 years, 6 months ago (2011-06-21 04:21:09 UTC) #13
Change committed as 89795

Powered by Google App Engine
This is Rietveld 408576698