none
Crash in clr.dll RRS feed

  • Discussion générale

  • Hello

    Since a week ago, am facing a systematic crash on my application (running as windows service).

    The service stops immediately and genrates the dmp and hdmp files.

    Here the analyses by WinDbg.

    Microsoft (R) Windows Debugger Version 10.0.18362.1 X86
    Copyright (c) Microsoft Corporation. All rights reserved.


    Loading Dump File [C:\Users\QJ5597\Desktop\Prod-Debug\AppCrash_MarketAccess.exe_32fdf8b810302372cf30d5bde4cea6bce686b4a_33af0e8c_cab_7f268ec0\memory.hdmp]
    User Mini Dump File: Only registers, stack and portions of memory are available

    Symbol search path is: srv*
    Executable search path is: 
    Windows 8.1 Version 9600 MP (4 procs) Free x64
    Product: Server, suite: TerminalServer SingleUserTS
    6.3.9600.18217 (winblue_ltsb.160124-0053)
    Machine Name:
    Debug session time: Fri Nov 15 16:05:07.000 2019 (UTC + 1:00)
    System Uptime: 20 days 18:29:02.228
    Process Uptime: 0 days 0:24:10.000
    ...............................................................
    Loading unloaded module list
    ............
    This dump file has an exception of interest stored in it.
    The stored exception information can be accessed via .ecxr.
    (10dc.1928): Access violation - code c0000005 (first/second chance not available)
    For analysis of this file, run !analyze -v
    clr!JIT_ByRefWriteBarrier:
    00007ffa`ebf54100 488b0e          mov     rcx,qword ptr [rsi] ds:00000000`00000000=????????????????
    0:025> !analyze -v
    *******************************************************************************
    *                                                                             *
    *                        Exception Analysis                                   *
    *                                                                             *
    *******************************************************************************

    Unable to load image C:\Windows\assembly\NativeImages_v4.0.30319_64\mscorlib\34d3daa41387618390516025073e6ef2\mscorlib.ni.dll, Win32 error 0n2
    *** WARNING: Unable to verify checksum for MarketAccess.exe
    Unable to load image C:\Windows\assembly\NativeImages_v4.0.30319_64\System\9c200263e939d36ee4fc0cda21858884\System.ni.dll, Win32 error 0n2
    *** WARNING: Unable to verify checksum for System.ni.dll
    Unable to load image C:\Windows\assembly\NativeImages_v4.0.30319_64\System.Xml\009e220038bc40a7710faebf6d9a77fc\System.Xml.ni.dll, Win32 error 0n2
    *** WARNING: Unable to verify checksum for System.Xml.ni.dll

    KEY_VALUES_STRING: 1

        Key  : AV.Dereference
        Value: NullClassPtr

        Key  : AV.Fault
        Value: Read

        Key  : CLR.Engine
        Value: CLR

        Key  : CLR.Version
        Value: 4.0.30319.0

        Key  : Timeline.OS.Boot.DeltaSec
        Value: 1794542

        Key  : Timeline.Process.Start.DeltaSec
        Value: 1450


    PROCESSES_ANALYSIS: 1

    SERVICE_ANALYSIS: 1

    STACKHASH_ANALYSIS: 1

    TIMELINE_ANALYSIS: 1

    Timeline: !analyze.Start
        Name: <blank>
        Time: 2019-11-15T17:15:31.418Z
        Diff: 7824418 mSec

    Timeline: Dump.Current
        Name: <blank>
        Time: 2019-11-15T15:05:07.0Z
        Diff: 0 mSec

    Timeline: Process.Start
        Name: <blank>
        Time: 2019-11-15T14:40:57.0Z
        Diff: 1450000 mSec

    Timeline: OS.Boot
        Name: <blank>
        Time: 2019-10-25T20:36:05.0Z
        Diff: 1794542000 mSec


    DUMP_CLASS: 2

    DUMP_QUALIFIER: 400

    CONTEXT:  (.ecxr)
    rax=000000dfe66bd708 rbx=000000e436f1e270 rcx=00007ffa8cb279c8
    rdx=000000dfe66bd730 rsi=0000000000000000 rdi=000000e436f1dd80
    rip=00007ffaebf54100 rsp=000000e436f1e4a8 rbp=000000dfe66b9e70
     r8=00007ffa8cb29d08  r9=000000e436f1e410 r10=000000dfe66bf4c8
    r11=000000e42fa4d880 r12=0000000000000000 r13=000000e436f1eb00
    r14=000000e2e523f038 r15=000000dfe66bd708
    iopl=0         nv up ei pl nz na pe nc
    cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010200
    clr!JIT_ByRefWriteBarrier:
    00007ffa`ebf54100 488b0e          mov     rcx,qword ptr [rsi] ds:00000000`00000000=????????????????
    Resetting default scope

    FAULTING_IP: 
    clr!JIT_ByRefWriteBarrier+0
    00007ffa`ebf54100 488b0e          mov     rcx,qword ptr [rsi]

    EXCEPTION_RECORD:  (.exr -1)
    ExceptionAddress: 00007ffaebf54100 (clr!JIT_ByRefWriteBarrier)
       ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000001
    NumberParameters: 2
       Parameter[0]: 0000000000000000
       Parameter[1]: 0000000000000058
    Attempt to read from address 0000000000000058

    PROCESS_NAME:  MarketAccess.exe

    FOLLOWUP_IP: 
    clr!JIT_ByRefWriteBarrier+0
    00007ffa`ebf54100 488b0e          mov     rcx,qword ptr [rsi]

    READ_ADDRESS:  0000000000000058 

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

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

    EXCEPTION_CODE_STR:  c0000005

    EXCEPTION_PARAMETER1:  0000000000000000

    EXCEPTION_PARAMETER2:  0000000000000058

    WATSON_BKT_PROCSTAMP:  5dce9dc8

    WATSON_BKT_PROCVER:  99.99.99.99

    WATSON_BKT_MODULE:  clr.dll

    WATSON_BKT_MODSTAMP:  5d3a2129

    WATSON_BKT_MODOFFSET:  4100

    WATSON_BKT_MODVER:  4.7.3460.0

    MODULE_VER_PRODUCT:  Microsoft® .NET Framework

    BUILD_VERSION_STRING:  6.3.9600.18217 (winblue_ltsb.160124-0053)

    MODLIST_WITH_TSCHKSUM_HASH:  cb1175bc028d8952a6b4777316503452d23d2815

    MODLIST_SHA1_HASH:  a8e998992eab2d121ede24239fa881e06c33e4c6

    NTGLOBALFLAG:  0

    PROCESS_BAM_CURRENT_THROTTLED: 0

    PROCESS_BAM_PREVIOUS_THROTTLED: 0

    APPLICATION_VERIFIER_FLAGS:  0

    PRODUCT_TYPE:  3

    SUITE_MASK:  272

    DUMP_FLAGS:  d96

    DUMP_TYPE:  0

    MISSING_CLR_SYMBOL: 0

    ANALYSIS_SESSION_HOST:  GA013385L

    ANALYSIS_SESSION_TIME:  11-15-2019 18:15:31.0418

    ANALYSIS_VERSION: 10.0.18362.1 x86fre

    MANAGED_CODE: 1

    MANAGED_ENGINE_MODULE:  clr

    MANAGED_BITNESS_MISMATCH: 
    Managed code needs matching platform for proper analysis. Use 'x64' debugger.

    THREAD_ATTRIBUTES: 
    OS_LOCALE:  ENU

    ADDITIONAL_DEBUG_TEXT:  SOS.DLL is not loaded for managed code. Analysis might be incomplete

    BUGCHECK_STR:  APPLICATION_FAULT_NULL_CLASS_PTR_READ_NULL_CLASS_PTR_DEREFERENCE_INVALID_POINTER_READ_NOSOS

    DEFAULT_BUCKET_ID:  NULL_CLASS_PTR_READ_NOSOS

    PRIMARY_PROBLEM_CLASS:  APPLICATION_FAULT

    PROBLEM_CLASSES: 

        ID:     [0n313]
        Type:   [@ACCESS_VIOLATION]
        Class:  Addendum
        Scope:  BUCKET_ID
        Name:   Omit
        Data:   Omit
        PID:    [Unspecified]
        TID:    [0x1928]
        Frame:  [0] : clr!JIT_ByRefWriteBarrier

        ID:     [0n285]
        Type:   [INVALID_POINTER_READ]
        Class:  Primary
        Scope:  BUCKET_ID
        Name:   Add
        Data:   Omit
        PID:    [Unspecified]
        TID:    [0x1928]
        Frame:  [0] : clr!JIT_ByRefWriteBarrier

        ID:     [0n309]
        Type:   [NULL_CLASS_PTR_DEREFERENCE]
        Class:  Primary
        Scope:  BUCKET_ID
        Name:   Add
        Data:   Omit
        PID:    [Unspecified]
        TID:    [0x1928]
        Frame:  [0] : clr!JIT_ByRefWriteBarrier

        ID:     [0n310]
        Type:   [NULL_CLASS_PTR_READ]
        Class:  Primary
        Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
                BUCKET_ID
        Name:   Add
        Data:   Omit
        PID:    [0x10dc]
        TID:    [0x1928]
        Frame:  [0] : clr!JIT_ByRefWriteBarrier

        ID:     [0n251]
        Type:   [NOSOS]
        Class:  Addendum
        Scope:  DEFAULT_BUCKET_ID (Failure Bucket ID prefix)
                BUCKET_ID
        Name:   Add
        Data:   Omit
        PID:    [Unspecified]
        TID:    [Unspecified]
        Frame:  [0]

    IP_ON_HEAP:  00007ffa8d6de442
    The fault address in not in any loaded module, please check your build's rebase
    log at <releasedir>\bin\build_logs\timebuild\ntrebase.log for module which may
    contain the address if it were loaded.

    FRAME_ONE_INVALID: 1

    LAST_CONTROL_TRANSFER:  from 00007ffa8d6de442 to 00007ffaebf54100

    STACK_TEXT:  
    000000e4`36f1e4a8 00007ffa`8d6de442 : 000000e2`e523ebb8 000000df`e66b9e00 00000000`00000000 00000000`00000000 : clr!JIT_ByRefWriteBarrier
    000000e4`36f1e4b0 00007ffa`8cc25041 : 000000e2`e523edd0 000000e0`e51b4c68 00000000`00000000 000000e2`e523ff28 : 0x00007ffa`8d6de442
    000000e4`36f1e550 00007ffa`8d6dd995 : 00007ffa`eaf1c158 000000e2`e523f038 000000e2`e523ebb8 00007ffa`e9cadea7 : 0x00007ffa`8cc25041
    000000e4`36f1e5c0 00007ffa`8c98fe92 : 000000df`e51f7290 000000e0`e8824518 000000df`e51f7620 000000e1`e8548d40 : 0x00007ffa`8d6dd995
    000000e4`36f1e640 00007ffa`ead3f2c6 : 000000e2`e523fec0 000000e2`e55ac7f0 000000e4`36f1e710 00000000`00000000 : 0x00007ffa`8c98fe92
    000000e4`36f1e6a0 00007ffa`eacf5ab3 : 000000e2`e523ff28 00007ffa`ec0e2e05 00007ffa`eaf0ccd8 00000000`00000000 : mscorlib_ni!System.Threading.Tasks.Task.Execute()$##6003F91+0x46
    000000e4`36f1e6e0 00007ffa`eacf5944 : 00000000`0000052e 00000000`00000000 000000e4`36f1eb00 000000e2`e55ac8e0 : mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)$##6003AD4+0x163
    000000e4`36f1e7b0 00007ffa`ead3f565 : 000000e0`e542e860 00000000`00000000 00000000`00000000 00000000`00000000 : mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)$##6003AD3+0x14
    000000e4`36f1e7e0 00007ffa`ead3ec93 : 000000e2`e523ff28 000000df`e51f7260 000000e2`e55ac7f0 00000000`00000000 : mscorlib_ni!System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef)$##6003F9E+0x215
    000000e4`36f1e890 00007ffa`eacf5ab3 : 000000e0`e542e860 00000000`00000000 00000000`00000000 00000000`00000000 : mscorlib_ni!System.Threading.Tasks.Task.ExecuteEntry(Boolean)$##6003F9D+0x73
    000000e4`36f1e8d0 00007ffa`eacf5944 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : mscorlib_ni!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)$##6003AD4+0x163
    000000e4`36f1e9a0 00007ffa`eacf5912 : 000000e2`e55ac8e0 00000000`00000000 00000000`00000000 00000000`00000000 : mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)$##6003AD3+0x14
    000000e4`36f1e9d0 00007ffa`eb6a4b6c : 000000e4`36f1eb78 00007ffa`ebf574f2 00000000`00000012 000000e4`36f1ecc8 : mscorlib_ni!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)$##6003AD2+0x52
    000000e4`36f1ea20 00007ffa`ebf56ad3 : 000000e2`e55ac908 000000e2`e55ac7f0 00000000`00000000 00000000`00000000 : mscorlib_ni!System.Threading.ThreadHelper.ThreadStart(System.Object)$##6003BE3+0x5c
    000000e4`36f1ea60 00007ffa`ebf56988 : 00000000`00000001 00007ffa`ebf86d82 000000e4`36f1ed38 00000000`00000000 : clr!CallDescrWorkerInternal+0x83
    000000e4`36f1eaa0 00007ffa`ebf5724d : 00000000`00000002 000000e4`36f1ec58 000000e4`36f1ec78 000000e4`36f1ed38 : clr!CallDescrWorkerWithHandler+0x4e
    000000e4`36f1eae0 00007ffa`ec0c8a79 : 000000e4`36f1f0f0 000000e4`36f1f030 00007ffa`eaedb1f8 000000e4`36f1f030 : clr!MethodDescCallSite::CallTargetWorker+0xf8
    000000e4`36f1ebe0 00007ffa`ebf57a11 : 00000000`00001f80 00007ffa`ec0c8970 000000e4`36f1f030 00000000`00000000 : clr!ThreadNative::KickOffThread_Worker+0x109
    000000e4`36f1ee40 00007ffa`ebf57980 : 000000e4`36f1f030 00007ffa`ebf55371 ffffffff`fffffffe 00000000`00000002 : clr!ManagedThreadBase_DispatchInner+0x39
    000000e4`36f1ee80 00007ffa`ebf578bd : 00000000`00000001 00000000`00000000 000079a5`f3d49878 00000000`00000000 : clr!ManagedThreadBase_DispatchMiddle+0x6c
    000000e4`36f1ef80 00007ffa`ebf57a4f : ffffffff`ffffffff 000000e4`2fa4d880 000000e4`2fa4d880 000000e4`31b77710 : clr!ManagedThreadBase_DispatchOuter+0x75
    000000e4`36f1f010 00007ffa`ec0c895b : 000000e4`2fa4d880 000000e4`00000001 000000e4`31b77710 00000000`00000006 : clr!ManagedThreadBase_FullTransitionWithAD+0x2f
    000000e4`36f1f070 00007ffa`ec10128f : 000000e4`31b77710 000000e4`2fa4d880 000000e4`36f1f0c8 000000e4`31b69e60 : clr!ThreadNative::KickOffThread+0xdb
    000000e4`36f1f140 00007ffa`f32a13f2 : 00007ffa`ec101210 000000e4`31b69e60 00000000`00000000 00000000`00000000 : clr!Thread::intermediateThreadProc+0x86
    000000e4`36f1f980 00007ffa`f59554f4 : 00007ffa`f32a13d0 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x22
    000000e4`36f1f9b0 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x34


    THREAD_SHA1_HASH_MOD_FUNC:  fc16f82a69703ddb874ba6e2d22e885324ececf4

    THREAD_SHA1_HASH_MOD_FUNC_OFFSET:  9e8d257277950fdda99800dea29363f0976ef3ed

    THREAD_SHA1_HASH_MOD:  a0b3b29341acea4d2f8d05bfbdbb623554902ad3

    FAULT_INSTR_CODE:  480e8b48

    SYMBOL_STACK_INDEX:  0

    SYMBOL_NAME:  clr!JIT_ByRefWriteBarrier+0

    FOLLOWUP_NAME:  MachineOwner

    MODULE_NAME: clr

    IMAGE_NAME:  clr.dll

    DEBUG_FLR_IMAGE_TIMESTAMP:  5d3a2129

    STACK_COMMAND:  ~25s ; .ecxr ; kb

    FAILURE_BUCKET_ID:  NULL_CLASS_PTR_READ_NOSOS_c0000005_clr.dll!JIT_ByRefWriteBarrier

    BUCKET_ID:  APPLICATION_FAULT_NULL_CLASS_PTR_READ_NULL_CLASS_PTR_DEREFERENCE_INVALID_POINTER_READ_NOSOS_clr!JIT_ByRefWriteBarrier+0

    FAILURE_EXCEPTION_CODE:  c0000005

    FAILURE_IMAGE_NAME:  clr.dll

    BUCKET_ID_IMAGE_STR:  clr.dll

    FAILURE_MODULE_NAME:  clr

    BUCKET_ID_MODULE_STR:  clr

    FAILURE_FUNCTION_NAME:  JIT_ByRefWriteBarrier

    BUCKET_ID_FUNCTION_STR:  JIT_ByRefWriteBarrier

    BUCKET_ID_OFFSET:  0

    BUCKET_ID_MODPRIVATE: 1

    BUCKET_ID_MODTIMEDATESTAMP:  5d3a2129

    BUCKET_ID_MODCHECKSUM:  9f40f1

    BUCKET_ID_MODVER_STR:  4.7.3460.0

    BUCKET_ID_PREFIX_STR:  APPLICATION_FAULT_NULL_CLASS_PTR_READ_NULL_CLASS_PTR_DEREFERENCE_INVALID_POINTER_READ_NOSOS_

    FAILURE_PROBLEM_CLASS:  APPLICATION_FAULT

    FAILURE_SYMBOL_NAME:  clr.dll!JIT_ByRefWriteBarrier

    WATSON_STAGEONE_URL:  http://watson.microsoft.com/StageOne/MarketAccess.exe/99.99.99.99/5dce9dc8/clr.dll/4.7.3460.0/5d3a2129/c0000005/00004100.htm?Retriage=1

    TARGET_TIME:  2019-11-15T15:05:07.000Z

    OSBUILD:  9600

    OSSERVICEPACK:  19358

    SERVICEPACK_NUMBER: 0

    OS_REVISION: 0

    OSPLATFORM_TYPE:  x64

    OSNAME:  Windows 8.1

    OSEDITION:  Windows 8.1 Server TerminalServer SingleUserTS

    USER_LCID:  0

    OSBUILD_TIMESTAMP:  2019-05-06 04:41:50

    BUILDDATESTAMP_STR:  160124-0053

    BUILDLAB_STR:  winblue_ltsb

    BUILDOSVER_STR:  6.3.9600.18217

    ANALYSIS_SESSION_ELAPSED_TIME:  19ec

    ANALYSIS_SOURCE:  UM

    FAILURE_ID_HASH_STRING:  um:null_class_ptr_read_nosos_c0000005_clr.dll!jit_byrefwritebarrier

    FAILURE_ID_HASH:  {0716ad21-63fe-bd9b-d993-c292786c23f0}

    Followup:     MachineOwner
    ---------

    Kind Regards

    vendredi 15 novembre 2019 17:34

