http://bugs.winehq.org/show_bug.cgi?id=28712
--- Comment #2 from Dan Kegel dank@kegel.com 2011-10-14 08:30:22 CDT --- Looks like it's because the Sleep(2000) is insufficient when running under valgrind. If I comment out the part before the sleep, the error goes away. If I comment out the part after the sleep, the error goes away. If I change it to Sleep(20000), the error goes away.
Is there a more reliable way to wait for the entry to be evicted from the cache?
This isn't quite a valgrind-only issue; the same race condition could happen on a system that is slow or busy for other reasons.