Access Violation when taking snapshot of windows service

Memory profiling for .NET developers

Access Violation when taking snapshot of windows service

Postby dandrus » Mon Jul 21, 2014 2:55 pm


I am trying to evaluate ANTS in profiling a GEN2 leak in GC for .net2 process. I am successfully attaching to the process, however it kills the service when taking the snapshot:

Faulting application name: SW.exe, version:, time stamp: 0x53486a5c
Faulting module name: KERNELBASE.dll, version: 6.3.9600.16384, time stamp: 0x5215fa76
Exception code: 0xc0000005
Fault offset: 0x0000000000008384
Faulting process id: 0xad0
Faulting application start time: 0x01cfa4f2412ca1a1
Faulting application path: C:\\Program Files\\SW\\SW.exe
Faulting module path: C:\\Windows\\system32\\KERNELBASE.dll
Report Id: 95e7ef29-10e5-11e4-80c4-005056965a3f
Faulting package full name:

and then

.NET Runtime version 2.0.50727.7905 - Failed to CoCreate profiler

this is a 64 bit process. regardless what I choose from options, it always crashes the service when creating snapshot.

Is there any workaround or anything I can do?
Posts: 1
Joined: Mon Jul 21, 2014 2:47 pm

Postby Brian Donahue » Tue Jul 22, 2014 3:37 pm

Is there is Windows event log entry from around that time that also mentions a location for a *mdmp file? The mini-dump can be loaded into windbg and we can try to work out what the program was doing approximately when it failed. For this reason, it would be tremendously helpful if we could have this file.

If you don't see such information, I think there are some settings you can change in the registry that will get Windows Error Reporting to create a dump file automatically when a program crashes.
Brian Donahue
Posts: 6590
Joined: Mon Aug 23, 2004 9:48 am

Return to ANTS Memory Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests