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

Issue 2169063002: Add retry logic for FindThreadIDWithSyscall() (Closed)

Created:
4 years, 5 months ago by wzhong
Modified:
4 years, 5 months ago
Reviewers:
Lei Zhang, bcf, brucedawson
CC:
chromium-reviews, darin-cc_chromium.org, jam, sadrul, kalyank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add retry logic for FindThreadIDWithSyscall() Crashing thread might be in "running" state, i.e. after sys_sendmsg() and before sys_read(). Wait for a short period in browser process, allow the crashing thread to catch up and retry. BUG=internal b/30003601 TEST=Manually crash the main thread in utility process and make sure thread ID is translated. Committed: https://crrev.com/d713d28a57220f3410cc1c9c7c5b6c8bb523b3fa Cr-Commit-Position: refs/heads/master@{#407662}

Patch Set 1 #

Patch Set 2 : Add retry logic for FindThreadIDWithSyscall() #

Total comments: 7

Patch Set 3 : Updated to PostDelayedTask(). #

Total comments: 2

Patch Set 4 : Minor change. #

Patch Set 5 : Fixed ASAN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -5 lines) Patch
M components/crash/content/browser/crash_handler_host_linux.h View 1 2 3 4 2 chunks +14 lines, -0 lines 0 comments Download
M components/crash/content/browser/crash_handler_host_linux.cc View 1 2 3 4 4 chunks +61 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (8 generated)
wzhong
I've noticed that the breakpad crash code was componentized not too long ago to this ...
4 years, 5 months ago (2016-07-22 00:25:28 UTC) #3
Lei Zhang
On 2016/07/22 00:25:28, wzhong wrote: > I've noticed that the breakpad crash code was componentized ...
4 years, 5 months ago (2016-07-22 00:50:19 UTC) #4
chromium-reviews
OK. Thanks. On Jul 21, 2016 5:50 PM, <thestig@chromium.org> wrote: > On 2016/07/22 00:25:28, wzhong ...
4 years, 5 months ago (2016-07-22 02:53:02 UTC) #5
Lei Zhang
https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc File components/crash/content/browser/crash_handler_host_linux.cc (right): https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc#newcode295 components/crash/content/browser/crash_handler_host_linux.cc:295: &syscall_supported); If |syscall_supported| comes back false, this should not ...
4 years, 5 months ago (2016-07-22 23:37:36 UTC) #6
wzhong
https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc File components/crash/content/browser/crash_handler_host_linux.cc (right): https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc#newcode295 components/crash/content/browser/crash_handler_host_linux.cc:295: &syscall_supported); On 2016/07/22 23:37:36, Lei Zhang wrote: > If ...
4 years, 5 months ago (2016-07-23 00:25:11 UTC) #7
wzhong
https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc File components/crash/content/browser/crash_handler_host_linux.cc (right): https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc#newcode299 components/crash/content/browser/crash_handler_host_linux.cc:299: base::PlatformThread::Sleep( On 2016/07/23 00:25:11, wzhong wrote: > On 2016/07/22 ...
4 years, 5 months ago (2016-07-23 00:30:11 UTC) #8
wzhong
https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc File components/crash/content/browser/crash_handler_host_linux.cc (right): https://codereview.chromium.org/2169063002/diff/20001/components/crash/content/browser/crash_handler_host_linux.cc#newcode295 components/crash/content/browser/crash_handler_host_linux.cc:295: &syscall_supported); On 2016/07/23 00:25:11, wzhong wrote: > On 2016/07/22 ...
4 years, 5 months ago (2016-07-25 15:12:43 UTC) #9
Lei Zhang
lgtm https://codereview.chromium.org/2169063002/diff/40001/components/crash/content/browser/crash_handler_host_linux.cc File components/crash/content/browser/crash_handler_host_linux.cc (right): https://codereview.chromium.org/2169063002/diff/40001/components/crash/content/browser/crash_handler_host_linux.cc#newcode312 components/crash/content/browser/crash_handler_host_linux.cc:312: crashing_tid = base::FindThreadIDWithSyscall(crashing_pid, Combine with previous line?
4 years, 5 months ago (2016-07-25 18:46:58 UTC) #10
wzhong
https://codereview.chromium.org/2169063002/diff/40001/components/crash/content/browser/crash_handler_host_linux.cc File components/crash/content/browser/crash_handler_host_linux.cc (right): https://codereview.chromium.org/2169063002/diff/40001/components/crash/content/browser/crash_handler_host_linux.cc#newcode312 components/crash/content/browser/crash_handler_host_linux.cc:312: crashing_tid = base::FindThreadIDWithSyscall(crashing_pid, On 2016/07/25 18:46:57, Lei Zhang wrote: ...
4 years, 5 months ago (2016-07-25 19:27:46 UTC) #11
Lei Zhang
++lgtm, if you are waiting for that.
4 years, 5 months ago (2016-07-25 20:26:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2169063002/60001
4 years, 5 months ago (2016-07-25 20:35:44 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/198509)
4 years, 5 months ago (2016-07-25 21:05:10 UTC) #16
Lei Zhang
Looks like you need to handle the ASAN cases as well. See the #if defined(ADDRESS_SANITIZER) ...
4 years, 5 months ago (2016-07-25 21:11:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2169063002/80001
4 years, 5 months ago (2016-07-26 00:06:02 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-26 00:55:58 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-07-26 00:58:05 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d713d28a57220f3410cc1c9c7c5b6c8bb523b3fa
Cr-Commit-Position: refs/heads/master@{#407662}

Powered by Google App Engine
This is Rietveld 408576698