none
Access violation error from CLR! Getmetadatainternalinterfacefrompublic RRS feed

  • Question

  • My C# application is crashing intermittently . I have done the debugging through windbg and it is showing the error in clr .Below is the logging from windbg . C# application is loading a managed cpp dll and the managed dll is loading the native cpp dll(third party dll)

    clr!GetMetaDataInternalInterfaceFromPublic+25e75
    6e7256fa f70000000080 test dword ptr [eax],80000000h

    EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
    ExceptionAddress: 6e7256fa (clr!GetMetaDataInternalInterfaceFromPublic+0x00025e75) ExceptionCode: c0000005 (Access violation)
    ExceptionFlags: 00000000 NumberParameters: 2 Parameter[0]: 00000000 Parameter[1]: 6bd15370
    Attempt to read from address 6bd15370

    FAULTING_THREAD: 00000c8c

    DEFAULT_BUCKET_ID: INVALID_POINTER_READ

    PROCESS_NAME: application.exe

    ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx referenced >memory at 0x%08lx. The memory could not be %s.

    EXCEPTION_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%08lx >referenced memory at 0x%08lx. The memory could not be %s.

    EXCEPTION_PARAMETER1: 00000000

    EXCEPTION_PARAMETER2: 6bd15370

    READ_ADDRESS: 6bd15370

    FOLLOWUP_IP: clr!GetMetaDataInternalInterfaceFromPublic+25e75 6e7256fa f70000000080 test dword ptr [eax],80000000h

    MOD_LIST:

    NTGLOBALFLAG: 70

    APPLICATION_VERIFIER_FLAGS: 0

    MANAGED_STACK: SP IP Function 00000000 00000001 App_config_1a0000!Application.Read()+0x2 002EF438 0040174B App_config_1a0000!Application.Re()+0xc3 002EF460 00400081 App_config!Application.Main()+0x31

    StackTraceString: HResult: 8007045a

    EXCEPTION_OBJECT: !pe 18f41f8 Exception object: 018f41f8 Exception type: System.IO.FileLoadException Message: Could not load file or assembly 'ManagedCPP.dll' or one of its dependencies. A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A) InnerException: StackTrace (generated): SP IP Function 00000000 00000001 App_config_1a0000!Application.Read()+0x2 002EF438 0040174B App_config_1a0000!Application.Re()+0xc3 002EF460 00400081 App_config!Application.Main()+0x31

    From the windbg logging, I have seen access violation from clr and after that it is showing dll loading issues. Is it because clr crash the dll is not loading?


    • Moved by May Luo-MSFT Tuesday, May 14, 2019 3:00 AM CLR issue
    Sunday, May 12, 2019 11:59 AM

All replies

  • Hi friend,

    could you share us the specific demo or sample? we would reproduce it and analysis the code in our side. 

    Best regards

    May


    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


    Monday, May 13, 2019 6:12 AM
  • Hi friend.

    After researching, your issue is related to C#. since our forum mainly focus on VS IDE issue, so I will move it to an appropriate forum for better supporting.

    Don’t forget to share demo or sample to help C# engineer to reproduce this issue and troubleshot it.

    May


    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

    Tuesday, May 14, 2019 2:59 AM