access violation - crashing the application.no idea when and where

T

tony

(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 ?
 
C

Chris Lyon [MSFT]

Hi Tony

This may be a bug in the CLR, or it may be related to heap corruption due
to your interop calls.

What version of .NET are you using? I recommend you move to v1.1 SP1, if
you're not using it already.

-Chris

--------------------
|
| (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 ?
|
|
|
|
 
R

roni

i have v1.1 SP1 .

i look at my calls to the unmanaged dll
all the parameter that passed are :

1. int ( i been told that all int passed by value ,even if they are data
member of gc class )
2.__nogc pointers
3.string that converted to allocated in the native heap using
PtrToStringChars,malloc ,and cstombs
4.int array that pointed by __nogc int*


any ideas what to check ? test ? looking at ?
im working on this bug for 2-3 days, no idea what's wrong here.
 

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