Toutes les réponses

  • Bonjour,

    Il y a une ligne intéressante, là-dedans :

    (10dc.1928): Access violation - code c0000005 (first/second chance not available)

    Quand on a un code à huit caractères hexadécimaux, le réflexe c'est de le chercher sur Internet, mais là même pas besoin, on a l'intitulé devant.

    Il faut vérifier les autorisations d'accès aux ressources mises en œuvre.

    S'agissant d'un service il faut vérifier avec quel profil utilisateur on le lance.

    Là je serai peut-être un peu léger mais je dirais qu'au minimum il faut un administrateur, peut-être un profil système.

    samedi 16 novembre 2019 13:22
  • Bonjour

    Merci pour votre réponse.

    Avant de postuler mon problème j'a fait plusieurs vérifications.

    D'ailleurs je lance mon service avec un user admin sur la machine.

    Y avait aussi une proposition de mettre <gcConcurrent enabled="false"/>

    Mais tout de même ceci n'a pas aidé.

    lundi 18 novembre 2019 08:27
  • Ah, oui, apparemment il faudrait s'adresser à quelqu'un qui développe plus souvent des services.

    L'idée de poser la question en Anglais était bonne car les effectifs ne sont pas les mêmes, mais à condition que ça soit dans un forum anglophone.

    En définitive ce message ne s'adresse qu'aux francophones parlant suffisamment bien Anglais. Si je me rappelle le collège, ça restreint la cible -même si le développement est une forte incitation à améliorer sa fluidité en Anglais.

    Et à ce que j'ai vu récemment, poser une question dans un forum anglophone se déroule en deux étapes :

    - d'abord une question pour demander dans quel forum il faut aller

    - ensuite, dans le bon forum, la question qu'on veut poser.

    Jusqu'à ce que la liste de forums soit à jour, car on dirait que ça craint.

    lundi 18 novembre 2019 21:00
  • Bonjour,

    Est-ce que l'orientation vers le bon forum progresse bien ?

    dimanche 1 décembre 2019 21:33