471,338 Members | 1,381 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 software developers and data experts.

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

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

Jul 21 '05 #1
2 2446
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 ?
|
|
|
|

Jul 21 '05 #2
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.

""Chris Lyon [MSFT]"" <cl***@online.microsoft.com> wrote in message
news:Cy****************@TK2MSFTNGXA01.phx.gbl...
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 ?
|
|
|
|

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Steven Reddie | last post: by
14 posts views Thread by JK Peck | last post: by
reply views Thread by Microsoft News | last post: by
1 post views Thread by tony | last post: by
7 posts views Thread by Me | last post: by
39 posts views Thread by Martin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.