application crash

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • roni

    #1

    application crash

    hi.

    i have application written in vb.net + managed c++ dll that call also to
    unmanaged c++ function.

    the application crash.

    i open the dump file of the crash with WinDbg and that's is the call stack
    (using the sos.dll) :
    =============== =============== =======
    (2f0.98c): Access violation - code c0000005 (!!! second chance !!!)
    eax=00800000 ebx=77e760cb ecx=00a3e01c edx=00000008 esi=8000001c
    edi=000000c8
    eip=792cfcbb esp=0df6f91c ebp=0df6f928 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_hea p::c_promote_ca llback+0xfe:
    792cfcbb 8b3c81 mov edi,[ecx+eax*4]
    ds:0023:02a3e01 c=????????
    0:045> load sos.dll
    ^ Syntax error in 'load sos.dll'
    0:045> .load sos.dll
    0:045> !dumpstack
    succeeded
    Loaded Son of Strike data table version 5 from
    "C:\WINDOWS\Mic rosoft.NET\Fram ework\v1.1.4322 \mscorwks.dll"
    Current frame: mscorwks!gc_hea p::c_promote_ca llback+0xfe
    ChildEBP RetAddr Caller,Callee
    0df6f928 79212116 mscorwks!GcEnum Object+0x20
    0df6f93c 791fe018 mscorwks!EECode Manager::EnumGc Refs+0x503
    0df6f97c 77f944a8 ntdll!RtlpAlloc ateFromHeapLook aside+0x42, calling
    ntdll!_SEH_epil og
    0df6fa08 79211f4f mscorwks!GcStac kCrawlCallBack+ 0xc5
    0df6fa48 791d68d8 mscorwks!Thread ::StackWalkFram esEx+0x136
    0df6fab4 77f95769 ntdll!RtlLogSta ckBackTrace+0x1 1f, calling
    ntdll!_SEH_epil og
    0df6fb1c 1a40160b URLMON!CUrlMkTl s::CUrlMkTls+0x 25, calling
    URLMON!CUrlMkTl s::TLSAllocData
    0df6fb24 1a4102a0 URLMON!TlsDllMa in+0x59, calling
    URLMON!CUrlMkTl s::CUrlMkTls
    0df6fb34 1a4100d5 URLMON!DllMain+ 0x184, calling URLMON!TlsDllMa in
    0df6fb64 102094d4 msvcr71d!_nh_ma lloc_dbg+0x64, calling msvcr71d!_unloc k
    0df6fbc0 791d6a13 mscorwks!Thread ::StackWalkFram es+0x8b, calling
    mscorwks!Thread ::StackWalkFram esEx
    0df6fc30 77f62b67 ntdll!LdrpIniti alizeThread+0xe 3, calling
    ntdll!RtlDeacti vateActivationC ontextUnsafeFas t
    0df6fc38 77f62bc6 ntdll!LdrpIniti alizeThread+0x1 42, calling
    ntdll!_SEH_epil og
    0df6fc9c 77f55432 ntdll!LdrpIniti alize+0x26f, calling
    ntdll!RtlLeaveC riticalSection
    0df6fca0 77f5c474 ntdll!ZwTestAle rt+0xc
    0df6fca4 77f5541d ntdll!LdrpIniti alize+0x25a, calling ntdll!_SEH_epil og
    0df6fd18 77f5541d ntdll!LdrpIniti alize+0x25a, calling ntdll!_SEH_epil og
    0df6fd1c 77f5b644 ntdll!ZwContinu e+0xc
    0df6fd20 77f75d8f ntdll!KiUserApc Dispatcher+0xf, calling ntdll!ZwContinu e
    0df6fdd4 77f944a8 ntdll!RtlpAlloc ateFromHeapLook aside+0x42, calling
    ntdll!_SEH_epil og
    0df6fdd8 77f57d70 ntdll!RtlAlloca teHeap+0x1c2, calling
    ntdll!RtlpAlloc ateFromHeapLook aside
    0df6fee4 79212c06 mscorwks!CNameS pace::GcScanRoo ts+0x7b, calling
    mscorwks!Thread ::StackWalkFram es
    0df6ff10 792d0d9a mscorwks!gc_hea p::c_mark_phase +0x8e, calling
    mscorwks!CNameS pace::GcScanRoo ts
    0df6ff4c 7925bf7b mscorwks!gc_hea p::gc1+0x8c, calling
    mscorwks!gc_hea p::c_mark_phase
    0df6ff88 77e7ab74 kernel32!WaitFo rSingleObject+0 xf, calling
    kernel32!WaitFo rSingleObjectEx
    0df6ffa0 792d1063 mscorwks!gc_hea p::gc_thread_fu nction+0xa6, calling
    mscorwks!gc_hea p::gc1
    0df6ffb0 792d1097 mscorwks!gc_hea p::gc_thread_st ub+0x5, calling
    mscorwks!gc_hea p::gc_thread_fu nction
    0df6ffb4 77e7d28e kernel32!BaseTh readStart+0x37

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

    now

    ill check all memory allocation and also wrote :
    _ASSERTE(_CrtCh eckMemory());

    after every memory allocation i do.

    the application crash,and i get this dump stack.



    now the thing is ,its a telephony server.

    and the crash can happen even if there is no caller call the server.

    now ,the hard thing here is if you look in the call stack

    all the dlls are'nt telephony dll, or my dlls.

    so no idea which dll cause this mess.



    any tips ?

    im trying to find this bug for 2 weeks.

    look on my code and wrote alot of _ASSERTE(_CrtCh eckMemory());

    but without any help to know the reason of the crash.


Working...