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

Issue 377002: Fix race in VerifyStackReadWithMultipleThreads (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by chrisdearman
Modified:
12 years, 6 months ago
Reviewers:
Ted Mielczarek
CC:
google-breakpad-dev_googlegroups.com
Visibility:
Public.

Description

Fix race in VerifyStackReadWithMultipleThreads

VerifyStackReadWithMultipleThreads would fail periodically
because one of the child threads was not in the expected state.
Now each thread sends an indication that is is running immediately
before entering the busy loop. There is still a possibility that
the parent process can stop a child thread before it i ready.
Having the parent sleep for 100ms seems to be sufficient to
avoid the race.

Signed-off-by: Chris Dearman <chris@mips.com>

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix race in VerifyStackReadWithMultipleThreads #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc View 1 2 chunks +9 lines, -8 lines 0 comments Download
M src/client/linux/minidump_writer/linux_ptrace_dumper_unittest.cc View 1 1 chunk +20 lines, -12 lines 0 comments Download

Messages

Total messages: 6
chrisdearman
This patch is dependent on http://breakpad.appspot.com/377001/
12 years, 7 months ago #1
Ted Mielczarek
http://breakpad.appspot.com/377002/diff/1/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc File src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc (right): http://breakpad.appspot.com/377002/diff/1/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc#newcode54 src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc:54: int pipefd = *(int *)data; Google C++ style frowns ...
12 years, 7 months ago #2
chrisdearman
http://breakpad.appspot.com/377002/diff/1/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc File src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc (right): http://breakpad.appspot.com/377002/diff/1/src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc#newcode54 src/client/linux/minidump_writer/linux_dumper_unittest_helper.cc:54: int pipefd = *(int *)data; On 2012/04/11 20:23:15, Ted ...
12 years, 7 months ago #3
Ted Mielczarek
On 2012/04/11 22:40:54, chrisdearman wrote: > I wasn't very happy about this approach in the ...
12 years, 7 months ago #4
chrisdearman
On 2012/04/12 11:36:41, Ted Mielczarek wrote: > If you could cut it down to 250 ...
12 years, 7 months ago #5
Ted Mielczarek
12 years, 7 months ago #6
lgtm
Sign in to reply to this message.

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