Access violation,application crash

T

tony

hi.

my NET application is using mixed c++ dll ( managed and unmanaged)
in that dll , im calling api's of unamanged dll.


my application crash with no exception or warning.

its hard to find when the crash happen ,and where.

the only thing i have is the mini dump of the crash ,and it say :



============================================================

Comment: '1st_chance_AccessViolation_exception_in_V4USTARTER.

EXE_running_on_TPSTATION1'
Windows XP Version 2600 (Service Pack 1) UP Free x86 compatible
Product: WinNt, suite: SingleUserTS
Debug session time: Tue Apr 5 01:58:00.000 2005 (GMT+2)
System Uptime: not available
Process Uptime: 0 days 0:03:26.000
Symbol search path is: C:\Program Files\Debugging Tools for
Windows\MyLocalSymbols;

SRV*C:\Program Files\Debugging Tools for Windows\MyLocalSymbols*http://msdl.

microsoft.com/download/symbols;E:\Programming\V4USERVER\bin;C:\Program

Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
Executable search path is: E:\Programming\V4USERVER\bin
.............................................................................
.............................................................................
.......................
(5b4.f74): Access violation - code c0000005 (!!! second chance !!!)
eax=00800000 ebx=77e760cb ecx=00a3dc1c edx=00000004 esi=80000016
edi=000000c8
eip=792cfcbb esp=0e47f91c ebp=0e47f928 iopl=0 nv up ei pl nz na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
efl=00000206
mscorwks!gc_heap::c_promote_callback+0xfe:
792cfcbb 8b3c81 mov edi,[ecx+eax*4]
ds:0023:02a3dc1c=????????


============================================================
the **call stack** from the mini dump crash is :

mscorwks!gc_heap::c_promote_callback+0xfe
mscorwks!GcEnumObject+0x20
mscorwks!EECodeManager::EnumGcRefs+0x503
mscorwks!GcStackCrawlCallBack+0xc5
mscorwks!Thread::StackWalkFramesEx+0x136
mscorwks!Thread::StackWalkFrames+0x8b
mscorwks!CNameSpace::GcScanRoots+0x7b
mscorwks!gc_heap::c_mark_phase+0x8e
mscorwks!gc_heap::gc1+0x8c
mscorwks!gc_heap::gc_thread_function+0xa6
mscorwks!gc_heap::gc_thread_stub+0x5
kernel32!BaseThreadStart+0x37
============================================================

i try to catch the bug for 2 days , ive no idea ,where it happen ( im using
some vb.net dlls ,

and 2 manged\unmanged c++ dll's ) .


any ideas ,why this bug happen,and what to look for ?
 
A

Alon

tony said:
hi.

my NET application is using mixed c++ dll ( managed and unmanaged)
in that dll , im calling api's of unamanged dll.


my application crash with no exception or warning.

its hard to find when the crash happen ,and where.

the only thing i have is the mini dump of the crash ,and it say :



============================================================

Comment: '1st_chance_AccessViolation_exception_in_V4USTARTER.

EXE_running_on_TPSTATION1'
Windows XP Version 2600 (Service Pack 1) UP Free x86 compatible
Product: WinNt, suite: SingleUserTS
Debug session time: Tue Apr 5 01:58:00.000 2005 (GMT+2)
System Uptime: not available
Process Uptime: 0 days 0:03:26.000
Symbol search path is: C:\Program Files\Debugging Tools for
Windows\MyLocalSymbols;

SRV*C:\Program Files\Debugging Tools for Windows\MyLocalSymbols*http://msdl.microsoft.com/download/symbols;E:\Programming\V4USERVER\bin;C:\Program

Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
Executable search path is: E:\Programming\V4USERVER\bin
..........................................................................................................................................................
......................
(5b4.f74): Access violation - code c0000005 (!!! second chance !!!)
eax=00800000 ebx=77e760cb ecx=00a3dc1c edx=00000004 esi=80000016
edi=000000c8
eip=792cfcbb esp=0e47f91c ebp=0e47f928 iopl=0 nv up ei pl nz na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000
efl=00000206
mscorwks!gc_heap::c_promote_callback+0xfe:
792cfcbb 8b3c81 mov edi,[ecx+eax*4]
ds:0023:02a3dc1c=????????


============================================================
the **call stack** from the mini dump crash is :

mscorwks!gc_heap::c_promote_callback+0xfe
mscorwks!GcEnumObject+0x20
mscorwks!EECodeManager::EnumGcRefs+0x503
mscorwks!GcStackCrawlCallBack+0xc5
mscorwks!Thread::StackWalkFramesEx+0x136
mscorwks!Thread::StackWalkFrames+0x8b
mscorwks!CNameSpace::GcScanRoots+0x7b
mscorwks!gc_heap::c_mark_phase+0x8e
mscorwks!gc_heap::gc1+0x8c
mscorwks!gc_heap::gc_thread_function+0xa6
mscorwks!gc_heap::gc_thread_stub+0x5
kernel32!BaseThreadStart+0x37
============================================================

i try to catch the bug for 2 days , ive no idea ,where it happen ( im using
some vb.net dlls ,

and 2 manged\unmanged c++ dll's ) .


any ideas ,why this bug happen,and what to look for ?

It seems that you may encountered the known mixed DLL bug, but I'm not
sure, read here for more information:
http://msdn.microsoft.com/library/d...stechart/html/vcconMixedDLLLoadingProblem.asp

This bug may also occurs because of memory corruption that a pointer in
your native code may be responsible to. But it looks more like the
mixed DLL problem.

Alon Fliess
CTO
The Sela Group.
 

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