Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Application crashes on the main form constructor call deep inside .Net framework

$
0
0

One of our customers experiences a problem with our GUI app. It crashes on start during main Form initialization somewhere inside .Net Framework. This exception cannot be cought by standard .Net try-catch handler.

I turned off all 3-rd party modules that were loaded to application on this machine, and got same result, so suppose the problem is somewhere in .Net depths

I't Windows 7 x64, .Net 2.0. Mscorwks.dll  FileVersion: 2.0.50727.5466 (Win7SP1GDR.050727-5400)

The following is the callstack under WinDbg:

(1628.fb8): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll - 
mscorwks!CompareAssemblyIdentity+0x3f6b3:
000007fe`ec4b9083 0fb64306        movzx   eax,byte ptr [rbx+6] ds:000007ff`1b5f8ab4=??


0:000> .ecxr
rax=00000000002ec9e8 rbx=000007ff1aa78aae rcx=000007ff1aa78aae
rdx=000007fee9848d30 rsi=00000000002ecbd8 rdi=000007fee9848d30
rip=000007fef9719083 rsp=00000000002ec500 rbp=0000000000000000
 r8=0000000000000000  r9=00000000002eca30 r10=0000000000000005
r11=000007fee974dd88 r12=00000000002ece68 r13=00000000002ece78
r14=0000000000da5d70 r15=00000000002ece70
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00010246
mscorwks!MethodDesc::FindOrCreateAssociatedMethodDesc+0x43:
000007fe`f9719083 0fb64306        movzx   eax,byte ptr [rbx+6] ds:000007ff`1aa78ab4=??


0:000> !clrstack
OS Thread Id: 0x1d38 (0)
Child-SP         RetAddr          Call Site
00000000002ece30 000007fef892242a System.RuntimeType.CreateInstanceSlow(Boolean, Boolean)
00000000002eceb0 000007fef890182f System.RuntimeType.CreateInstanceImpl(Boolean, Boolean, Boolean)
00000000002ecf40 000007fef8922e21 System.Activator.CreateInstance(System.Type, Boolean)
00000000002ecf80 000007fef7ab3925 System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])
00000000002ed060 000007fef7ab365a System.SecurityUtils.SecureCreateInstance(System.Type, System.Object[])
00000000002ed0c0 000007fef7ab2a39 System.ComponentModel.ReflectTypeDescriptionProvider.CreateInstance(System.Type, System.Type)
00000000002ed120 000007fef7ab2621 System.ComponentModel.ReflectTypeDescriptionProvider+ReflectedTypeData.GetConverter(System.Object)
00000000002ed1a0 000007fef7eab2ad System.ComponentModel.TypeDescriptor+TypeDescriptionNode+DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetConverter()
00000000002ed1f0 000007fee9634ae0 System.ComponentModel.TypeDescriptor.GetConverter(System.Object)
00000000002ed220 000007fef986eb52 System.Windows.Forms.TableLayoutSettings..ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
00000000002ed9e0 000007fef899533c System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
00000000002edb30 000007fef8995173 System.Runtime.Serialization.ObjectManager.FixupSpecialObject(System.Runtime.Serialization.ObjectHolder)
00000000002edbd0 000007fef899031c System.Runtime.Serialization.ObjectManager.DoFixups()
00000000002edc30 000007fef898ffb6 System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
00000000002edcf0 000007fef9335ea3 System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)
00000000002edd90 000007fef8920e0d System.Resources.ResourceReader.DeserializeObject(Int32)
00000000002eddf0 000007fef902052b System.Resources.ResourceReader.LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)
00000000002edeb0 000007fef90206cd System.Resources.ResourceReader+ResourceEnumerator.get_Entry()
00000000002edf40 000007fef7eb44e4 System.Resources.ResourceReader+ResourceEnumerator.get_Current()
00000000002edf80 000007fef7eb43f6 System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)
00000000002ee030 000007fef7eb43f6 System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)
00000000002ee0e0 000007fef7eb46fd System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)
00000000002ee190 000007ff00373d47 System.ComponentModel.ComponentResourceManager.ApplyResources(System.Object, System.String, System.Globalization.CultureInfo)
00000000002ee280 000007ff001af341 CB.Controls.PlanControl.InitializeComponent()
00000000002ee5a0 000007ff001af177 CB.Controls.PlanControl..ctor()
00000000002ee630 000007ff001af0b3 CB.BackupPlanUIClass.CreatePlanControl()
00000000002ee680 000007ff001ae7db CB.BasePlanUIClass.GetPlanControl(bool)
00000000002ee6d0 000007ff001aac02 CB.Controls.Pages.BackupPlansPage.MyInitialize()
00000000002ee730 000007ff001a9259 CB.Controls.MainControl..ctor()
00000000002ee780 000007ff0019c9ea CB.ConsoleForm.MyInitializeComponent()
00000000002ee810 000007ff00170c15 CB.Program.RunConsoleForm()
00000000002ee840 000007fef986eb52 CB.Program.Main(string[])

