none
Application error Faulting module name: clr.dll, version: 4.8.4121.0, time stamp: 0x5deace54 RRS feed

  • Question


  • Issue with proprietary software crashing on a few computers.

    I am attempting to narrow down the issue.  Looking at .dmp file shows the following.  

    Server 2016
    Windows 10 Version 1906 build 18362.657

    the assembly instruction at clr!DontCallDirectlyForceStackOverflow+12 in C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to write to memory location 0x01730434 on thread 0


    CLR!proprietary software+12In TAX18.EXE_200305_112133.dmp the assembly instruction at clr!DontCallDirectlyForceStackOverflow+12 in C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to write to memory location 0x01730434 on thread 0


    Any feedback would be appreciated


    Thanks 

    Wednesday, March 18, 2020 5:29 PM

All replies

  • Your info is not enough: give the full callstack. 

    When you are doing COM interop / mixed mode: might be similar to this issue: There is something fishy going on with CLRVectoredExceptionHandler/DontCallDirectlyForceStackOverflow
    Wednesday, March 18, 2020 9:25 PM
  • Entry point   clr!Thread::intermediateThreadProc
    Create time   3/5/2020 2:23:10 PM
    Time spent in user mode   0 Days 00:00:00.000
    Time spent in kernel mode   0 Days 00:00:00.000


    This thread is waiting in a WaitOne
    .NET Call Stack
    mscorlib_ni!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)+22
    mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)+29
    mscorlib_ni!System.Threading.WaitHandle.WaitOne()+12
    System_Management_ni!System.Management.MTAHelper.WorkerThread()+35
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart_Context(System.Object)+a1
    mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+c4
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+17
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+44
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart()+47
    [[HelperMethodFrame_1OBJ] (System.Threading.WaitHandle.WaitOneNative)] System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean)
    [[GCFrame]]

    Full Call Stack
    mscorlib_ni!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)+22
    mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)+29
    mscorlib_ni!System.Threading.WaitHandle.WaitOne()+12
    System_Management_ni!System.Management.MTAHelper.WorkerThread()+35
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart_Context(System.Object)+a1
    mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+c4
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+17
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+44
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart()+47
    [[HelperMethodFrame_1OBJ] (System.Threading.WaitHandle.WaitOneNative)] System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean)
    [[GCFrame]]
    ntdll!_RtlUserThreadStart+1b
    Thursday, March 19, 2020 4:23 PM
  • that can't be the callstack of the exception: clr!DontCallDirectlyForceStackOverflow isn't on the stack.
    Thursday, March 19, 2020 5:43 PM
  • Call Stack
    clr!DontCallDirectlyForceStackOverflow+12
    clr!CLRVectoredExceptionHandler+9b
    clr!CLRVectoredExceptionHandlerShim+d6
    ntdll!RtlpCallVectoredHandlers+d5
    ntdll!RtlDispatchException+6f
    ntdll!KiUserExceptionDispatcher+26
    Recovered stack for thread 0
        Arg 1     Arg 2     Arg 3     Arg 4   Source
    clr!DontCallDirectlyForceStackOverflow+12     a11b7ad     17519b0     3dd4eb0     0000000   
    clr!CLRVectoredExceptionHandler+9b     a11b771     794132c     0000000     21cbf00   
    clr!CLRVectoredExceptionHandlerShim+d6     17519b0     1751ae4     1751a94     0000000   
    ntdll!RtlpCallVectoredHandlers+d5     0000000     1751fd8     21df408     1751a94   
    ntdll!RtlDispatchException+6f     1751a94     1751ae4     1751a94     1751ae4   
    ntdll!KiUserExceptionDispatcher+26     1751a94     1751ae4     1751a94     1751ae4   
    Thursday, March 19, 2020 9:04 PM
  • As you can probably tell kind of new at this and not a programmer. 

    Thread 0 
    Create time   3/5/2020 2:52:22 PM 
    Time spent in user mode   0 Days 00:00:45.421 
    Time spent in kernel mode   0 Days 00:01:03.421 


    This thread is blocked by an unhandled excep
    Call Stack

    clr!DontCallDirectlyForceStackOverflow+12 
    clr!CLRVectoredExceptionHandler+9b 
    clr!CLRVectoredExceptionHandlerShim+d6 
    ntdll!RtlpCallVectoredHandlers+d5 
    ntdll!RtlDispatchException+6f 
    ntdll!KiUserExceptionDispatcher+26 
    Recovered stack for thread 0

        Arg 1

        Arg 2

        Arg 3

        Arg 4

      Source

    clr!DontCallDirectlyForceStackOverflow+12     a11b7ad     17519b0     3dd4eb0     0000000    
    clr!CLRVectoredExceptionHandler+9b     a11b771     794132c     0000000     21cbf00    
    clr!CLRVectoredExceptionHandlerShim+d6     17519b0     1751ae4     1751a94     0000000    
    ntdll!RtlpCallVectoredHandlers+d5     0000000     1751fd8     21df408     1751a94    
    ntdll!RtlDispatchException+6f     1751a94     1751ae4     1751a94     1751ae4    
    ntdll!KiUserExceptionDispatcher+26     1751a94     1751ae4     1751a94     1751ae4    


    Thread 1 - 

    Entry point   clr!DebuggerRCThread::ThreadProcStatic 
    Create time   3/5/2020 2:52:23 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack


    ntdll!NtWaitForMultipleObjects+c 
    KERNELBASE!WaitForMultipleObjectsEx+133 
    clr!DebuggerRCThread::MainLoop+99 
    clr!DebuggerRCThread::ThreadProc+d0 
    clr!DebuggerRCThread::ThreadProcStatic+a3 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 


    Thread 2 - 


    Entry point   clr!Thread::intermediateThreadProc 
    Create time   3/5/2020 2:52:23 PM 
    Time spent in user mode   0 Days 00:00:00.031 
    Time spent in kernel mode   0 Days 00:00:00.000 


    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

    [[DebuggerU2MCatchHandlerFrame]] 

    Full Call Stack

    ntdll!NtWaitForMultipleObjects+c 
    KERNELBASE!WaitForMultipleObjectsEx+133 
    clr!FinalizerThread::WaitForFinalizerEvent+86 
    clr!FinalizerThread::FinalizerThreadWorker+40 
    clr!ManagedThreadBase_DispatchInner+71 
    clr!ManagedThreadBase_DispatchMiddle+7e 
    clr!ManagedThreadBase_DispatchOuter+99 
    [[DebuggerU2MCatchHandlerFrame]] 
    clr!Thread::GetStaticFieldAddress 
    clr!FinalizerThread::FinalizerThreadStart+e2 
    clr!Thread::intermediateThreadProc+58 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Thread 3 - 


    Entry point   winspool!MonitorRPCServerProcess 
    Create time   3/5/2020 2:52:24 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack

    ntdll!NtWaitForSingleObject+c 
    KERNELBASE!WaitForSingleObjectEx+99 
    KERNELBASE!WaitForSingleObject+12 
    winspool!MonitorRPCServerProcess+1a 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Thread 4 - 

    Entry point   c4dll+8cd20 
    Create time   3/5/2020 2:52:39 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

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

    Call Stack

    ntdll!NtWaitForSingleObject+c 
    KERNELBASE!WaitForSingleObjectEx+99 
    KERNELBASE!WaitForSingleObject+12 
    c4dll+49508 
    c4dll+8cd8c 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Thread 5 - 

    Entry point   c4dll+8cd20 
    Create time   3/5/2020 2:52:39 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

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

    Call Stack

    ntdll!NtWaitForSingleObject+c 
    KERNELBASE!WaitForSingleObjectEx+99 
    KERNELBASE!WaitForSingleObject+12 
    c4dll+40218 
    c4dll+8cd8c 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 


    Thread 6 - 
    Entry point   rasman!RasmanServiceMonitorThread 
    Create time   3/5/2020 2:52:40 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack

    ntdll!NtWaitForSingleObject+c 
    KERNELBASE!WaitForSingleObjectEx+99 
    rasman!RasmanServiceMonitorThread+f1 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Thread 7 - 

    Entry point   clr!ThreadpoolMgr::TimerThreadStart 
    Create time   3/5/2020 2:52:40 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack

    ntdll!NtDelayExecution+c 
    KERNELBASE!SleepEx+5f 
    clr!ThreadpoolMgr::TimerThreadFire+3d 
    clr!ThreadpoolMgr::TimerThreadStart+6b 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 


    Thread 9 - 

    Entry point   clr!Thread::intermediateThreadProc 
    Create time   3/5/2020 2:52:55 PM 
    Time spent in user mode   0 Days 00:00:00.031 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack

    ntdll!NtWaitForSingleObject+c 
    KERNELBASE!WaitForSingleObjectEx+99 
    clr!CLRSemaphore::Wait+be 
    clr!ThreadpoolMgr::UnfairSemaphore::Wait+13a 
    clr!ThreadpoolMgr::WorkerThreadStart+328 
    clr!Thread::intermediateThreadProc+58 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Thread 10 -

    Entry point   GdiPlus!DllRefCountSafeThreadThunk 
    Create time   3/5/2020 4:19:14 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack

    win32u!NtUserMsgWaitForMultipleObjectsEx+c 
    user32!RealMsgWaitForMultipleObjectsEx+79 
    user32!MsgWaitForMultipleObjects+3e 
    GdiPlus!BackgroundThreadProc+56 
    GdiPlus!DllRefCountSafeThreadThunk+1a 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 


    Thread 11 - 

    Entry point   clr!Thread::intermediateThreadProc 
    Create time   3/5/2020 4:19:15 PM 
    Time spent in user mode   0 Days 00:00:00.000 
    Time spent in kernel mode   0 Days 00:00:00.000 

    Call Stack

    ntdll!NtRemoveIoCompletion+c 
    KERNELBASE!GetQueuedCompletionStatus+2a 
    clr!ThreadpoolMgr::CompletionPortThreadStart+1ed 
    clr!Thread::intermediateThreadProc+58 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Thread 12 - System ID 16192

    Entry point   clr!Thread::intermediateThreadProc 
    Create time   3/5/2020 4:19:25 PM 
    Time spent in user mode   0 Days 00:00:00.015 
    Time spent in kernel mode   0 Days 00:00:00.000 

    This thread is waiting in a WaitOne


    .NET Call Stack


    [[HelperMethodFrame_1OBJ] (System.Threading.WaitHandle.WaitOneNative)] System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean) 
    mscorlib_ni!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)+22 
    mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)+29 
    mscorlib_ni!System.Threading.WaitHandle.WaitOne()+12 
    System_Management_ni!System.Management.MTAHelper.WorkerThread()+35 
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart_Context(System.Object)+a1 
    mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+c4 
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+17 
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+44 
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart()+47 
    [[GCFrame]] 
    [[DebuggerU2MCatchHandlerFrame]] 

    Full Call Stack

    ntdll!NtWaitForMultipleObjects+c 
    KERNELBASE!WaitForMultipleObjectsEx+133 
    clr!WaitForMultipleObjectsEx_SO_TOLERANT+3c 
    clr!Thread::DoAppropriateWaitWorker+1eb 
    clr!Thread::DoAppropriateWait+64 
    clr!WaitHandleNative::CorWaitOneNative+163 
    [[HelperMethodFrame_1OBJ] (System.Threading.WaitHandle.WaitOneNative)] System.Threading.WaitHandle.WaitOneNative(System.Runtime.InteropServices.SafeHandle, UInt32, Boolean, Boolean) 
    mscorlib_ni!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)+22 
    mscorlib_ni!System.Threading.WaitHandle.InternalWaitOne(System.Runtime.InteropServices.SafeHandle, Int64, Boolean, Boolean)+22 
    mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)+29 
    mscorlib_ni!System.Threading.WaitHandle.WaitOne(Int32, Boolean)+29 
    mscorlib_ni!System.Threading.WaitHandle.WaitOne()+12 
    mscorlib_ni!System.Threading.WaitHandle.WaitOne()+12 
    System_Management_ni!System.Management.MTAHelper.WorkerThread()+35 
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart_Context(System.Object)+a1 
    mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+c4 
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+17 
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)+17 
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+44 
    mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)+44 
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart()+47 
    mscorlib_ni!System.Threading.ThreadHelper.ThreadStart()+47 
    clr!CallDescrWorkerInternal+34 
    clr!CallDescrWorkerWithHandler+6b 
    clr!MethodDescCallSite::CallTargetWorker+16a 
    clr!ThreadNative::KickOffThread_Worker+131 
    [[GCFrame]] 
    clr!ManagedThreadBase_DispatchInner+71 
    clr!ManagedThreadBase_DispatchMiddle+7e 
    clr!ManagedThreadBase_DispatchOuter+99 
    [[DebuggerU2MCatchHandlerFrame]] 
    clr!ManagedThreadBase_FullTransitionWithAD+2f 
    clr!ThreadNative::KickOffThread+260 
    clr!Thread::intermediateThreadProc+58 
    kernel32!BaseThreadInitThunk+19 
    ntdll!__RtlUserThreadStart+2f 
    ntdll!_RtlUserThreadStart+1b 

    Well-Known COM STA Threads Report

    STA Name   

    Thread ID   

    Thread Status   

    Call Status

    Main STA    0 Unknown    blocked by an unhandled exception 

    Exception Information

    CLR!DONTCALLDIRECTLYFORCESTACKOVERFLOW+12In xxxxx.EXE_200305_162928.dmp the assembly instruction at clr!DontCallDirectlyForceStackOverflow+12 in C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll from Microsoft Corporation has caused an access violation exception (0xC0000005) when trying to write to memory location 0x017502f4 on thread 0


    Module Information 

    Image Name: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll   Symbol Type:  PDB 
    Base address: 0x00905a4d   Time Stamp:  Fri Dec 06 15:55:32 2019  
    Checksum: 0x00000000   Comments:  Flavor=Retail 
    COM DLL: False   Company Name:  Microsoft Corporation 
    ISAPIExtension: False   File Description:  Microsoft .NET Runtime Common Language Runtime - WorkStation 
    ISAPIFilter: False   File Version:  4.8.4121.0 built by: NET48REL1LAST_C 
    Managed DLL: False   Internal Name:  clr.dll 
    VB DLL: False   Legal Copyright:  © Microsoft Corporation. All rights reserved. 
    Loaded Image Name:  clr.dll   Legal Trademarks:   
    Mapped Image Name:  c:\symbols\clr.dll\5DEACE547b0000\clr.dll   Original filename:  clr.dll 
    Module name:  clr   Private Build:  DDBLD507 
    Single Threaded:  False   Product Name:  Microsoft® .NET Framework 
    Module Size:  7.69 MBytes   Product Version:  4.8.4121.0 
    Symbol File Name:  c:\symbols\clr.pdb\8C81D3F507A84AF78B1509853BDEF94C2\clr.pdb   Special Build:  & 


    Thursday, March 19, 2020 9:16 PM
  • seems like there is already an exception: KiUserExceptionDispatcher
    but then a crash in CLR due to this.
    In a debugger you should break at first chance exceptions to see what the original exception was.


    btw: you are in the wrong forum: 
    .NET Framework Class Libraries
    Discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Friday, March 20, 2020 5:46 AM
  • Hi ICTCYN,

    Thanks for your feedback.

    Based on my research, I find two related references:

    1. How to handle AccessViolationException
    2. Application Error: w3wp.exe

    Hope the suggestions in them could be helpful.

    Best Regards,

    Xingyu Zhao


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, March 20, 2020 7:13 AM
    Moderator