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

Issue 1524002: [Android]: Fix hang in CreateChildCrash() on Android. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years ago by rmcilroy
Modified:
10 years ago
CC:
Ben Chan, Mark Mentovai, primiano
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/src
Visibility:
Public.

Description

[Android]: Fix hang in CreateChildCrash() on Android.

After r1299, the LinuxCoreDumperTest::VerifyDumpWithMultipleThreads and
ElfCoreDumpTest::ValidCoreFile would both hang on Android.  This appears to be
due to the tkill
signal not being recieved by the thread which is meant to crash, even though
tkill returns 0.
This CL retries sending the tkill signal multiple times, which prevents the
Hang.

BUG=579
R=thestig@chromium.org

Committed: 1313

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M common/linux/tests/crash_generator.cc View 1 chunk +18 lines, -13 lines 2 comments Download

Messages

Total messages: 7
rmcilroy
thestig: Could you please review this CL. The CL - https://breakpad.appspot.com/1304005 causes the breakpad_unittests to ...
10 years ago #1
Lei Zhang (chromium)
lgtm, though we should not have to do this. Can you file a bug and ...
10 years ago #2
rmcilroy
Thanks Lei: Filed https://code.google.com/p/google-breakpad/issues/detail?id=579 for this. https://breakpad.appspot.com/1524002/diff/1/common/linux/tests/crash_generator.cc File common/linux/tests/crash_generator.cc (right): https://breakpad.appspot.com/1524002/diff/1/common/linux/tests/crash_generator.cc#newcode205 common/linux/tests/crash_generator.cc:205: for(int i = ...
10 years ago #3
rmcilroy
Committed patchset #1 manually as r1313 (presubmit successful).
10 years ago #4
vapier
my guess is the android threading implementation is limited. iirc, it's all in userspace. sending ...
10 years ago #5
rmcilroy
On 2014/04/15 13:33:40, vapier wrote: > my guess is the android threading implementation is limited. ...
10 years ago #6
vapier
10 years ago #7
Message was sent while issue was closed.
then at least bracket the logic with an android ifdef.  we shouldn't send out
tkill more than once on a sane system.
Sign in to reply to this message.

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