Open GoogleCodeExporter opened 9 years ago
pin.exe -t ...\x86-windows-debug-ts_pin.dll -short_name --pure-happens-before=yes --ignore-in-dtor=no --announce-threads --debug_phase=thread -- src/build/Debug\net_unittests --gtest_filter="*DiskCache*" --> T1: THR_START parent: T0 : [0:75631;] [0:75630; 1:1;] T1 Thread finished T2: THR_START parent: T0 : [0:79879; 1:320;] [0:79878; 1:320; 2:1;] INFO: T0 is program's main thread INFO: T2 has been created by T0 at this point: {{{ #0 operator delete f:\dd\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp:37 #1 std::allocator<wchar_t>::deallocate c:\program files (x86)\microsoft visual studio 9.0\vc\include\xmemory:140 #2 std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >::_Tidy c:\program files (x86)\microsoft visual studio 9.0\vc\include\xstring:2156 #3 std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >::~basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> > c:\program files (x86)\microsoft visual studio 9.0\vc\include\xstring:906 #4 FilePath::~FilePath src\build\Debug\net_unittests.exe #5 `anonymous namespace'::DelayedCacheCleanup src\net\disk_cache\backend_impl.cc:134 #6 disk_cache::BackendImpl::CreateBackend src\net\disk_cache\backend_impl.cc:228 #7 disk_cache::CreateCacheBackend src\net\disk_cache\backend_impl.cc:173 #8 DiskCacheTest_Backend_DeleteOld_Test::TestBody src\net\disk_cache\backend_unittest.cc:1081 }}} WARNING: Possible data race during write of size 8 at 006AEE78: {{{ T2 (locks held: {}): #0 `anonymous namespace'::DeleteFiles src\net\disk_cache\cache_util_win.cc:22 #1 LdrLoadAlternateResourceModuleEx C:\Windows\SysWOW64\ntdll.dll #2 RtlDetermineDosPathNameType_U C:\Windows\SysWOW64\ntdll.dll #3 RtlDosPathNameToRelativeNtPathName_U C:\Windows\SysWOW64\ntdll.dll #4 FindFirstFileExW C:\Windows\syswow64\kernel32.dll #5 FindFirstFileW C:\Windows\syswow64\kernel32.dll #6 `anonymous namespace'::DeleteFiles src\net\disk_cache\cache_util_win.cc:22 #7 disk_cache::DeleteCache src\net\disk_cache\cache_util_win.cc:53 #8 `anonymous namespace'::CleanupTask::Run src\net\disk_cache\backend_impl.cc:93 #9 `anonymous namespace'::WorkItemCallback src\base\worker_pool_win.cc:16 #10 RtlMultiByteToUnicodeSize C:\Windows\SysWOW64\ntdll.dll #11 RtlReleaseSRWLockShared C:\Windows\SysWOW64\ntdll.dll Concurrent write(s) happened at (OR AFTER) these points: T0 (locks held: {}): #0 file_util::CreateDirectoryW src\base\file_util_win.cc:537 #1 disk_cache::BackendImpl::InitBackingStore src\net\disk_cache\backend_impl.cc:1042 #2 disk_cache::BackendImpl::Init src\net\disk_cache\backend_impl.cc:251 #3 disk_cache::BackendImpl::CreateBackend src\net\disk_cache\backend_impl.cc:237 #4 disk_cache::CreateCacheBackend src\net\disk_cache\backend_impl.cc:173 #5 DiskCacheTest_Backend_DeleteOld_Test::TestBody src\net\disk_cache\backend_unittest.cc:1081 }}}
Original issue reported on code.google.com by timurrrr on 26 Feb 2010 at 9:39
timurrrr
Original comment by timurrrr on 26 Feb 2010 at 9:40
Obviously, --gtest_filter="DiskCacheTest.Backend_DeleteOld" is a faster reproducer
Original comment by timurrrr on 26 Feb 2010 at 1:00
Original issue reported on code.google.com by
timurrrr
on 26 Feb 2010 at 9:39