Access Violation in dotnet application

G

Guest

I've got a dotnet (v1.1) windows application running on windows 2000sp4.
Some things this applications would stop running, so I've run it with adplus
in crush mode.
I've attached the stack dump from the adplus dump below.
How do I find out from this dump what the problem is?

The strange thing is that, as far as I can see, the application has stopped
(no more activity in the application log, and a timer that was supposed to
update a file every 5 minutes has stopped working ), but the application did
NOT release a tcp port it was listening on.
Can this happen?

Thanks
Nadav.

======== Stack dump =========

0:000> !DumpStack
Thread 0
Current frame: fusion!_alloca_probe+0x25
ChildEBP RetAddr Caller,Callee
0756264c 008b58f9 fusion!CIniReader::DoesExist+0xd, calling
fusion!_alloca_probe
07562654 008b5b01 fusion!CHistoryAssembly::Init+0xa4, calling
fusion!CIniReader::DoesExist
07562688 008b5bcb fusion!CHistoryAssembly::Create+0x7a, calling
fusion!CHistoryAssembly::Init
075626c0 008b5c22 fusion!LookupHistoryAssemblyInternal+0x25, calling
fusion!CHistoryAssembly::Create
075626f0 008b47b1 fusion!CBindHistory::GetAssemblyStatus+0x4c, calling
fusion!LookupHistoryAssemblyInternal
07562758 008b8012 fusion!CBindHistory::~CBindHistory+0x9c, calling
fusion!CBindHistory::GetAssemblyStatus
07562784 008b38ce fusion!CBindHistory::`vector deleting destructor'+0xb,
calling fusion!CBindHistory::~CBindHistory
07562790 008b7c5c fusion!CApplicationContext::~CApplicationContext+0xf9
075627bc 008b7c02 fusion!CApplicationContext::`scalar deleting
destructor'+0xb, calling fusion!CApplicationContext::~CApplicationContext
075627c8 008b78ce fusion!CApplicationContext::Release+0x23, calling
fusion!CApplicationContext::`scalar deleting destructor'
075627dc 792a49b6 mscorwks!BaseDomain::ClearFusionContext+0x13
075627e8 792a572a mscorwks!BaseDomain::ReleaseFusionInterfaces+0x3c, calling
mscorwks!BaseDomain::ClearFusionContext
07562804 7924270c mscorwks!AppDomain::ReleaseFusionInterfaces+0xf, calling
mscorwks!BaseDomain::ReleaseFusionInterfaces
0756280c 7924aad1 mscorwks!SystemDomain::ReleaseFusionInterfaces+0x26,
calling mscorwks!AppDomain::ReleaseFusionInterfaces
07562838 79243912 mscorwks!DllMain+0xde, calling
mscorwks!ReleaseFusionInterfaces
0756296c 79513737 mscorsn!DllMain+0x119, calling
mscorsn!__security_check_cookie
07562a24 79515047 mscorsn!_RTC_Terminate+0x43, calling mscorsn!_SEH_epilog
07562a48 7c34218f msvcr71!free+0xc8, calling msvcr71!_SEH_epilog
07562a70 791c03f3 mscorwks!_DllMainCRTStartup+0x71, calling mscorwks!DllMain
07562b90 7939d0c7 mscorwks!Debugger::BlockAndReleaseTSLIfNecessary+0x65,
calling mscorwks!Thread::SetDebugCantStop
07562bc0 793a3736 mscorwks!Debugger::LastChanceManagedException+0xb6,
calling mscorwks!Debugger::SendException
07562bd8 792c44d5 mscorwks!RootImageType+0xa7, calling
mscorwks!RootImageType+0x10
07562c08 792540b4 mscorwks!GetPrevSEHRecord+0x791, calling mscorwks!FailFast
07562c3c 7923870d mscorwks!COMPlusFrameHandler+0x3d, calling
mscorwks!GetPrevSEHRecord+0x56d
07562f14 791b3b7f mscorwks!GCHeap::Alloc+0x97, calling
mscorwks!__security_check_cookie
07562f28 791b452d mscorwks!gc_heap::allocate_more_space+0x3f0, calling
mscorwks!gc_heap::adjust_limit_clr
07562f34 791e0153 mscorwks!CFinalize::RegisterForFinalization+0x19, calling
mscorwks!ExchangeMP
07562f90 791b3b7f mscorwks!GCHeap::Alloc+0x97, calling
mscorwks!__security_check_cookie
07562fd0 791b3b7f mscorwks!GCHeap::Alloc+0x97, calling
mscorwks!__security_check_cookie
07563014 791b5e2e mscorwks!SigPointer::GetTypeHandle+0x189, calling
mscorwks!ClassLoader::LoadTypeHandle
0756306c 791b5ce6 mscorwks!ClassLoader::LookupInModule+0x35, calling
mscorwks!Module::LookupTypeDef
0756307c 791b5d0b mscorwks!ClassLoader::LoadTypeHandle+0x1e, calling
mscorwks!ClassLoader::LookupInModule
07563080 791b5f3e mscorwks!TypeHandle::IsRestored+0xf, calling
mscorwks!TypeHandle::GetMethodTable
07563084 791b5d20 mscorwks!ClassLoader::LoadTypeHandle+0x2f, calling
mscorwks!TypeHandle::IsRestored
075630ac 791b5e2e mscorwks!SigPointer::GetTypeHandle+0x189, calling
mscorwks!ClassLoader::LoadTypeHandle
075630bc 791b5e4b mscorwks!SigPointer::GetTypeHandle+0x1a6, calling
mscorwks!TypeHandle::GetSigCorElementType
075630c8 791b5e75 mscorwks!SigPointer::GetTypeHandle+0x232, calling
mscorwks!__security_check_cookie
075630d8 791b5eaa mscorwks!Module::LookupTypeDef+0x18, calling
mscorwks!Module::GetFromRidMap
075630e4 791b5eaa mscorwks!Module::LookupTypeDef+0x18, calling
mscorwks!Module::GetFromRidMap
075630f4 791b5ce6 mscorwks!ClassLoader::LookupInModule+0x35, calling
mscorwks!Module::LookupTypeDef
07563104 791b5d0b mscorwks!ClassLoader::LoadTypeHandle+0x1e, calling
mscorwks!ClassLoader::LookupInModule
07563108 791b5f3e mscorwks!TypeHandle::IsRestored+0xf, calling
mscorwks!TypeHandle::GetMethodTable
0756310c 791b5d20 mscorwks!ClassLoader::LoadTypeHandle+0x2f, calling
mscorwks!TypeHandle::IsRestored
07563134 791b5e2e mscorwks!SigPointer::GetTypeHandle+0x189, calling
mscorwks!ClassLoader::LoadTypeHandle
07563144 791b5e4b mscorwks!SigPointer::GetTypeHandle+0x1a6, calling
mscorwks!TypeHandle::GetSigCorElementType
07563150 791b5e75 mscorwks!SigPointer::GetTypeHandle+0x232, calling
mscorwks!__security_check_cookie
07563190 791b5d0b mscorwks!ClassLoader::LoadTypeHandle+0x1e, calling
mscorwks!ClassLoader::LookupInModule
07563194 791b5f3e mscorwks!TypeHandle::IsRestored+0xf, calling
mscorwks!TypeHandle::GetMethodTable
07563198 791b5d20 mscorwks!ClassLoader::LoadTypeHandle+0x2f, calling
mscorwks!TypeHandle::IsRestored
075631c0 791b5e2e mscorwks!SigPointer::GetTypeHandle+0x189, calling
mscorwks!ClassLoader::LoadTypeHandle
075631d0 791b5e4b mscorwks!SigPointer::GetTypeHandle+0x1a6, calling
mscorwks!TypeHandle::GetSigCorElementType
075631dc 791b5e75 mscorwks!SigPointer::GetTypeHandle+0x232, calling
mscorwks!__security_check_cookie
075631f0 79261a53
mscorwks!ApplicationSecurityDescriptor::CheckStatusOf+0x6f, calling
mscorwks!ApplicationSecurityDescriptor::CheckDomainWideFlag
0756320c 791f5beb mscorwks!COMCodeAccessSecurityEngine::SpecialDemand+0x2c,
calling mscorwks!ApplicationSecurityDescriptor::CheckStatusOf
0756321c 791b5d0b mscorwks!ClassLoader::LoadTypeHandle+0x1e, calling
mscorwks!ClassLoader::LookupInModule
07563220 791b5f3e mscorwks!TypeHandle::IsRestored+0xf, calling
mscorwks!TypeHandle::GetMethodTable
07563224 791b5d20 mscorwks!ClassLoader::LoadTypeHandle+0x2f, calling
mscorwks!TypeHandle::IsRestored
07563258 79234c9f mscorwks!RefSecContext::CallerHasPerm+0xa6, calling
mscorwks!COMCodeAccessSecurityEngine::SpecialDemand
0756325c 79234cdc mscorwks!RefSecContext::CallerHasPerm+0x104, calling
mscorwks!_SEH_epilog
07563278 79261a53
mscorwks!ApplicationSecurityDescriptor::CheckStatusOf+0x6f, calling
mscorwks!ApplicationSecurityDescriptor::CheckDomainWideFlag
07563294 791f5beb mscorwks!COMCodeAccessSecurityEngine::SpecialDemand+0x2c,
calling mscorwks!ApplicationSecurityDescriptor::CheckStatusOf
075632e0 79234c9f mscorwks!RefSecContext::CallerHasPerm+0xa6, calling
mscorwks!COMCodeAccessSecurityEngine::SpecialDemand
075632e4 79234cdc mscorwks!RefSecContext::CallerHasPerm+0x104, calling
mscorwks!_SEH_epilog
07563304 79261a53
mscorwks!ApplicationSecurityDescriptor::CheckStatusOf+0x6f, calling
mscorwks!ApplicationSecurityDescriptor::CheckDomainWideFlag
0756346c 791ed2f1 mscorwks!SigPointer::Normalize+0x1d, calling
mscorwks!SigPointer::GetTypeHandle
07563494 791d74ce mscorwks!SigPointer::Normalize+0x16, calling
mscorwks!SigPointer::Normalize
075634a8 791dcc99 mscorwks!MetaSig::NextArgNormalized+0x23, calling
mscorwks!SigPointer::Normalize
075634b8 791dcd20 mscorwks!MetaSig::SizeOfActualFixedArgStack+0xc9, calling
mscorwks!MetaSig::NextArgNormalized
0756355c 791dcd9d mscorwks!MetaSig::CbStackPop+0x1f, calling
mscorwks!MetaSig::SizeOfActualFixedArgStack
07563570 791dcdc5 mscorwks!MethodDesc::CbStackPop+0x24, calling
mscorwks!MetaSig::CbStackPop
07563584 791dced5 mscorwks!FramedMethodFrame::UpdateRegDisplay+0x4b, calling
mscorwks!MethodDesc::CbStackPop
07563594 79ba7f18 *** WARNING: Unable to verify timestamp for mscorlib.dll
*** ERROR: Module load completed but symbols could not be loaded for
mscorlib.dll
mscorlib_79990000+0x217f18, calling 0098b6bc
0756359c 791d6b62 mscorwks!Thread::StackWalkFramesEx+0x39f
075635c4 791d6d1d mscorwks!convertAllRegsMask+0x306, calling
mscorwks!decodeCallPattern
075635f0 791f5db8 mscorwks!GetHandlerFrameInfo+0x28, calling
mscorwks!GetFirstBaseSPslotPtr
0756360c 791ee98c mscorwks!SKIP_ALLOC_FRAME+0x40, calling
mscorwks!SKIP_ARITH_REG
07563624 791ee9f8 mscorwks!EECodeManager::UnwindStackFrame+0x429, calling
mscorwks!SKIP_ALLOC_FRAME
0756364c 791d6937 mscorwks!Thread::StackWalkFramesEx+0x1d4
07563658 791d6b28 mscorwks!Frame::GetReturnDomain+0x8
07563660 791d6abf mscorwks!Thread::StackWalkFramesEx+0x374
0756366c 791d69ad mscorwks!Thread::StackWalkFramesEx+0x3f8, calling
mscorwks!__security_check_cookie
075636e8 79ba7f18 mscorlib_79990000+0x217f18, calling 0098b6bc
07563710 791d6a13 mscorwks!Thread::StackWalkFrames+0x8b, calling
mscorwks!Thread::StackWalkFramesEx
075637f8 791ecb2f mscorwks!WszWideCharToMultiByte+0xac
07563824 791ecb58 mscorwks!WszWideCharToMultiByte+0x1ee, calling
mscorwks!__security_check_cookie
07563908 791e0153 mscorwks!CFinalize::RegisterForFinalization+0x19, calling
mscorwks!ExchangeMP
07563920 791e0135 mscorwks!GCHeap::Alloc+0x8a, calling
mscorwks!CFinalize::RegisterForFinalization
07563938 791b3b7f mscorwks!GCHeap::Alloc+0x97, calling
mscorwks!__security_check_cookie
07563948 791b3b4a mscorwks!GCHeap::Alloc+0x5f, calling
mscorwks!gc_heap::allocate_more_space
07563964 791ed3c0 mscorwks!COMString::NewString+0x37, calling mscorwks!memcpy
07563980 791efd85 mscorwks!Int32ToDecStr+0xc2, calling
mscorwks!COMString::NewString
07563994 791efdaf mscorwks!Int32ToDecStr+0xf4, calling
mscorwks!__security_check_cookie
075639c8 791b3b7f mscorwks!GCHeap::Alloc+0x97, calling
mscorwks!__security_check_cookie
075639dc 791e0135 mscorwks!GCHeap::Alloc+0x8a, calling
mscorwks!CFinalize::RegisterForFinalization
075639f4 791b3b7f mscorwks!GCHeap::Alloc+0x97, calling
mscorwks!__security_check_cookie
07563a34 791ee88b mscorwks!StackWalkFunctions+0x15, calling
mscorwks!Thread::StackWalkFrames
07563a4c 79231572 mscorwks!RefSecContext::GetCallerMethod+0x1e, calling
mscorwks!StackWalkFunctions
07563a60 79231589 mscorwks!RefSecContext::GetCallerMT+0x5, calling
mscorwks!RefSecContext::GetCallerMethod
07563a64 792315a8 mscorwks!InvokeUtil::CheckAccess+0xe, calling
mscorwks!RefSecContext::GetCallerMT
07563a70 792f706c mscorwks!COMClass::GetMatchingProperties+0x1c5, calling
mscorwks!InvokeUtil::CheckAccess
07563b44 791b3ae7 mscorwks!Alloc+0x3a, calling mscorwks!GCHeap::Alloc
07563b58 791e0124 mscorwks!Object::SetAppDomain+0x11, calling
mscorwks!Object::SetAppDomain
07563b64 791e0777 mscorwks!FastAllocateObject+0x6a, calling
mscorwks!Object::SetAppDomain
07563b7c 791ed3c0 mscorwks!COMString::NewString+0x37, calling mscorwks!memcpy
07563b98 7933738f mscorwks!Int32ToHexStr+0x3c, calling
mscorwks!COMString::NewString
07563ba0 79337397 mscorwks!Int32ToHexStr+0x44, calling
mscorwks!__security_check_cookie
07563c74 79274708 mscorwks!COMNumber::FormatInt32+0x5a, calling
mscorwks!Int32ToHexStr
07563c8c 791efe1b mscorwks!COMNumber::FormatInt32+0xb5, calling
mscorwks!__security_check_cookie
07563ca8 791d60e1 mscorwks!HelperMethodFrame::HelperMethodFrame+0x1d,
calling mscorwks!HelperMethodFrame::LazyInit
07563cb8 791f8fb9 mscorwks!COMString::NewString+0x43, calling mscorwks!memcpy
07563cc4 791b7c7a mscorwks!TypeHandle::GetClass+0x5, calling
mscorwks!TypeHandle::GetMethodTable
07563cc8 791ee269 mscorwks!COMClass::GetClassFromHandle+0x34, calling
mscorwks!TypeHandle::GetClass
07563cd0 791b7c7a mscorwks!TypeHandle::GetClass+0x5, calling
mscorwks!TypeHandle::GetMethodTable
07563cd4 791ee269 mscorwks!COMClass::GetClassFromHandle+0x34, calling
mscorwks!TypeHandle::GetClass
07563ce0 791f90bd mscorwks!COMString::StringInitCharArray+0xb1, calling
mscorwks!Frame::pop
07563ce4 791f90c5 mscorwks!COMString::StringInitCharArray+0xb9, calling
mscorwks!HelperMethodFrame::RestoreState
07563d0c 0098af90 0098af90
07563d28 0098b6f5 0098b6f5
07563d68 79ba7f18 mscorlib_79990000+0x217f18, calling 0098b6bc
0756feb8 0756fed8 0756fed8
0756fed0 0756ff08 0756ff08
0756fed4 0756ff08 0756ff08
0756ff44 0756ff64 0756ff64
0756ff5c 0756ff94 0756ff94
0756ff60 0756ff94 0756ff94
0757fec0 0757fef8 0757fef8
0757fec4 0757fef8 0757fef8
0757ff34 0757ff54 0757ff54
0757ff4c 0757ff84 0757ff84
0757ff50 0757ff84 0757ff84
0765f350 08f6b9c6 08f6b9c6, calling mscorwks!JIT_MonExit
0765f384 08f6b198 08f6b198
0765f39c 034758c3 034758c3
0765f3d4 0347d13e 0347d13e
0765f400 08f6a531 08f6a531, calling mscorwks!JIT_MonExit
0765f59c 0347d13e 0347d13e
0765f5ac 08f6a7e0 08f6a7e0
0765f5f0 08f6a352 08f6a352
0765f6a0 0593481d 0593481d
0765f720 791daddf mscorwks!ArgIterator::ArgIterator+0x55, calling
mscorwks!IsArgumentInRegister
0765f734 791d94bc mscorwks!CallDescrWorker+0x30
0765f73c 791ed194 mscorwks!MethodDesc::CallDescr+0x1b8, calling
mscorwks!CallDescrWorker
0765f76c 791d7b2f mscorwks!MetaSig::SizeOfActualFixedArgStack+0x14, calling
mscorwks!MetaSig::ForceSigWalk
0765f77c 791ed086 mscorwks!MethodDesc::CallDescr+0x79, calling
mscorwks!MetaSig::SizeOfActualFixedArgStack
0765f780 791ed096 mscorwks!MethodDesc::CallDescr+0x89, calling
mscorwks!_alloca_probe
0765f824 791b5f0c mscorwks!EEClass::GetFixedUpSlot+0x1d, calling
mscorwks!Module::IsJumpTargetTableEntry
0765f84c 791ed54b mscorwks!MethodDesc::CallDescr+0x4f, calling
mscorwks!MethodDesc::CallDescr
0765f8e0 791b5f0c mscorwks!EEClass::GetFixedUpSlot+0x1d, calling
mscorwks!Module::IsJumpTargetTableEntry
0765f908 791ed5b9 mscorwks!MethodDesc::Call+0x97, calling
mscorwks!MethodDesc::CallDescr
0765f930 792e87b7 mscorwks!ThreadNative::KickOffThread_Worker+0x9d, calling
mscorwks!MethodDesc::Call
0765f954 791cf13f mscorwks!ThreadStore::TransferStartedThread+0x7f, calling
mscorwks!ThreadStore::UnlockThreadStore
0765f97c 792e8886 mscorwks!ThreadNative::KickOffThread+0xc2, calling
mscorwks!ThreadNative::KickOffThread_Worker
0765fa20 791cf03c mscorwks!Thread::intermediateThreadProc+0x44
0765fb20 79513737 mscorsn!DllMain+0x119, calling
mscorsn!__security_check_cookie
0765fdc8 791d6a1e mscorwks!Thread::StackWalkFrames+0x96, calling
mscorwks!__security_check_cookie
0765ffa4 791cf02a mscorwks!Thread::intermediateThreadProc+0x32, calling
mscorwks!_alloca_probe
0765ffa8 791d6a1e mscorwks!Thread::StackWalkFrames+0x96, calling
mscorwks!__security_check_cookie
0765ffbc 791d6a1e mscorwks!Thread::StackWalkFrames+0x96, calling
mscorwks!__security_check_cookie
 
G

Gary Chang[MSFT]

Hi Nadav,
Current frame: fusion!_alloca_probe+0x25

Based on the above call stack info , your process seems crashed on the
operation when it attempt to bind some assembly, if so, I suggest you use
the assembly binding log viewer (Fuslogvw.exe) to look up which the failed
assembly bind causes this issue. That utility tool is packaged along with
the .Net FrameWork Tools, which could display details for failed assembly
binds. The information helps you diagnose why the .NET Framework cannot
locate an assembly at run time.

Please refer to the following MSDN article for Fuslogvw.exe's usage:

Assembly Binding Log Viewer (Fuslogvw.exe)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/htm
l/cpgrffusionlogviewerfuslogvwexe.asp


By the way, the crash of you application may be caused by some other
reasons, but currently we cannot isolated it due to the insufficient dump
info.

Thanks for your understanding!


Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi Gary,

Where do I get this Fuslogvw.exe?

I have vs2003 installed on my computer, I have a "Microsoft .NET Framework
SDK v1.1" entry in the Start menu that contains the documentation of all the
tools, Including Fuslogvw.exe, but I can find it anywhere.
It is not in Common7\Tools or Common7\Tools\Bin.

Nadav
 
G

Guest

Hi Gary,

I found the Fuslogvw.exe.
I've run and it does not show ANY entries at all.
Does this mean that there wasn't a Log binding error?
(The documentation says that it stores it's files in the wininet cache, and
the exception happened on the 19th, could the files have been deleted?)

BTW, The exception was an Access Violation, I the fusion code.
This should not happen, should it? Regardless of which assembly have failed
to bind
(if the assembly failed to bind it should have thrown another exception, no?)

Nadav
 
G

Gary Chang[MSFT]

G

Gary Chang[MSFT]

Hi Nadav,
BTW, The exception was an Access Violation, I the fusion code.
This should not happen, should it?

yes, the assembly binding error would not cause an AV error, but there
isn't any corresponding AV message in your stack dump info. So in this
scenario, I think it is better for you if one of our PSS support engineers
could work with you, he may help you to debug your application to generate
more useful and detailed message for research. This may need you submit a
support incident in Microsoft PSS (Product Support Service). As a MSDN
subscriber, you have two free support incidents.

By the way, if the problem is confirmed by Microsoft PSS as a product
issue, PSS won't charge money. Every MSDN subscriber has two free support
incidents. You could use one of them to contact Microsoft PSS. So you don't
need to pay money yet. Surely if the issue is a product issue, you still
have two free support incidents.

For your reference, I attached steps to contact Microsoft PSS here: You can
contact Microsoft Product Support directly to discuss additional support
options you may have available, by contacting us at 1-(800)936-5800 or by
choosing one of the options listed at
http://support.microsoft.com/common/international.aspx?rdpath=gp;en-us;offer
prophone


Thanks for your understanding!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top