.net - How to debug System.ExecutionEngineException in a framework code of a managed application -
i have application running service. application crashes time time. application written in vb.net , runs tasks @ new thread (one @ time). have collected crash dumps , started analyzing. analyze of log file created application (analysis of dump supports it) seems crash occurs when no task running , application waiting next system.timers.timer
event.
first loaded .dmp file vs2010:
process architecture: x86 exception code: 0xc0000005 exception information: thread tried read or write virtual address not have appropriate access. heap information: present
when started 'debug mixed' have got
an unhandled exception of type 'system.executionengineexception' occurred in unknown module.
when searching web more information found cdb.exe
can give more information. here (shortened not much) result of !analyze -v
:
faulting_ip: clr!gcpreempnodtor::enter+23 73532ac0 c7410800000000 mov dword ptr [ecx+8],0 exception_record: ffffffff -- (.exr 0xffffffffffffffff) exceptionaddress: 73532ac0 (clr!gcpreempnodtor::enter+0x00000023) exceptioncode: c0000005 (access violation) exceptionflags: 00000001 numberparameters: 2 parameter[0]: 00000001 parameter[1]: 764a125a attempt write address 764a125a
...
error_code: (ntstatus) 0xc0000005 - instruction @ 0x%08lx referenced memory @ 0x%08lx. memory not %s.
managed_stack: !dumpstack -ee
gives empty result.
stack_text: 0570f1b8 73635252 00000001 25d0418f 00070007 clr!gcpreempnodtor::enter+0x23 0570f1fc 73625e51 25d0424f 7359f550 00000000 clr!destroythread+0x82 0570f264 735ca0cf 00000000 00020000 0570f290 clr!threadpoolmgr::workerthreadstart+0x5b2 0570ff08 764a33aa 072cab38 0570ff54 77379ef2 clr!thread::intermediatethreadproc+0x4d 0570ff14 77379ef2 072cab38 40118862 00000000 kernel32!basethreadinitthunk+0xe 0570ff54 77379ec5 735ca086 072cab38 ffffffff ntdll!__rtluserthreadstart+0x70 0570ff6c 00000000 735ca086 072cab38 00000000 ntdll!_rtluserthreadstart+0x1b
from conclude crash cause clr invoked process (garbage collection?) not see connection managed code , next.
Comments
Post a Comment