Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Deadlock when starting up a WinForm application (advapi32!SddlSidLookupCritical and ntdll!LdrpLoaderLock)

$
0
0

Hi,

When we start our system we boot several managed WinForm applications. When we updated to .NET 4.0 we started noticing that more often than not - one random application would not start. You could see it in the task manager but no UI were visible. 

Running Debug Diagnostics Tool for a dump we got the following information.

Detected a serious critical section related problem in process.dmp
Lock at advapi32!SddlSidLookupCritical owned by thread 2 is Deadlocked with lock at ntdll!LdrpLoaderLock owned by thread 0

So there seems to be a deadlock, but we cannot really see where. Any suggestions on how we can move forward with debugging this issue?

Thread data below.

Thread 0 - System ID 944

This thread is not fully resolved and may or may not be a problem. Further analysis of these threads may be required.

.NET Call Stack
Function
[[DebuggerClassInitMarkFrame]]

Full Call Stack
Function
ntdll!KiFastSystemCallRet
ntdll!ZwWaitForSingleObject+c
ntdll!RtlpWaitForCriticalSection+132
ntdll!RtlEnterCriticalSection+46
advapi32!InitializeSidLookupTable+86
advapi32!LocalConvertStringSDToSD_Rev1+78
advapi32!ConvertStringSecurityDescriptorToSecurityDescriptorW+31
advapi32!ConvertStringSecurityDescriptorToSecurityDescriptorA+4c
msctf!CreateProperSecurityDescriptor+a6
msctf!CCicSecAttr::operator _SECURITY_ATTRIBUTES *+38
msctf!CCiceroSharedMem::Start+6c
msctf!ProcessAttach+17b
msctf!DllMain+39
msctf!_DllMainCRTStartup+52
ntdll!LdrpCallInitRoutine+14
ntdll!LdrpRunInitializeRoutines+344
ntdll!LdrpLoadDll+3e5
ntdll!LdrLoadDll+230
kernel32!LoadLibraryExW+18e
user32!GetGUIThreadInfo+12d
ntdll!KiUserCallbackDispatcher+13
user32!GetScrollInfo+3a7
user32!GetScrollInfo+460
user32!CreateWindowExW+33
ole32!InitMainThreadWnd+3c
ole32!CoInitializeEx+112
clr!Thread::SetApartment+16d
clr!SystemDomain::SetThreadAptState+90
clr!SystemDomain::ExecuteMainMethod+181
[[DebuggerClassInitMarkFrame]]
clr!ExecuteEXE+58
clr!_CorExeMainInternal+19f
clr!_CorExeMain+4e
mscoreei!_CorExeMain+38
mscoree!ShellShim__CorExeMain+99

mscoree!_CorExeMain_Exported+8

Thread 2 - System ID 7104

This thread is waiting on critical section ntdll!LdrpLoaderLock owned by thread 0.
Thread 0 in turn is deadlocked with another thread.


.NET Call Stack
Function

Full Call Stack
Function
ntdll!KiFastSystemCallRet
ntdll!ZwWaitForSingleObject+c
ntdll!RtlpWaitForCriticalSection+132
ntdll!RtlEnterCriticalSection+46
ntdll!LdrLockLoaderLock+ea
ntdll!LdrLoadDll+d6
kernel32!LoadLibraryExW+18e
kernel32!LoadLibraryW+11
rpcrt4!PerformRpcInitialization+e6
rpcrt4!RpcStringBindingComposeW+14
advapi32!RpcpBindRpc+19f
advapi32!PLSAPR_SERVER_NAME_bind+18
rpcrt4!GenericHandleMgr+a0
rpcrt4!ExplicitBindHandleMgr+44
rpcrt4!NdrClientCall2+d3
advapi32!LsarOpenPolicy2+1b
advapi32!LsaOpenPolicy+95
advapi32!InitializeSidLookupTable+ea
advapi32!LocalConvertStringSDToSD_Rev1+78
advapi32!ConvertStringSecurityDescriptorToSecurityDescriptorW+31
clr!ProfilingAPIAttachDetach::GetSecurityDescriptor+1c1
clr!ProfilingAPIAttachDetach::InitSecurityAttributes+13
clr!ProfilingAPIAttachDetach::InitializeForOnDemandMode+6a
clr!ProfilingAPIAttachDetach::GetAttachEvent+1c
clr!Thread::intermediateThreadProc+4b
kernel32!BaseThreadStart+37


Viewing all articles
Browse latest Browse all 1710

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>