question

Flicker-5558 avatar image
0 Votes"
Flicker-5558 asked ·

Access Violation clr!MethodTable::MethodData::Release

My application crash randomly. I can't reproduce the issue. I have many dmp files, but I can't find any clue. Could tell me how to solve the issue? Thanks!

The stack trace info as follows:

eax=00000008 ebx=ffffffff ecx=54d2f4e0 edx=00003223 esi=3fb65160 edi=54d2f4e0
eip=71829b70 esp=0093b718 ebp=0093b74c iopl=0 nv up ei ng nz na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010286
clr!MethodTable::MethodData::Release+0x7:
71829b70 f00fc15f04 lock xadd dword ptr [edi+4],ebx ds:002b:54d2f4e4=00000001
Resetting default scope

EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 71829b70 (clr!MethodTable::MethodData::Release+0x00000007)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000001
NumberParameters: 2
Parameter0: 00000001
Parameter1: 54d2f4e4
Attempt to write to address 54d2f4e4

PROCESS_NAME: diyhf.exe

WRITE_ADDRESS: 54d2f4e4

ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%p 0x%p %s

EXCEPTION_CODE_STR: c0000005

EXCEPTION_PARAMETER1: 00000001

EXCEPTION_PARAMETER2: 54d2f4e4

MISSING_CLR_SYMBOL: 0

