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

Issue 1241333002: Fix ProcessUtilTest.GetTerminationStatusCrash on Android L+ (Closed)

Created:
5 years, 5 months ago by Ian Cullinan
Modified:
5 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, Mark Mentovai, cjhopman, Primiano Tucci (use gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ProcessUtilTest.GetTerminationStatusCrash on Android L+ On Android L+, signal and sigaction symbols are provided by libsigchain that override the system's versions. There is a bug in these functions where they essentially ignore requests to install SIG_DFL. This causes ProcessUtilTest.GetTerminationStatusCrash to fail (as CrashingChildProcess goes into infinite loop instead of crashing). Workaround this issue by explicitly performing a syscall to __NR_rt_sigaction to install SIG_DFL on Android, as breakpad does (see https://breakpad.appspot.com/1804002/). BUG=512255 TEST=ProcessUtilTest.GetTerminationStatusCrash Committed: https://crrev.com/31510fe3e2d3b1f3123f391db52372b2506c46ca Cr-Commit-Position: refs/heads/master@{#339584}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Return comment to its original location #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -1 line) Patch
M base/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M base/process/process_util_unittest.cc View 1 2 chunks +16 lines, -1 line 0 comments Download

Messages

Total messages: 18 (3 generated)
Ian Cullinan
PTAL at this fix for http://crbug.com/512255
5 years, 5 months ago (2015-07-20 23:37:38 UTC) #2
Nico
Looks terrible, please commit :-) (after updating this so that the comment stays next to ...
5 years, 5 months ago (2015-07-20 23:44:07 UTC) #3
Ian Cullinan
On 2015/07/20 23:44:07, Nico wrote: > Looks terrible, please commit :-) (after updating this so ...
5 years, 5 months ago (2015-07-21 00:01:07 UTC) #4
Nico
"lgtm"
5 years, 5 months ago (2015-07-21 00:03:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1241333002/20001
5 years, 5 months ago (2015-07-21 00:05:05 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 5 months ago (2015-07-21 01:00:53 UTC) #8
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/31510fe3e2d3b1f3123f391db52372b2506c46ca Cr-Commit-Position: refs/heads/master@{#339584}
5 years, 5 months ago (2015-07-21 01:01:49 UTC) #9
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1241333002/diff/1/base/process/process_util_unittest.cc File base/process/process_util_unittest.cc (right): https://codereview.chromium.org/1241333002/diff/1/base/process/process_util_unittest.cc#newcode239 base/process/process_util_unittest.cc:239: // To work around this, directly call the system's ...
5 years, 5 months ago (2015-07-21 09:04:11 UTC) #11
michaelbai
On 2015/07/21 09:04:11, Primiano Tucci wrote: > https://codereview.chromium.org/1241333002/diff/1/base/process/process_util_unittest.cc > File base/process/process_util_unittest.cc (right): > > https://codereview.chromium.org/1241333002/diff/1/base/process/process_util_unittest.cc#newcode239 ...
5 years, 5 months ago (2015-07-21 16:30:36 UTC) #12
Nico
On 2015/07/21 16:30:36, michaelbai wrote: > On 2015/07/21 09:04:11, Primiano Tucci wrote: > > > ...
5 years, 5 months ago (2015-07-21 16:34:38 UTC) #13
michaelbai
On 2015/07/21 16:34:38, Nico wrote: > On 2015/07/21 16:30:36, michaelbai wrote: > > On 2015/07/21 ...
5 years, 5 months ago (2015-07-21 16:43:04 UTC) #14
michaelbai
On 2015/07/21 16:43:04, michaelbai wrote: > On 2015/07/21 16:34:38, Nico wrote: > > On 2015/07/21 ...
5 years, 5 months ago (2015-07-21 16:48:52 UTC) #15
Nico
On 2015/07/21 16:48:52, michaelbai wrote: > On 2015/07/21 16:43:04, michaelbai wrote: > > On 2015/07/21 ...
5 years, 5 months ago (2015-07-21 16:50:22 UTC) #16
michaelbai
On 2015/07/21 16:50:22, Nico wrote: > On 2015/07/21 16:48:52, michaelbai wrote: > > On 2015/07/21 ...
5 years, 5 months ago (2015-07-21 16:55:11 UTC) #17
michaelbai
5 years, 5 months ago (2015-07-21 16:57:25 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1247023002/ by michaelbai@chromium.org.

The reason for reverting is: This patch broke the mips builder for Android

../../third_party/lss/linux_syscall_support.h:121:21: fatal error: sgidefs.h: No
such file or directory
 #include <sgidefs.h>.

Powered by Google App Engine
This is Rietveld 408576698