chanyancheung / data-race-test

Automatically exported from code.google.com/p/data-race-test
0 stars 1 forks source link

"accessing an invalid lock" warnings below unnamedImageEntryPoint on Windows #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Example:
==3760== WARNING: accessing an invalid lock 007D19EC in thread T0
==3760==     #1  unnamedImageEntryPoint C:\Windows\syswow64\RPCRT4.dll
==3760==     #2  NdrUserMarshalMemorySize C:\Windows\syswow64\RPCRT4.dll
==3760==     #3  I_RpcTransConnectionAllocatePacket 
C:\Windows\syswow64\RPCRT4.dll
==3760==     #4  I_RpcTransConnectionAllocatePacket 
C:\Windows\syswow64\RPCRT4.dll
==3760==     #5  RpcBindingFree C:\Windows\syswow64\RPCRT4.dll
==3760==     #6  RegOpenKeyExA C:\Windows\syswow64\ADVAPI32.dll
==3760==     #7  RpcStringBindingComposeW C:\Windows\syswow64\RPCRT4.dll
==3760==     #8  RpcStringBindingComposeW C:\Windows\syswow64\RPCRT4.dll
==3760==     #9  RpcStringBindingComposeW C:\Windows\syswow64\RPCRT4.dll
==3760==     #10 NdrProxyErrorHandler C:\Windows\syswow64\RPCRT4.dll
==3760==     #11 NdrClientCall2 C:\Windows\syswow64\RPCRT4.dll
==3760== WARNING: accessing an invalid lock 007D29BC in thread T0

Probably this is a false report or this is due to missing symbols.

Original issue reported on code.google.com by timurrrr on 24 Aug 2010 at 1:28

GoogleCodeExporter commented 9 years ago
Probably related report:
==3156== WARNING: accessing an invalid lock 1EB64928 in thread T0
==3156==     #1  CoFreeAllLibraries C:\Windows\syswow64\ole32.dll
==3156==     #2  CoFreeAllLibraries C:\Windows\syswow64\ole32.dll
==3156==     #3  CoFreeAllLibraries C:\Windows\syswow64\ole32.dll
==3156==     #4  CoFreeAllLibraries C:\Windows\syswow64\ole32.dll
==3156==     #5  CoRegisterSurrogateEx C:\Windows\syswow64\ole32.dll
==3156==     #6  WdtpInterfacePointer_UserUnmarshal 
C:\Windows\syswow64\ole32.dll
==3156==     #7  CoRegisterSurrogateEx C:\Windows\syswow64\ole32.dll
==3156==     #8  CoReleaseServerProcess C:\Windows\syswow64\ole32.dll
==3156==     #9  CoReleaseServerProcess C:\Windows\syswow64\ole32.dll
==3156==     #10 CoReleaseServerProcess C:\Windows\syswow64\ole32.dll
==3156==     #11 CoReleaseServerProcess C:\Windows\syswow64\ole32.dll
==3156== WARNING: accessing an invalid lock 1EBC2DE8 in thread T0

Original comment by timurrrr on 24 Aug 2010 at 1:31

GoogleCodeExporter commented 9 years ago
Also such reports happen under exit/doexit
==3156== WARNING: accessing an invalid lock 010D0C60 in thread T0
==3156==     #1  LockImpl::~LockImpl base/lock_impl_win.cc:15
==3156==     #2  doexit f:/dd/vctools/crt_bld/self_x86/crt/src/crt0dat.c:552
==3156==     #3  exit f:/dd/vctools/crt_bld/self_x86/crt/src/crt0dat.c:398
==3156==     #4  __tmainCRTStartup 
f:/dd/vctools/crt_bld/self_x86/crt/src/crt0.c:331
==3156==     #5  mainCRTStartup 
f:/dd/vctools/crt_bld/self_x86/crt/src/crt0.c:195
==3156==     #6  BaseThreadInitThunk C:\Windows\syswow64\kernel32.dll

Original comment by timurrrr on 24 Aug 2010 at 1:34

GoogleCodeExporter commented 9 years ago
The latter may probably be a real report, needs investigation.

Original comment by timurrrr on 24 Aug 2010 at 1:37