0:000> !dumpstack
OS Thread Id: 0x1d38 (0)
Child-SP         RetAddr          Call Site
00000000002e9db8 000007fefe2710dc ntdll!ZwWaitForSingleObject+0xa
00000000002e9dc0 000007fef9834edd KERNELBASE!WaitForSingleObjectEx+0x79
00000000002e9e60 000007fef98350d2 mscorwks!ClrWaitForSingleObject+0x2d
00000000002e9eb0 000007fef982b518 mscorwks!RunWatson+0x1ca
00000000002ea440 000007fef9c4c31f mscorwks!DoFaultReportWorker+0x79c
00000000002eac90 000007fef985f52f mscorwks!DoFaultReport+0x9f
00000000002ead00 000007fef9c6c9a9 mscorwks!WatsonLastChance+0x47
00000000002ead70 000007fef9c6ccbe mscorwks!EEPolicy::LogFatalError+0x2f9
00000000002eb4f0 000007fef97b659d mscorwks!EEPolicy::HandleFatalError+0x6e
00000000002eb540 000007fef977b3e0 mscorwks!CLRVectoredExceptionHandlerPhase3+0xcd
00000000002eb580 000007fef977b367 mscorwks!CLRVectoredExceptionHandlerPhase2+0x30
00000000002eb5f0 000007fef97b6d66 mscorwks!CLRVectoredExceptionHandler+0xff
00000000002eb670 0000000077aca59f mscorwks!CLRVectoredExceptionHandlerShim+0x42
00000000002eb6b0 0000000077ac8e42 ntdll!RtlpCallVectoredHandlers+0xa8
00000000002eb720 0000000077b01278 ntdll!RtlDispatchException+0x22
00000000002ebe00 000007fef9719083 ntdll!KiUserExceptionDispatcher+0x2e
00000000002ec500 000007fef96cc004 mscorwks!MethodDesc::FindOrCreateAssociatedMethodDesc+0x43
00000000002ec9f0 000007fef9cfc016 mscorwks!MethodTable::GetDefaultConstructor+0x84
00000000002eca60 000007fef89224d2 mscorwks!RuntimeTypeHandle::CreateInstance+0x406
00000000002ece30 000007fef892242a mscorlib_ni!System.RuntimeType.CreateInstanceSlow(Boolean, Boolean)+0x92
00000000002eceb0 000007fef890182f mscorlib_ni!System.RuntimeType.CreateInstanceImpl(Boolean, Boolean, Boolean)+0x12a
00000000002ecf40 000007fef8922e21 mscorlib_ni!System.Activator.CreateInstance(System.Type, Boolean)+0x4f
00000000002ecf80 000007fef7ab3925 mscorlib_ni!System.RuntimeType.CreateInstanceImpl(System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo, System.Object[])+0x381
00000000002ed060 000007fef7ab365a System_ni!System.SecurityUtils.SecureCreateInstance(System.Type, System.Object[])+0x125
00000000002ed0c0 000007fef7ab2a39 System_ni!System.ComponentModel.ReflectTypeDescriptionProvider.CreateInstance(System.Type, System.Type)+0x7a
00000000002ed120 000007fef7ab2621 System_ni!System.ComponentModel.ReflectTypeDescriptionProvider+ReflectedTypeData.GetConverter(System.Object)+0x229
00000000002ed1a0 000007fef7eab2ad System_ni!System.ComponentModel.TypeDescriptor+TypeDescriptionNode+DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetConverter()+0x51
00000000002ed1f0 000007fee9634ae0 System_ni!System.ComponentModel.TypeDescriptor.GetConverter(System.Object)+0x1d
00000000002ed220 000007fef986eb52 System_Windows_Forms_ni!System.Windows.Forms.TableLayoutSettings..ctor(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)+0x40
00000000002ed260 000007fef96ddea3 mscorwks!CallDescrWorker+0x82
00000000002ed2c0 000007fef9c4a841 mscorwks!CallDescrWorkerWithHandler+0xd3
00000000002ed360 000007fef96b267d mscorwks!MethodDesc::CallDescr+0x2b1
00000000002ed5b0 000007fef9cc682f mscorwks!CNativeImageAssembly::AddDependentAssembly+0x109
00000000002ed6a0 000007fef8995624 mscorwks!RuntimeMethodHandle::SerializationInvoke+0x1cf
00000000002ed9e0 000007fef899533c mscorlib_ni!System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(System.Object, System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)+0x294
00000000002edb30 000007fef8995173 mscorlib_ni!System.Runtime.Serialization.ObjectManager.FixupSpecialObject(System.Runtime.Serialization.ObjectHolder)+0x7c
00000000002edbd0 000007fef899031c mscorlib_ni!System.Runtime.Serialization.ObjectManager.DoFixups()+0xe3
00000000002edc30 000007fef898ffb6 mscorlib_ni!System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(System.Runtime.Remoting.Messaging.HeaderHandler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)+0x17c
00000000002edcf0 000007fef9335ea3 mscorlib_ni!System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(System.IO.Stream, System.Runtime.Remoting.Messaging.HeaderHandler, Boolean, Boolean, System.Runtime.Remoting.Messaging.IMethodCallMessage)+0x146
00000000002edd90 000007fef8920e0d mscorlib_ni!System.Resources.ResourceReader.DeserializeObject(Int32)+0x9a6513
00000000002eddf0 000007fef902052b mscorlib_ni!System.Resources.ResourceReader.LoadObjectV2(Int32, System.Resources.ResourceTypeCode ByRef)+0x5d
00000000002edeb0 000007fef90206cd mscorlib_ni!System.Resources.ResourceReader+ResourceEnumerator.get_Entry()+0xfb
00000000002edf40 000007fef7eb44e4 mscorlib_ni!System.Resources.ResourceReader+ResourceEnumerator.get_Current()+0x1d
00000000002edf80 000007fef7eb43f6 System_ni!System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)+0x1a4
00000000002ee030 000007fef7eb43f6 System_ni!System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)+0xb6
00000000002ee0e0 000007fef7eb46fd System_ni!System.ComponentModel.ComponentResourceManager.FillResources(System.Globalization.CultureInfo, System.Resources.ResourceSet ByRef)+0xb6
00000000002ee190 000007ff00373d47 System_ni!System.ComponentModel.ComponentResourceManager.ApplyResources(System.Object, System.String, System.Globalization.CultureInfo)+0xcd
00000000002ee280 000007ff001af341 CB!CB.Controls.PlanControl.InitializeComponent()+0x907
00000000002ee5a0 000007ff001af177 CB!CB.Controls.PlanControl..ctor()+0x81
00000000002ee630 000007ff001af0b3 CB!CB.BackupPlanUIClass.CreatePlanControl()+0x37
00000000002ee680 000007ff001ae7db CB!CB.BasePlanUIClass.GetPlanControl(Boolean)+0x53
00000000002ee6d0 000007ff001aac02 CB!CB.Controls.Pages.BackupPlansPage.MyInitialize()+0xeb
00000000002ee730 000007ff001a9259 CB!CB.Controls.MainControl..ctor()+0x142
00000000002ee780 000007ff0019c9ea CB!CB.ConsoleForm.MyInitializeComponent()+0xa9
00000000002ee810 000007ff00170c15 CB!CB.Program.RunConsoleForm()+0x3a
00000000002ee840 000007fef986eb52 CB!CB.Program.Main(System.String[])+0xac5
00000000002eead0 000007fef96ddea3 mscorwks!CallDescrWorker+0x82
00000000002eeb20 000007fef9c4a841 mscorwks!CallDescrWorkerWithHandler+0xd3
00000000002eebc0 000007fef97b998a mscorwks!MethodDesc::CallDescr+0x2b1
00000000002eee00 000007fef97dd288 mscorwks!ClassLoader::RunMain+0x292
00000000002ef060 000007fef9d36e4d mscorwks!Assembly::ExecuteMainMethod+0xbc
00000000002ef350 000007fef97ea40b mscorwks!SystemDomain::ExecuteMainMethod+0x47d
00000000002ef920 000007fef97cd02c mscorwks!ExecuteEXE+0x47
00000000002ef970 000007fef9f574e5 mscorwks!CorExeMain+0xac
00000000002ef9d0 ffffffffffffffff mscoreei!CorExeMain+0xe0
00000000002ef9d8 0000000000da5d70 ffffffffffffffff
00000000002ef9e0 0000000000000000 0000000000da5d70
I'd submit a bug to Connect, but it doesn't accept .Net v2.0 issues.


Sincerely,

IP



Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>