STACK_TEXT:
0093b71c 7182a5c1 eb95f4ee 0625bd0c 542bbe38 clr!MethodTable::MethodData::Release+0x7
0093b74c 71829bf8 542bbe38 eb95f42a 0625bd0c clr!MethodDataCache::Insert+0x5e
0093b788 71829dfe 00000001 eb95f41a 0625bd0c clr!MethodTable::GetMethodDataHelper+0x15f
0093b7b8 71829bc2 00000001 0625bd0c 0625bd0c clr!MethodTable::GetMethodData+0x14
0093b7d0 7182a128 0625bd0c 0625bd0c eb95fb96 clr!MethodTable::MethodIterator::Init+0x15
0093b834 7182a329 2be5c95a 00000005 1a0fe830 clr!MemberLoader::FindMethod+0x52
0093b8e0 7182f6b1 0093b978 0093b970 0093b938 clr!MemberLoader::GetDescFromMemberRef+0x4c8
0093b994 6f9a138c 0093bee0 00000000 00000000 clr!CEEInfo::resolveToken+0x352
0093b9ac 6f9c47bd 2bc7f6ee 0093bee0 00000002 clrjit!Compiler::impResolveToken+0x48
0093c0ec 6f9a2e6b 19c52e48 a938b87c 19c51a44 clrjit!Compiler::impImportBlockCode+0x2aac
0093c174 6f9a306a 19c52e48 19c51908 0093c4ec clrjit!Compiler::impImportBlock+0x5f
0093c18c 6f9a364f 19c52d88 19c51908 0093c4ec clrjit!Compiler::impImport+0x235
0093c1a8 6f9a4276 0093c390 0093c5f4 00103810 clrjit!Compiler::compCompile+0x62
0093c1e8 6f9a43fc 0093c574 0093c4ec 0093c390 clrjit!Compiler::compCompileHelper+0x32f
0093c260 6f9a45c8 1a0fe830 0093c574 0093c4ec clrjit!Compiler::compCompile+0x2ab
0093c360 6f9a377d 0093c574 0093c4ec 0093c390 clrjit!jitNativeCode+0x1f6
0093c3ac 7182ccf3 6fa236a0 0093c574 0093c4ec clrjit!CILJit::compileMethod+0x7d
0093c408 7182cdcb 0093c4ec 0093c63c 0093c5f4 clr!invokeCompileMethodHelper+0x10b
0093c450 7182ce28 0093c4ec 0093c63c 0093c5f4 clr!invokeCompileMethod+0x3d
0093c4bc 7182d0d7 0093c4ec 0093c63c 0093c5f4 clr!CallCompileMethodWithSEHWrapper+0x39
0093c87c 7182cadc 00805c10 00000000 eb958ad2 clr!UnsafeJitFunction+0x431
0093c970 7182e733 4bd217a8 00000000 00000000 clr!MethodDesc::MakeJitWorker+0x40b
0093c9e8 7181f7bf 00000000 eb9589c6 9d58f8f4 clr!MethodDesc::DoPrestub+0x5f3
0093ca64 7176f4bb 0093ca74 00ef661c 0039604e clr!PreStubWorker+0xe0
0093ca88 224b4fda 00000000 46592238 9d3010bc clr!ThePreStub+0x11
WARNING: Frame IP not in any known module. Following frames may be wrong.
0093caa0 22611987 46592238 0039605d 00000000 0x224b4fda
0093caf0 2261165f 46592238 0039605d 9d556688 0x22611987
0093cb14 226110a8 9d3010bc 00000000 00000000 0x2261165f
0093cb74 1eb51f70 9d554f38 9d553a3c 00000000 0x226110a8
0093cb88 1eb51d40 9d554f38 9d554f38 9d3d9c50 PresentationCore_ni+0x211f70
0093cbf0 1eb50ad9 00000000 9d554f38 0093cc50 PresentationCore_ni+0x211d40
0093cc34 1eb5f6d9 1b4f5d24 0093cc50 20271451 PresentationCore_ni+0x210ad9
0093cc40 20271451 9d3ea13c 00000001 0093cc70 PresentationCore_ni+0x21f6d9
0093cc50 2013481e 9d3ea13c 00000000 00000000 PresentationFramework_ni+0xcf1451
0093cc70 20271b56 9d553680 9d3ea13c 0093cc94 PresentationFramework_ni+0xbb481e
0093cc80 1efc9870 9d553680 9d553680 9d553680 PresentationFramework_ni+0xcf1b56
0093cc94 1f03102d 9d3ea13c 1eb51fae 9d3ea13c PresentationCore_ni+0x689870
0093ccc0 1eb51f20 9d3ea13c 9d54dd80 00000000 PresentationCore_ni+0x6f102d
0093ccd4 1eb51d40 9d553680 9d553680 0093cd34 PresentationCore_ni+0x211f20
0093cd3c 1efce24f 00000001 9d553680 1b4b5628 PresentationCore_ni+0x211d40
0093cd80 1efc95a1 1b4b57f8 9d553680 9d553680 PresentationCore_ni+0x68e24f
0093cd94 1f03102d 9d3ea13c 1eb51fae 9d3ea13c PresentationCore_ni+0x6895a1
0093cdc0 1eb51f20 9d3ea13c 9d54c6a8 00000000 PresentationCore_ni+0x6f102d
0093cdd4 1eb51d40 9d553680 9d553680 9d3d9c50 PresentationCore_ni+0x211f20
0093ce3c 1eb50ad9 00000000 9d553680 00000002 PresentationCore_ni+0x211d40
0093ce80 1eb60339 9d553680 00000000 00000000 PresentationCore_ni+0x210ad9
0093ceac 1eb50a3b 9d3ea13c 0093cf14 1eb79d0d PresentationCore_ni+0x220339
0093ceb8 1eb79d0d 00000001 1b4b55fc 1c1a9550 PresentationCore_ni+0x210a3b
0093cf14 1eb799f9 9d553020 9d3f0da4 0093cf3c PresentationCore_ni+0x239d0d
0093cf24 1eb79953 00000000 00140df6 9d552ff0 PresentationCore_ni+0x2399f9
0093cf3c 1eb7cd1a eb45112c 7176fda4 0093d38c PresentationCore_ni+0x239953
0093cfbc 1f34bb9f 00000000 00000104 00000057 PresentationCore_ni+0x23cd1a
0093d044 1eb4c0bc 1b4b1634 01040057 00000000 PresentationCore_ni+0xa0bb9f
0093d068 1e5fe661 1b4b1634 01040057 00000000 PresentationCore_ni+0x20c0bc
0093d0a4 1e5fe94c 1b4b1634 01040057 00000000 WindowsBase_ni+0xde661
0093d0c4 1e5fee42 00000001 1b1a5670 1b4b0b50 WindowsBase_ni+0xde94c
0093d0dc 1e5fed85 00000001 1b4b161c 00000000 WindowsBase_ni+0xdee42
0093d118 1e5fcf62 00000000 00000001 1b4b161c WindowsBase_ni+0xded85
0093d170 1e5fe4b4 00000001 1b4b161c 9d3f102c WindowsBase_ni+0xdcf62
0093d1b8 249a7273 01040057 00000000 00000202 WindowsBase_ni+0xde4b4
0093d1ec 75e3d9cb 00140df6 00000202 00000000 0x249a7273
0093d218 75e346ea 0621715e 00140df6 00000202 user32!InternalCallWinProc+0x2b
0093d2fc 75e32a1a 0621715e 00000000 00000202 user32!UserCallWinProcCheckWow+0x33a
0093d370 75e327e0 0093d3c8 0093d3b8 1e6174f1 user32!DispatchMessageWorker+0x22a
0093d37c 1e6174f1 0093d3c8 eb45112c 7176fda4 user32!DispatchMessageW+0x10
0093d3b8 1e5fb3d7 526702a0 1b4b0ba0 00140df6 WindowsBase_ni+0xf74f1
0093d400 1e5fb319 9d3010bc 0093d434 205b2e2f WindowsBase_ni+0xdb3d7
0093d40c 205b2e2f 00000000 00000000 00000000 WindowsBase_ni+0xdb319
0093d434 1f8ce40b 9d95348c 0093d48c 2005f332 PresentationFramework_ni+0x1032e2f
0093d440 2005f332 eb45112c 7176fda4 ffffffff PresentationFramework_ni+0x34e40b
0093d4e8 00d8ea31 46592238 0039605d 00000000 PresentationFramework_ni+0xadf332
0093d518 00d8dd17 46592238 0039605d 00000000 0xd8ea31
0093d634 00d8d3d0 519b48cc 0093d68c 00000000 0xd8dd17
0093d658 249aae21 00d89590 1a3ad298 0093d9f0 0xd8d3d0
0093d680 517ce535 1a4c5510 63586288 1a492c98 0x249aae21
0093d694 517cfd59 63586288 0093d8d0 0093d6b4 Utils!ui_webMenuOnItem+0xc5
0093d6a4 517d0805 000004d4 0093d8d0 0093d6c4 Utils!getSzIdByOrder+0xd9
0093d6b4 517d4f0f 0093d6dc 0093d8cc 0093d6d4 Utils!getSzIdByOrder+0xb85
0093d6c4 7a9b0ad6 0093d6dc 0093d8cc 0093d9fc Utils!getSzIdByOrder+0x528f
0093d6d4 7ab55679 000004d4 56b577c4 774d6244 App!CallbackHandler::operator=+0x379fa6
0093d9fc 7aec224c 1a4927e0 638acd38 638acd38 App!MJBAppRun+0x8dd99
0093da14 7a8cc1b1 1a3363dc 0093da30 7af2b839 App!MJBAppRun+0x3fa96c
0093da20 7af2b839 1a4927e0 1a3363dc 0093da48 App!CallbackHandler::operator=+0x295681
0093da30 7af1f7b5 00000000 00000000 1a3363dc App!MJBAppRun+0x463f59
0093da48 7af24526 1a3363dc 0093da60 7af64492 App!MJBAppRun+0x457ed5
0093da54 7af64492 1a3363d8 0093da6c 516df619 App!MJBAppRun+0x45cc46
0093da60 516df619 1a3363d8 0093da94 5167064d App!MJBAppRun+0x49cbb2
0093da6c 5167064d 0093dad3 6357de1c 1a3363b0 Utils!CListener::operator==+0x8559
0093da94 51674d1d 0093dab0 5d85b830 00000000 Utils!ety_setExt+0xd0fd
0093dae0 518daff7 0000273c 5d85b9b8 00000000 Utils!ety_setExt+0x117cd
0093db68 5180c660 4bf00d40 00000000 986f77c4 Utils!utSelector::doContextToolbar+0x2e7
0093db7c 5180d955 0000000c 986f77c4 0093db9c Utils!getLockAndRCMenuState+0x12c0
0093db8c 5181c74f 0093dbc0 986f77c0 0093dbd0 Utils!getLockAndRCMenuState+0x25b5
0093db9c 5d46f484 0093dbc0 75e1cf80 0000000c Utils!BaseObj::SetVoidObj+0x124f
0093dbd0 7aeb511e 00000000 0000000c 56b572ec XTGraph!geos::precision::SimpleGeometryPrecisionReducer::setRemoveCollapsedComponents+0x82662
0093dcd4 7aabf473 0000000c 56b57320 75e1cf80 App!MJBAppRun+0x3ed83e
0093dd18 5d30da33 0000000c 0093dd40 5d99d845 App!JSMessageBoxObject::operator=+0x1082f3
0093dd24 5d99d845 0000000c 0000000c 0000000c XTUIFrame!XTApplication::AppProc+0x23
0093dd40 5da97108 0000000c 71742b5e 00000000 YGE_win32!YGEg::M44GetRotAxisNz+0x1ed61a
0093dd74 5d99e73f 00000001 5dae8754 5dae873c YGE_win32!YGEg::M44GetRotAxisNz+0x2e6edd
0093dd88 5d99e055 00020802 00000780 000003e8 YGE_win32!YGEg::M44GetRotAxisNz+0x1ee514
0093ddd8 5d30f19b 7b9ec41c 00000780 000003e8 YGE_win32!YGEg::M44GetRotAxisNz+0x1ede2a
0093f9ac 7aac3d22 56b55340 0000008a 00c700c0 XTUIFrame!XTApplication::Run+0x63b
0093fd78 7aac78ed 0093fd90 0048255e 00000000 App!JSMessageBoxObject::operator=+0x10cba2
0093fd80 0048255e 00000000 00000000 0093fd98 App!MJBAppRun+0xd
0093fd90 004824ad 0093fde4 004850ba 00480000 diyhf+0x255e
0093fd98 004850ba 00480000 00000000 00c738c9 diyhf+0x24ad
0093fde4 764df989 006b4000 764df970 0093fe50 diyhf+0x50ba
0093fdf4 774b74a4 006b4000 56023a74 00000000 kernel32!BaseThreadInitThunk+0x19
0093fe50 774b7474 ffffffff 774d7364 00000000 ntdll!
_RtlUserThreadStart+0x2f
0093fe60 00000000 00484f8b 006b4000 00000000 ntdll!_RtlUserThreadStart+0x1b

