AccessViolationException - mscorlib.ni.dll

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Ihave a .NET 2.0 Service running at a customer site and the application is taking an AccessViolationException (0xC0000005), but its occuring in code which I cant figure out what it is.
I had them use DebugDiag to generate a .dmp file from the application, so we were able to catch the exception. (Results from the crash analysis are posted below)
I have the .dmp file, and the complete source code for the software in question, however when I load the dmp in visual studio and then click Debug, it shows me the exception and then offers to show the assembly, which is pretty useless for me.
Anyone have experience with this/know how I can figure out where in /my/ code we are calling into the system stuff?

In ZDSCADToCADService__PID__6168__Date__04_26_2011__Time_11_30_38AM__785__Second_Chance_Exception_C0000005.dmp the module
C:WINDOWSassemblyNativeImages_v2.0.50727_32mscorlibfee8c8ba9b84a7832274adcbfc9d5ca4mscorlib.ni.dll has caused an
access violation exception (0xC0000005) when trying to read from memory location
0x00000020 on thread #x_6168:520543Thread14504 18
<h4><a name="x_6168:520543Thread14504 Thread 18 - System ID 14504 </h4>
<table border="0" cellspacing="0" cellpadding="0
<tbody>
<tr>
<td>Entry point</td>
<td> mscorwks!Thread::intermediateThreadProc </td>
</tr>
<tr>
<td>Create time</td>
<td> 4/26/2011 12:30:38 PM </td>
</tr>
<tr>
<td>Time spent in user mode</td>
<td> 0 Days 0:0:0.0 </td>
</tr>
<tr>
<td>Time spent in kernel mode</td>
<td> 0 Days 0:0:0.0 </td>
</tr>
</tbody>
</table>
<br/>
<br/>
<table border="0" cellspacing="0" cellpadding="0
<tbody>
<tr>
<th>Function</th>
<th> Arg 1</th>
<th> Arg 2</th>
<th> Arg 3</th>
<th> Source</th>
</tr>
<tr>
<td>0x0311800c</td>
<td> <span style="font-family:courier new 09865df4</td>
<td> <span style="font-family:courier new 79366b3d</td>
<td> <span style="font-family:courier new 036bec70</td>
<td> </td>
</tr>
<tr>
<td>mscorlib_ni+320c7b</td>
<td> <span style="font-family:courier new 036bec70</td>
<td> <span style="font-family:courier new 036bec9c</td>
<td> <span style="font-family:courier new 09865df4</td>
<td> </td>
</tr>
<tr>
<td>mscorlib_ni+2a6b3d</td>
<td> <span style="font-family:courier new 09865d8c</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 0391a9e8</td>
<td> </td>
</tr>
<tr>
<td>mscorlib_ni+320d5c</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 036bed00</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!CallDescrWorker+33</td>
<td> <span style="font-family:courier new 036bed50</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 036bed20</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!CallDescrWorkerWithHandler+a3</td>
<td> <span style="font-family:courier new 036bed50</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 036bed20</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!MethodDesc::CallDescr+19c</td>
<td> <span style="font-family:courier new 796a5adc</td>
<td> <span style="font-family:courier new 036bef94</td>
<td> <span style="font-family:courier new 036beecc</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!MethodDesc::CallTargetWorker+1f</td>
<td> <span style="font-family:courier new 796a5adc</td>
<td> <span style="font-family:courier new 036bef94</td>
<td> <span style="font-family:courier new 036beecc</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!MethodDescCallSite::CallWithValueTypes_RetArgSlot+18</td>
<td> <span style="font-family:courier new 036beecc</td>
<td> <span style="font-family:courier new 595875f8</td>
<td> <span style="font-family:courier new 0391a9e8</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!ThreadNative::KickOffThread_Worker+190</td>
<td> <span style="font-family:courier new 036bf1d0</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 00000000</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!Thread::DoADCallBack+32a</td>
<td> <span style="font-family:courier new 036bf144</td>
<td> <span style="font-family:courier new 036bf0f0</td>
<td> <span style="font-family:courier new 79f495f5</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!Thread::ShouldChangeAbortToUnload+e3</td>
<td> <span style="font-family:courier new 036bf144</td>
<td> <span style="font-family:courier new 59587494</td>
<td> <span style="font-family:courier new 00000000</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!Thread::ShouldChangeAbortToUnload+30a</td>
<td> <span style="font-family:courier new 036bf144</td>
<td> <span style="font-family:courier new 00000001</td>
<td> <span style="font-family:courier new 00000000</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!Thread::ShouldChangeAbortToUnload+33e</td>
<td> <span style="font-family:courier new 00000001</td>
<td> <span style="font-family:courier new 7a0a94e5</td>
<td> <span style="font-family:courier new 036bf1d0</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!ManagedThreadBase::KickOff+13</td>
<td> <span style="font-family:courier new 00000001</td>
<td> <span style="font-family:courier new 7a0a94e5</td>
<td> <span style="font-family:courier new 036bf1d0</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!ThreadNative::KickOffThread+269</td>
<td> <span style="font-family:courier new 05a40f90</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 00000000</td>
<td> </td>
</tr>
<tr>
<td>mscorwks!Thread::intermediateThreadProc+49</td>
<td> <span style="font-family:courier new 038dd428</td>
<td> <span style="font-family:courier new 00000000</td>
<td> <span style="font-family:courier new 00000000</td>
<td> </td>
</tr>
<tr>
<td>kernel32!BaseThreadStart+34</td>
<td> <span style="font-family:courier new 79ebaf48</td>
<td> <span style="font-family:courier new 038dd428</td>
<td> <span style="font-family:courier new 00000000</td>
<td> </td>
</tr>
</tbody>
</table>
<br/>
<br/>
In ZDSCADToCADService__PID__6168__Date__04_26_2011__Time_11_30_38AM__785__Second_Chance_Exception_C0000005.dmp the module
C:WINDOWSassemblyNativeImages_v2.0.50727_32mscorlibfee8c8ba9b84a7832274adcbfc9d5ca4mscorlib.ni.dll has caused an
access violation exception (0xC0000005) when trying to read from memory location
0x00000020 on thread #x_6168:520543Thread14504 18 <br/>
<table id="x_Table2" border="0" cellspacing="0" cellpadding="0
<tbody>
<tr>
<td>
<a name="x_6168:520543Module Module Information
</td>
</tr>
<tr>
<td> Image Name: </td>
<td>C:WINDOWSassemblyNativeImages_v2.0.50727_32mscorlibfee8c8ba9b84a7832274adcbfc9d5ca4mscorlib.ni.dll</td>
<td> Symbol Type: </td>
<td>PDB</td>
</tr>
<tr>
<td> Base address: </td>
<td>0x790c0000</td>
<td> Time Stamp: </td>
<td>Fri Aug 07 20:28:08 2009</td>
</tr>
<tr>
<td> Checksum: </td>
<td>0x00000000</td>
<td> Comments: </td>
<td>Flavor=Retail</td>
</tr>
<tr>
<td> COM DLL: </td>
<td>False</td>
<td> Company Name: </td>
<td>Microsoft Corporation</td>
</tr>
<tr>
<td> ISAPIExtension: </td>
<td>False</td>
<td> File Description: </td>
<td>Microsoft Common Language Runtime Class Library</td>
</tr>
<tr>
<td> ISAPIFilter: </td>
<td>False</td>
<td> File Version: </td>
<td>2.0.50727.1873 (QFEN-1.050727-1800)</td>
</tr>
<tr>
<td> Managed DLL: </td>
<td>True</td>
<td> Internal Name: </td>
<td>mscorlib.dll</td>
</tr>
<tr>
<td> VB DLL: </td>
<td>False</td>
<td> Legal Copyright: </td>
<td> Microsoft Corporation. All rights reserved.</td>
</tr>
<tr>
<td> Loaded Image Name: </td>
<td>mscorlib.ni.dll</td>
<td> Legal Trademarks: </td>
<td><br/>
</td>
</tr>
<tr>
<td> Mapped Image Name: </td>
<td><br/>
</td>
<td> Original filename: </td>
<td>mscorlib.dll</td>
</tr>
<tr>
<td> Module name: </td>
<td>mscorlib_ni</td>
<td> Private Build: </td>
<td><br/>
</td>
</tr>
<tr>
<td> Single Threaded: </td>
<td>False</td>
<td> Product Name: </td>
<td>Microsoft .NET Framework</td>
</tr>
<tr>
<td> Module Size: </td>
<td><span style="color:saddlebrown 10.92 MBytes</td>
<td> Product Version: </td>
<td>2.0.50727.1873</td>
</tr>
<tr>
<td> Symbol File Name: </td>
<td>c:symcachemscorlib.pdbF69BA4966B6044578A13052F1294D60C1mscorlib.pdb</td>
<td> Special Build: </td>
<td>&</td>
</tr>
</tbody>
</table>

View the full article
 
Back
Top