Issue 3599: ConditionVariableTest.MultiThreadConsumerTest
http://code.google.com/p/chromium/issues/detail?id=3599

New issue report by [EMAIL PROTECTED]:
In r3624, I disabled ConditionVariableTest.MultiThreadConsumerTest in
base/condition_variable_unittest.cc because it was way too timing-sensitive
and was causing problems on our Mac debug buildbot now that we've moved it
to a virtual machine.

I found two types of problems here: one is the "spurious timeout" problem
and another is a more classic type of race.

With the spurious timeouts, I found pthread_cond_timedwait was returning
ETIMEDOUT before the timeout time had actually arrived.  This can be fixed
by putting pthread_cond_timedwait into a loop that's allowed to continue
when this case occurs.  (Note that it's unclear whether
pthread_cond_timedwait should be doing this: I've only seen it happen
inside the virtual machine, and the spec, which allows for spurious
wakeups, doesn't discuss spurious timeouts.)

The more serious problem, and what was causing most test failures, is
related to races.  Even in the absence of spurious timeouts, the main
thread was basically asking some other thread to wait for some period of
time; the main thread would then expect that after some larger period of
time that some work was done.  This isn't necessarily a valid assumption,
and we wound up hitting lots of races.


Issue attributes:
        Status: Untriaged
        Owner: ----
        CC: [EMAIL PROTECTED]
        Labels: Type-Bug Pri-2 OS-All Area-Misc

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to