SYMBOL_NAME: clr!MethodTable::MethodData::Release+7

MODULE_NAME: clr

IMAGE_NAME: clr.dll

STACK_COMMAND: ~0s ; .ecxr ; kb

FAILURE_BUCKET_ID: INVALID_POINTER_WRITE_c0000005_clr.dll!MethodTable::MethodData::Release

BUCKET_ID_MODPRIVATE: 1

OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release

OSPLATFORM_TYPE: x86

OSNAME: Windows 10

IMAGE_VERSION: 4.8.4200.0

FAILURE_ID_HASH: {72bc871d-6dd4-902f-b004-e3e199be77e4}

Followup: MachineOwner



0:000> !clrstack
OS Thread Id: 0x3a98 (0)
Child SP IP Call Site
0093ca20 71829b70 [PrestubMethodFrame: 0093ca20] diyhfCommon.B_MoveMent.OperateMove.GetFrontObjectList(diyhfHelpers.O_Product.ObjectRectInfo)
0093ca90 224b4fda WARNING: Unable to verify checksum for diyhfCommon.dll
diyhfCommon.B_MoveMent.OperateMove.CheckFrontBackMoveValue(Int64, Single ByRef)
0093cab0 22611987 WARNING: Unable to verify checksum for diyhfShow.dll
diyhfShow.MoveMentWindow.MoveMethod(Int64)
0093cb00 2261165f diyhfShow.MoveMentWindow.Execute()
0093cb1c 226110a8 diyhfShow.MoveMentWindow.btnOK_Click(System.Object, System.Windows.RoutedEventArgs)
0093cb80 1eb51f70 System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
0093cb94 1eb51d40 System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
0093cc00 1eb50ad9 System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
0093cc3c 1eb5f6d9 System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs)
0093cc48 20271451 System.Windows.Controls.Primitives.ButtonBase.OnClick()
0093cc58 2013481e System.Windows.Controls.Button.OnClick()
0093cc78 20271b56 System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs)
0093cc88 1efc9870 System.Windows.UIElement.OnMouseLeftButtonUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
0093cc9c 1f03102d System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
0093cca8 1eb51fae System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
0093cccc 1eb51f20 System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
0093cce0 1eb51d40 System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
0093cd4c 1efce24f System.Windows.UIElement.ReRaiseEventAs(System.Windows.DependencyObject, System.Windows.RoutedEventArgs, System.Windows.RoutedEvent)
0093cd8c 1efc95a1 System.Windows.UIElement.OnMouseUpThunk(System.Object, System.Windows.Input.MouseButtonEventArgs)
0093cd9c 1f03102d System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(System.Delegate, System.Object)
0093cda8 1eb51fae System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate, System.Object)
0093cdcc 1eb51f20 System.Windows.RoutedEventHandlerInfo.InvokeHandler(System.Object, System.Windows.RoutedEventArgs)
0093cde0 1eb51d40 System.Windows.EventRoute.InvokeHandlersImpl(System.Object, System.Windows.RoutedEventArgs, Boolean)
0093ce4c 1eb50ad9 System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject, System.Windows.RoutedEventArgs)
0093ce88 1eb60339 System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs)
0093ceb4 1eb50a3b System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs, Boolean)
0093cec4 1eb79d0d System.Windows.Input.InputManager.ProcessStagingArea()
0093cf1c 1eb799f9 System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs)
0093cf2c 1eb79953 System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport)
0093cf44 1eb7cd1a System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr, System.Windows.Input.InputMode, Int32, System.Windows.Input.RawMouseActions, Int32, Int32, Int32)
0093cf48 1f34bb9f [InlinedCallFrame: 0093cf48]
0093cfdc 1f34bb9f System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr, Boolean ByRef)
0093d05c 1eb4c0bc System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
0093d080 1e5fe661 MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
0093d0bc 1e5fe94c MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
0093d0cc 1e5fee42 System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
0093d0ec 1e5fed85 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
0093d130 1e5fcf62 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
0093d18c 1e5fe4b4 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
0093d38c 249a7273 [InlinedCallFrame: 0093d38c]
0093d388 1e6174f1 DomainBoundILStubClass.IL_STUB_PInvoke(System.Windows.Interop.MSG ByRef)
0093d38c 1e5fb3d7 [InlinedCallFrame: 0093d38c] MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
0093d3c0 1e5fb3d7 System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
0093d408 1e5fb319 System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
0093d414 205b2e2f System.Windows.Window.ShowHelper(System.Object)
0093d43c 1f8ce40b System.Windows.Window.Show()
0093d448 2005f332 System.Windows.Window.ShowDialog()
0093d44c 00d8ec14 [InlinedCallFrame: 0093d44c]
0093d494 00d8ec14 diyhfShow.OperationShow.MoveMentWindowShow(Int64)
0093d4f8 00d8ea31 WARNING: Unable to verify checksum for diyhfPlugin.dll
diyhfPlugin.Plugin.OnSelectionMove(Int64)
0093d528 00d8dd17 diyhfPlugin.Plugin.OnSysMenu(System.Text.StringBuilder)
0093d63c 00d8d3d0 WARNING: Unable to verify checksum for Adapter.dll
.CAdapter.OnSysMenu(CAdapter, SByte
)
0:000> !pe
Exception object: 1b1a1108
Exception type: System.ExecutionEngineException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131506

dotnet-runtime
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,@Flicker-5558 Can you run this application on other computers? And error c0000005 is the code for an access violation, you should check whether your code is accessing a memory address to which it does not have rights, such as visit n+1 in a length n array.

0 Votes 0 ·

Yes, it also appeared in other computer. I have checked my code and found nothing wrong. If it's triggered by my code, Why crash appears in clr? Thanks for your reply!

0 Votes 0 ·

0 Answers