Access Violation clr! CAssemblyName::Release
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
_This issue has been moved from [a ticket on Developer Community](https://developercommunity2.visualstudio.com/t/Access-Violation-clrCAssemblyName::Rele/1346425)._
---
My application crash randomly. I got the dump file and execute windbg command !VerifyHeap,tells no corruption.
Could you tell me what CAssemblyName::Release has done? Why do it attempt to write to address 30dcc064? What useful info can I get from dump file to help me solve the problem?
Stack trace as follows:
ExceptionAddress: 72c81a3a (clr!CAssemblyName::Release+0x0000000a)
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000001
NumberParameters: 2
Parameter0: 00000001
Parameter1: 30dcc064
Attempt to write to address 30dcc064
eax=72c81820 ebx=00000000 ecx=30dcc058 edx=00000000 esi=ffffffff edi=22862994
eip=72c81a3a esp=006fbbe0 ebp=006fbbe4 iopl=0 nv up ei ng nz na pe nc
cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00210286
clr!CAssemblyName::Release+0xa:
72c81a3a f00fc1710c lock xadd dword ptr [ecx+0Ch],esi ds:002b:30dcc064=00000001 ** Stack trace for last set context - .thread/.cxr resets it # ChildEBP RetAddr Args to Child
00 006fbbe4 72c817b5 30dcc058 a8d1302f 22862850 clr!CAssemblyName::Release+0xa (FPO: [Non-Fpo])
01 006fbc0c 72c952cf a8d1300b 22862994 006fc4e4 clr!BaseWrapper<IActionOnCLREvent ,FunctionBase<IActionOnCLREvent ,&DoNothing<IActionOnCLREvent >,&DoTheRelease<IActionOnCLREvent>,2>,0,&CompareDefault<IActionOnCLREvent >,2>::~BaseWrapper<IActionOnCLREvent ,FunctionBase<IActionOnCLREvent ,&DoNothing<IActionOnCLREvent >,&DoTheRelease<IActionOnCLREvent>,2>,0,&CompareDefault<IActionOnCLREvent *>,2>+0x4a (FPO: [Non-Fpo])
02 006fbc28 72c952fb 72c952f0 006fbc50 72c953fc clr!CIdentityCache::ParsedIdentity::~ParsedIdentity+0x42 (FPO: [Non-Fpo])
03 006fbc34 72c953fc 00000001 00000000 00000001 clr!CIdentityCache::ParsedIdentity::`vector deleting destructor'+0xb (FPO: [Non-Fpo])
04 006fbc50 72c93454 006fc588 3f73a848 a8d148d3 clr!CIdentityCache::CacheIdentity+0x48 (FPO: [Non-Fpo])
05 006fc4f0 72c8b1d4 3f73a848 00000000 006fc568 clr!CAssemblyName::ParseTextualIdentity+0x906 (FPO: [Non-Fpo])
06 006fc504 72c8ae0f 006fc588 a8d14963 006fc890 clr!CAssemblyName::Parse+0x4f (FPO: [Non-Fpo])
07 006fc540 72c8bbf3 006fc568 006fc588 00000001 clr!CreateAssemblyNameObject+0x98 (FPO: [Non-Fpo])
08 006fc798 72d6e435 006fc998 193fc478 1c980000 clr!BaseAssemblySpec::ParseName+0xf1 (FPO: [Non-Fpo])
09 006fc868 72d6e884 193fc478 006fc96c 00000001 clr!AssemblySpec::InitializeSpec+0xb1 (FPO: [Non-Fpo])
0a 006fc980 6fc8d870 00000000 00000000 138730db clr!AssemblyNameNative::Init+0xd7 (FPO: [Non-Fpo])
WARNING: Unable to verify checksum for PresentationFramework.ni.dll
WARNING: Stack unwind information not available. Following frames may be wrong.
0b 006fc99c 6608f405 00000001 00000001 8526b024 mscorlib_ni+0x40d870
0c 006fc9cc 6608f23e 8526b024 8526a458 8526b700 PresentationFramework_ni+0x31f405
0d 006fc9e0 6608fd87 00000000 00000000 00000000 PresentationFramework_ni+0x31f23e
0e 006fca14 6608aac8 00000000 85276b2c 00000000 PresentationFramework_ni+0x31fd87
0f 006fca34 6609006e 1c9888c8 0000004a 852768ec PresentationFramework_ni+0x31aac8
10 006fca4c 66089d18 0000004a 00000001 0000235f PresentationFramework_ni+0x32006e
11 006fca64 6608d1d7 00000000 852768ec 00000000 PresentationFramework_ni+0x319d18
12 006fcabc 6608d013 8526a440 8526a458 852768ec PresentationFramework_ni+0x31d1d7
13 006fcae0 6608c80f 1c9855a0 8526aa10 6607f681 PresentationFramework_ni+0x31d013
WARNING: Unable to verify checksum for System.Xaml.ni.dll
14 006fcb00 682ea84f 85276828 006fcb40 682ea7b6 PresentationFramework_ni+0x31c80f
15 006fcb0c 682ea7b6 85276828 8526dc4c 8526aa8c System_Xaml_ni+0x7a84f
16 006fcb40 682e366e 85276828 1c984868 8526dc4c System_Xaml_ni+0x7a7b6
17 006fcb6c 682ea43f 85276828 1c984868 8526ab3c System_Xaml_ni+0x7366e
18 006fcba0 682e902e 00000001 85276828 1c984868 System_Xaml_ni+0x7a43f
19 006fcbe0 682e879b 44991da4 85274238 00000000 System_Xaml_ni+0x7902e
1a 006fcc08 682e7604 8526a5dc 8526a9b0 006fcc80 System_Xaml_ni+0x7879b
1b 006fcc18 6607992e 8526abb0 ffffffff 8526da70 System_Xaml_ni+0x77604
1c 006fcc80 660972db 00000000 8526a9b0 8526aa10 PresentationFramework_ni+0x30992e
1d 006fccd8 66149df4 852675c0 8526a964 00000000 PresentationFramework_ni+0x3272db
1e 006fccfc 66149abe 852675c0 8526a894 00000000 PresentationFramework_ni+0x3d9df4
1f 006fcd4c 660dfe8d 00000001 00000000 00000002 PresentationFramework_ni+0x3d9abe
20 006fcd8c 66070ff7 8526a144 85269c0c 1c641228 PresentationFramework_ni+0x36fe8d
21 006fcdb8 660e82cf 006fce1c 00000000 00000000 PresentationFramework_ni+0x300ff7
22 006fcde4 66105c98 006fce1c 00000000 00000000 PresentationFramework_ni+0x3782cf
23 006fce44 661058a6 4498ec40 851ef7b8 6607f681 PresentationFramework_ni+0x395c98
24 006fce64 682ea84f 852675c0 006fcea4 682ea7b6 PresentationFramework_ni+0x3958a6
25 006fce70 682ea7b6 852675c0 85267444 72c5f09f System_Xaml_ni+0x7a84f
26 006fcea4 682e366e 852675c0 1cfce054 85267444 System_Xaml_ni+0x7a7b6
27 006fced0 682ea43f 852675c0 1cfce054 851f1cc8 System_Xaml_ni+0x7366e
28 006fcf04 682e902e 00000001 852675c0 1cfce054 System_Xaml_ni+0x7a43f
29 006fcf44 682e405b 851ef7b8 1cfce054 006fcf7c System_Xaml_ni+0x7902e
2a 006fcf54 682e8832 00000000 85267434 00000000 System_Xaml_ni+0x7405b
2b 006fcf7c 682e7604 851ef384 851ef758 006fcff4 System_Xaml_ni+0x78832
2c 006fcf8c 6607992e 851ef958 ffffffff 851f1910 System_Xaml_ni+0x77604
2d 006fcff4 660972db 00000000 851ef758 851ef7b8 PresentationFramework_ni+0x30992e
2e 006fd04c 66149df4 851ec7b0 851ef70c 00000000 PresentationFramework_ni+0x3272db
2f 006fd070 66149abe 851ec7b0 851ef63c 00000000 PresentationFramework_ni+0x3d9df4
30 006fd0c0 660dfe8d 00000001 00000000 851ef1a0 PresentationFramework_ni+0x3d9abe
31 006fd100 66070ff7 851eeeec 851eea44 1c641228 PresentationFramework_ni+0x36fe8d
32 006fd12c 660e82cf 006fd190 00000000 00000000 PresentationFramework_ni+0x300ff7
33 006fd158 66105c98 006fd190 00000000 00000000 PresentationFramework_ni+0x3782cf
34 006fd1b8 661058a6 4498ec40 851e9ea8 6607f681 PresentationFramework_ni+0x395c98
35 006fd1d8 682ea84f 851ec7b0 006fd218 682ea7b6 PresentationFramework_ni+0x3958a6
36 006fd1e4 682ea7b6 851ec7b0 851ec550 1cfce054 System_Xaml_ni+0x7a84f
37 006fd218 682ea43f 851ec7b0 1cfce054 851ec438 System_Xaml_ni+0x7a7b6
38 006fd24c 682e902e 00000001 851ec7b0 1cfce054 System_Xaml_ni+0x7a43f
39 006fd28c 682e405b 851e9ea8 1cfce054 006fd2c4 System_Xaml_ni+0x7902e
3a 006fd29c 682e8832 00000000 851ec540 00000000 System_Xaml_ni+0x7405b
3b 006fd2c4 682e7604 851e9a24 851e9e48 006fd33c System_Xaml_ni+0x78832
3c 006fd2d4 6607992e 851ea02c ffffffff 851ead44 System_Xaml_ni+0x77604
3d 006fd33c 660972db 00000000 851e9e48 851e9ea8 PresentationFramework_ni+0x30992e
3e 006fd394 66149df4 851e77e0 851e9dfc 851e742c PresentationFramework_ni+0x3272db
3f 006fd3b8 66149b06 851e77e0 00000000 851e742c PresentationFramework_ni+0x3d9df4
40 006fd408 660df72e 00000001 851e742c 851e8c40 PresentationFramework_ni+0x3d9b06
41 006fd434 18e4f89f 851e742c 450b2238 006fd45c PresentationFramework_ni+0x36f72e
42 006fd444 18e4f775 18e4f758 450b2238 851e742c 0x18e4f89f
43 006fd45c 18e4f695 000000c8 0000015e 49d145a0 0x18e4f775
44 006fd49c 06860ba8 1c641d58 00000000 00000000 0x18e4f695
45 006fd560 72c5f036 00000000 00000000 193fc408 0x6860ba8
46 006fd574 72c622da 006fd8dc 006fd5b8 72d523d0 clr!CallDescrWorkerInternal+0x34
47 006fd5c8 72c77741 a8d15a2b 00000001 00000000 clr!CallDescrWorkerWithHandler+0x6b (FPO: [Non-Fpo])
48 006fd608 72c77846 006fd7d4 1c641d58 72c96f24 clr!CallDescrWorkerReflectionWrapper+0x55 (FPO: [Non-Fpo])
49 006fd914 6fc88589 00000000 8528f8e0 6fca6021 clr!RuntimeMethodHandle::InvokeMethod+0x838 (FPO: [Non-Fpo])
4a 006fd938 6fc8809a 8528f91c 8512d200 00000001 mscorlib_ni+0x408589
4b 006fd964 139430f0 00000000 8512d200 00000000 mscorlib_ni+0x40809a
4c 006fd9d4 2169fe81 8512d200 006fd9e4 00000000 0x139430f0
4d 006fd9f0 1878d1e6 00000000 00000000 00beb040 0x2169fe81
Child SP IP Call Site
006fc904 72c81a3a [HelperMethodFrame_1OBJ: 006fc904] System.Reflection.AssemblyName.nInit(System.Reflection.RuntimeAssembly ByRef, Boolean, Boolean)
006fc990 6fc8d870 System.Reflection.AssemblyName..ctor(System.String)
006fc9a4 6608f405 System.Windows.Baml2006.Baml2006SchemaContext.ResolveAssembly(BamlAssembly)
006fc9d4 6608f23e System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlTypeToType(BamlType)
006fc9e8 6608fd87 System.Windows.Baml2006.Baml2006SchemaContext.ResolveBamlType(BamlType, Int16)
006fca20 6608aac8 System.Windows.Baml2006.Baml2006SchemaContext.GetXamlType(Int16)
006fca3c 6609006e System.Windows.Baml2006.Baml2006Reader.Process_PropertyTypeReference()
006fca54 66089d18 System.Windows.Baml2006.Baml2006Reader.Process_OneBamlRecord()
006fca6c 6608d1d7 System.Windows.Baml2006.Baml2006Reader.ReadKeys()
006fcac4 6608d013 System.Windows.ResourceDictionary.SetDeferrableContent(System.Windows.DeferrableContent)
006fcae8 6608c80f System.Windows.Baml2006.WpfSharedBamlSchemaContext+c.b_297_0(System.Object, System.Object)
006fcaf8 6607f681 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(System.Object, System.Object)
006fcb0c 682ea84f MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Xaml.XamlMember, System.Object, System.Object)
006fcb1c 682ea7b6 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)
006fcb50 682e366e MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)
006fcb7c 682ea43f System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(MS.Internal.Xaml.Context.ObjectWriterContext, System.Xaml.XamlMember, System.Object, Boolean)
006fcbb4 682e902e System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(MS.Internal.Xaml.Context.ObjectWriterContext)
006fcbe8 682e879b System.Xaml.XamlObjectWriter.WriteEndMember()
006fcc10 682e7604 System.Xaml.XamlWriter.WriteNode(System.Xaml.XamlReader)
006fcc20 6607992e System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack`1, System.Windows.Markup.IStyleConnector)
006fcca4 660972db System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
006fccf0 66149df4 System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
006fcd10 66149abe System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
006fcd5c 660dfe8d System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
006fcd94 66070ff7 MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(System.IO.Stream, System.Uri, Boolean, Boolean, Boolean, Boolean, System.Windows.Markup.XamlReader ByRef)
006fcdd4 660e82cf MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(System.IO.Stream, MS.Internal.ContentType, System.Uri, Boolean, Boolean, Boolean, Boolean, System.Windows.Markup.XamlReader ByRef)
006fce04 66105c98 System.Windows.ResourceDictionary.set_Source(System.Uri)
006fce4c 661058a6 System.Windows.Baml2006.WpfSharedBamlSchemaContext+c.b342_0(System.Object, System.Object)
006fce5c 6607f681 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(System.Object, System.Object)
006fce70 682ea84f MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Xaml.XamlMember, System.Object, System.Object)
006fce80 682ea7b6 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)
006fceb4 682e366e MS.Internal.Xaml.Runtime.PartialTrustTolerantRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)
006fcee0 682ea43f System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(MS.Internal.Xaml.Context.ObjectWriterContext, System.Xaml.XamlMember, System.Object, Boolean)
006fcf18 682e902e System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(MS.Internal.Xaml.Context.ObjectWriterContext)
006fcf4c 682e405b System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(MS.Internal.Xaml.Context.ObjectWriterContext)
006fcf5c 682e8832 System.Xaml.XamlObjectWriter.WriteEndMember()
006fcf84 682e7604 System.Xaml.XamlWriter.WriteNode(System.Xaml.XamlReader)
006fcf94 6607992e System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack`1, System.Windows.Markup.IStyleConnector)
006fd018 660972db System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
006fd064 66149df4 System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
006fd084 66149abe System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
006fd0d0 660dfe8d System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
006fd108 66070ff7 MS.Internal.AppModel.AppModelKnownContentFactory.BamlConverter(System.IO.Stream, System.Uri, Boolean, Boolean, Boolean, Boolean, System.Windows.Markup.XamlReader ByRef)
006fd148 660e82cf MS.Internal.AppModel.MimeObjectFactory.GetObjectAndCloseStream(System.IO.Stream, MS.Internal.ContentType, System.Uri, Boolean, Boolean, Boolean, Boolean, System.Windows.Markup.XamlReader ByRef)
006fd178 66105c98 System.Windows.ResourceDictionary.set_Source(System.Uri)
006fd1c0 661058a6 System.Windows.Baml2006.WpfSharedBamlSchemaContext+c.b_342_0(System.Object, System.Object)
006fd1d0 6607f681 System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(System.Object, System.Object)
006fd1e4 682ea84f MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Xaml.XamlMember, System.Object, System.Object)
006fd1f4 682ea7b6 MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(System.Object, System.Xaml.XamlMember, System.Object)
006fd228 682ea43f System.Xaml.XamlObjectWriter.Logic_ApplyPropertyValue(MS.Internal.Xaml.Context.ObjectWriterContext, System.Xaml.XamlMember, System.Object, Boolean)
006fd260 682e902e System.Xaml.XamlObjectWriter.Logic_DoAssignmentToParentProperty(MS.Internal.Xaml.Context.ObjectWriterContext)
006fd294 682e405b System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(MS.Internal.Xaml.Context.ObjectWriterContext)
006fd2a4 682e8832 System.Xaml.XamlObjectWriter.WriteEndMember()
006fd2cc 682e7604 System.Xaml.XamlWriter.WriteNode(System.Xaml.XamlReader)
006fd2dc 6607992e System.Windows.Markup.WpfXamlLoader.TransformNodes(System.Xaml.XamlReader, System.Xaml.XamlObjectWriter, Boolean, Boolean, Boolean, System.Xaml.IXamlLineInfo, System.Xaml.IXamlLineInfoConsumer, MS.Internal.Xaml.Context.XamlContextStack`1, System.Windows.Markup.IStyleConnector)
006fd360 660972db System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
006fd3ac 66149df4 System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
006fd3cc 66149b06 System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
006fd418 660df72e System.Windows.Application.LoadComponent(System.Object, System.Uri)
Exception object: 1c641108
Exception type: System.ExecutionEngineException
Message: <none>
InnerException: <none>
StackTrace (generated):
<none>
StackTraceString: <none>
HResult: 80131506
---
### Original Comments
#### May Lei [MSFT] on 2/24/2021, 01:18 AM:
Thank you for your feedback! In order for us to investigate this further, could you please provide repro steps, a more detailed description of the faulty behavior and the actions you were taking when the issue appeared to help us better understand this scenario? It would be very helpful if you could provide some screenshots of this problem.
We look forward to hearing from you!
#### Jiang Liu on 2/24/2021, 01:29 AM:
Hi May Lei, My application is developed by C#, target on .net framework 4.5.1. I have the crash dump file. What info do u want?
#### Feedback Bot on 2/24/2021, 06:24 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
#### May Lei [MSFT] on 2/25/2021, 01:56 AM:
Thank you for your feedback!
In order to investigate this issue further, would you please help us capture a process dump for Visual Studio?
• Close any existing Task Manager instances you have running.
• Launch Task Manager
• If you are using a 32-bit OS: Launch from %WINDIR%\system32\Taskmgr.exe
• If you are on a 64-bit OS: Launch from %WINDIR%\syswow64\taskmgr.exe
• Find the problematic process in the list
• Please use Details tab if you’re on Windows 10
• Right click the process and select ‘Create dump file’
• ZIP the resulting file
• You can reply to this feedback and attach the DMP file using the attach button.
We look forward to hearing from you!
#### Jiang Liu on 2/25/2021, 02:42 AM:
(private comment, text removed)
#### Feedback Bot on 2/25/2021, 05:59 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
#### Jiang Liu on 3/3/2021, 05:56 PM:
Hi May Lei,
Do you have access to my private attachment in last reply? if no, please tell me. Thank you!
#### May Lei [MSFT] on 3/3/2021, 10:14 PM:
(private comment, text removed)
#### Feedback Bot on 5/31/2021, 08:23 PM:
I detected that this issue hasn’t received a lot of activity, votes, or comments in the past 90 days. Based on this, the issues severity and affected area, it’s my experience that this issue is unlikely to get fixed. To improve the situation, consider following best practices for quality problem reports, and giving us more details on how this issue is impacting you.
#### Jiang Liu on 5/31/2021, 11:04 PM:
This issue cause users of my software can’t work normally. Please help!
---
### Original Solutions
(no solutions)
Contributor guide
Assessment
This issue has not been assessed yet.