Now, if I write code such that it crashes within any of the Dlls, the Dump
shows complete call stack (see below).
Whereas, if I let it crash within the main exe, the call stack is
incomplete. (see below)
I tried to use SOS but apparently it helps only if I have managed code, so
it did not work. Could anyone please help?
Thanks
Jay Venkat
>>>> WinDbg output for crash within Unmanaged Dll
0:000> .reload
....................................
DBGHELP: C:\Program Files\Debugging Tools for Windows\ntdll.dll - file not
found
DBGHELP: C:\Symbols\ntdll.dll\3EB1B41Aa7000\ntdll.dll - OK
DBGENG: C:\Symbols\ntdll.dll\3EB1B41Aa7000\ntdll.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\ntdll.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\ntdll.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\ntdll.pdb - file not found
DBGHELP: ntdll - public symbols
C:\Symbols\ntdll.pdb\3E7B64D65\ntdll.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\kernel32.dll - file
not found
DBGHELP: C:\Symbols\kernel32.dll\40D1DBCBe6000\kernel32.dll - OK
DBGENG: C:\Symbols\kernel32.dll\40D1DBCBe6000\kernel32.dll - Mapped image
memory
DBGHELP: C:\Test Projs\NewTest\Debug\kernel32.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\kernel32.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\kernel32.pdb - file not found
DBGHELP: kernel32 - public symbols
C:\Symbols\kernel32.pdb\40D1D0C52\kernel32.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\dbghelp.dll -
mismatched timestamp
DBGHELP: C:\Symbols\dbghelp.dll\3D6DFA167d000\dbghelp.dll - OK
DBGENG: C:\Symbols\dbghelp.dll\3D6DFA167d000\dbghelp.dll - Mapped image
memory
DBGHELP: C:\Test Projs\NewTest\Debug\dbghelp.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\dbghelp.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\dbghelp.pdb - file not found
DBGHELP: dbghelp - public symbols
C:\Symbols\dbghelp.pdb\819C4FBAB64844F3B86D0AEEDDCE632A1\dbghelp.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\TestProjDll.dll - file
not found
DBGHELP: C:\Test Projs\NewTest\Debug\TestProjDll.dll - OK
DBGENG: C:\Test Projs\NewTest\Debug\TestProjDll.dll - Mapped image memory
*** WARNING: Unable to verify checksum for TestProjDll.dll
DBGHELP: TestProjDll - private symbols & lines
C:\Test Projs\NewTest\Debug\TestProjDll.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\pdshell.dll - file not
found
SYMSRV: C:\Symbols\pdshell.dll\40155E4520000\pdshell.dll not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/pdshell.dll/40155E4520000/pdshell.dll not found
DBGHELP: C:\Program Files\Debugging Tools for Windows\pdshell.dll - file not
found
DBGHELP: pdshell.dll not found in C:\Test Projs\NewTest\Debug
DBGHELP: pdshell.dll not found in
SRV*C:\Symbols*http://msdl.microsoft.com/download/symbols
DBGENG: C:\WINDOWS\system32\PDesk\pdshell.dll - Mapped image memory
DBGHELP: No debug info for pdshell.dll. Searching for dbg file
DBGHELP: C:\Test Projs\NewTest\Debug\pdshell.dbg - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\pdshell.dbg - path not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\pdshell.dbg - path not found
SYMSRV: C:\Symbols\pdshell.dbg\40155E4520000\pdshell.dbg not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/pdshell.dbg/40155E4520000/pdshell.dbg not found
DBGHELP: .\pdshell.dbg - file not found
DBGHELP: .\symbols\dll\pdshell.dbg - path not found
DBGHELP: .\dll\pdshell.dbg - path not found
DBGHELP: pdshell.dll missing debug info. Searching for pdb anyway
DBGHELP: C:\Test Projs\NewTest\Debug\pdshell.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\pdshell.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\pdshell.pdb - file not found
DBGHELP: Can't use symbol server for pdshell.pdb - no header information
available
DBGHELP: pdshell.pdb - file not found
*** WARNING: Unable to verify checksum for pdshell.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
pdshell.dll -
DBGHELP: pdshell - export symbols
DBGHELP: C:\Program Files\Debugging Tools for Windows\msvcr71d.dll - file
not found
SYMSRV: C:\Symbols\msvcr71d.dll\3E77DE1687000\msvcr71d.dll not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/msvcr71d.dll/3E77DE1687000/msvcr71d.dll not found
DBGHELP: C:\Program Files\Debugging Tools for Windows\msvcr71d.dll - file
not found
DBGHELP: msvcr71d.dll not found in C:\Test Projs\NewTest\Debug
DBGHELP: msvcr71d.dll not found in
SRV*C:\Symbols*http://msdl.microsoft.com/download/symbols
DBGENG: C:\WINDOWS\system32\msvcr71d.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\msvcr71d.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\msvcr71d.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\msvcr71d.pdb - file not found
DBGHELP: msvcr71d - public symbols
C:\Symbols\msvcr71d.pdb\A286C37123DA449EBB63B87354610D221\msvcr71d.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\NewTest.exe - file not
found
DBGHELP: C:\Test Projs\NewTest\Debug\NewTest.exe - OK
DBGENG: C:\Test Projs\NewTest\Debug\NewTest.exe - Mapped image memory
*** WARNING: Unable to verify checksum for NewTest.exe
DBGHELP: NewTest - private symbols & lines
C:\Test Projs\NewTest\Debug\NewTest.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\mfc71d.dll - file not
found
SYMSRV: C:\Symbols\mfc71d.dll\3E77F1F4217000\mfc71d.dll not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/mfc71d.dll/3E77F1F4217000/mfc71d.dll not found
DBGHELP: C:\Program Files\Debugging Tools for Windows\mfc71d.dll - file not
found
DBGHELP: mfc71d.dll not found in C:\Test Projs\NewTest\Debug
DBGHELP: mfc71d.dll not found in
SRV*C:\Symbols*http://msdl.microsoft.com/download/symbols
DBGENG: C:\WINDOWS\system32\mfc71d.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\MFC71D.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\MFC71D.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\MFC71D.pdb - file not found
DBGHELP: mfc71d - public symbols
C:\Symbols\MFC71D.pdb\C3F56483650F4CFC90A303850ABF082D1\MFC71D.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\NewDll.dll - file not
found
DBGHELP: C:\Test Projs\NewTest\Debug\NewDll.dll - OK
DBGENG: C:\Test Projs\NewTest\Debug\NewDll.dll - Mapped image memory
*** WARNING: Unable to verify checksum for NewDll.dll
DBGHELP: NewDll - private symbols & lines
C:\Test Projs\NewTest\Debug\NewDll.pdb
0:000> .ecxr
eax=ddddddcd ebx=0015d608 ecx=ddddddcd edx=1027ebb0 esi=0012e75c edi=0012e834
eip=7c176cfa esp=0012e734 ebp=0012e738 iopl=0 nv up ei ng nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010282
mfc71d!ATL::CStringData::Release+0xa:
7c176cfa 83780c00 cmp dword ptr [eax+0xc],0x0 ds:0023:ddddddd9=????????
DBGHELP: C:\Program Files\Debugging Tools for Windows\user32.dll - file not
found
DBGHELP: C:\Symbols\user32.dll\422603D38d000\user32.dll - OK
DBGENG: C:\Symbols\user32.dll\422603D38d000\user32.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\user32.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\user32.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\user32.pdb - file not found
DBGHELP: user32 - public symbols
C:\Symbols\user32.pdb\422515552\user32.pdb
0:000> k
*** Stack trace for last set context - .thread/.cxr resets it
ChildEBP RetAddr
0012e738 7c17a46c mfc71d!ATL::CStringData::Release+0xa
0012e748 7c17b82f
mfc71d!ATL::CSimpleStringT<wchar_t,1>::~CSimpleStringT<wchar_t,1>+0x1c
0012e754 0036224e
mfc71d!ATL::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> >
>::~CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >+0xf
0012e834 00362160
NewDll!ATL::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> >
>::`scalar deleting destructor'+0x2e
0012e988 10012b68 NewDll!CNewCrashTest::CrashNew+0x120 [c:\test
projs\newdll\newcrashtest.cpp @ 24]
0012eb54 00fca48a TestProjDll!CCreateCrash::CrashIt+0x258 [c:\test
projs\testprojdll\createcrash.cpp @ 50]
WARNING: Frame IP not in any known module. Following frames may be wrong.
0012ebd4 012d0b79 0xfca48a
0012ec14 012d0798 0x12d0b79
0012ec6c 00f36ba0 0x12d0798
0012ecb0 7c23b209 0xf36ba0
0012ed0c 7c235cc1 mfc71d!CCmdTarget::OnCmdMsg+0x289
0012ed48 7c22ff89 mfc71d!CDialog::OnCmdMsg+0x21
0012edac 7c22f067 mfc71d!CWnd::OnCommand+0x169
0012eeb4 7c22efde mfc71d!CWnd::OnWndMsg+0x57
0012eed4 7c22c820 mfc71d!CWnd::WindowProc+0x2e
0012ef4c 7c22ccfe mfc71d!AfxCallWndProc+0xe0
0012ef6c 7c29d8ea mfc71d!AfxWndProc+0x9e
0012ef9c 77d48654 mfc71d!AfxWndProcBase+0x4a
0012efc8 77d48723 user32!InternalCallWinProc+0x1b
0012f030 77d49153 user32!UserCallWinProcCheckWow+0x150
>>>> WinDbg output for crash within Managed exe
0:000> .reload
.........
DBGHELP: C:\Program Files\Debugging Tools for Windows\mfc71d.dll - file not
found
SYMSRV: C:\Symbols\mfc71d.dll\3E77F1F4217000\mfc71d.dll not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/mfc71d.dll/3E77F1F4217000/mfc71d.dll not found
DBGHELP: C:\Program Files\Debugging Tools for Windows\mfc71d.dll - file not
found
DBGHELP: mfc71d.dll not found in C:\Test Projs\NewTest\Debug
DBGHELP: mfc71d.dll not found in
SRV*C:\Symbols*http://msdl.microsoft.com/download/symbols
DBGENG: C:\WINDOWS\system32\mfc71d.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\MFC71D.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\MFC71D.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\MFC71D.pdb - file not found
DBGHELP: mfc71d - public symbols
C:\Symbols\MFC71D.pdb\C3F56483650F4CFC90A303850ABF082D1\MFC71D.pdb
...........................
DBGHELP: C:\Program Files\Debugging Tools for Windows\ntdll.dll - file not
found
DBGHELP: C:\Symbols\ntdll.dll\3EB1B41Aa7000\ntdll.dll - OK
DBGENG: C:\Symbols\ntdll.dll\3EB1B41Aa7000\ntdll.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\ntdll.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\ntdll.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\ntdll.pdb - file not found
DBGHELP: ntdll - public symbols
C:\Symbols\ntdll.pdb\3E7B64D65\ntdll.pdb
DBGHELP: C:\Program Files\Debugging Tools for Windows\user32.dll - file not
found
DBGHELP: C:\Symbols\user32.dll\422603D38d000\user32.dll - OK
DBGENG: C:\Symbols\user32.dll\422603D38d000\user32.dll - Mapped image memory
DBGHELP: C:\Test Projs\NewTest\Debug\user32.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\symbols\dll\user32.pdb - file not found
DBGHELP: C:\Test Projs\NewTest\Debug\dll\user32.pdb - file not found
DBGHELP: user32 - public symbols
C:\Symbols\user32.pdb\422515552\user32.pdb
0:000> .ecxr
eax=ddddddcd ebx=0015d608 ecx=ddddddcd edx=00000001 esi=0012eb30 edi=0012f49c
eip=7c176cfa esp=0012eaf0 ebp=0012eaf4 iopl=0 nv up ei ng nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010282
mfc71d!ATL::CStringData::Release+0xa:
7c176cfa 83780c00 cmp dword ptr [eax+0xc],0x0 ds:0023:ddddddd9=????????
0:000> k
*** Stack trace for last set context - .thread/.cxr resets it
ChildEBP RetAddr
0012eaf4 7c17a46c mfc71d!ATL::CStringData::Release+0xa
0012eb04 7c17b82f
mfc71d!ATL::CSimpleStringT<wchar_t,1>::~CSimpleStringT<wchar_t,1>+0x1c
0012eb10 00fca727
mfc71d!ATL::CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> >
>::~CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >+0xf
WARNING: Frame IP not in any known module. Following frames may be wrong.
0012eb50 012d0e0c 0xfca727
0012ebd4 012d0b79 0x12d0e0c
0012ec14 012d0798 0x12d0b79
0012ec6c 00f36ba0 0x12d0798
0012ecb0 7c23b209 0xf36ba0
0012ed0c 7c235cc1 mfc71d!CCmdTarget::OnCmdMsg+0x289
0012ed48 7c22ff89 mfc71d!CDialog::OnCmdMsg+0x21
0012edac 7c22f067 mfc71d!CWnd::OnCommand+0x169
0012eeb4 7c22efde mfc71d!CWnd::OnWndMsg+0x57
0012eed4 7c22c820 mfc71d!CWnd::WindowProc+0x2e
0012ef4c 7c22ccfe mfc71d!AfxCallWndProc+0xe0
0012ef6c 7c29d8ea mfc71d!AfxWndProc+0x9e
0012ef9c 77d48654 mfc71d!AfxWndProcBase+0x4a
0012efc8 77d48723 user32!InternalCallWinProc+0x1b
0012f030 77d49153 user32!UserCallWinProcCheckWow+0x150
0012f084 77d49196 user32!DispatchClientMessage+0xa3
0012f0ac 77f75da3 user32!__fnDWORD+0x22
--
Jason Shay [MSFT]
js...@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Jay Venkat" <JayV...@discussions.microsoft.com> wrote in message
news:F1073D45-E4CC-4C9E...@microsoft.com...
I have created a simple VC++/MFC application & added a code to dump the file
when there is a unhandled exception. (MinidumpWriteDump). I added some code
to crash the application & it created a dump file. Opened the dump file in
WinDbg & I could see the stack & it pointed the exact crash area.
Now I opened the sample application & changed the Managed Extensions
property from NO to YES and compiled it. Now after crashing the application
if I open the dump file in windbg couldn't see the proper stack trace. Always
seeing the following WARNING.
WARNING: Frame IP not in any known module. Following frames may be wrong.
We tried loading the SOS.dll & mscowks.pdb, mscoree.pdb but didn't help.
If you need anymore info pls let us know.
Thanks
-Kiran
The last frame of your problem stack trace suggests that the debugger would
show more frames with 'k100', because it shows a non-zero return address of
012s0b79. This would be the next frame the debugger shows, should the stack
trace command attempt to display more than 20 frames:
0012ebd4 012d0b79 0x12d0e0c
--
Jason Shay [MSFT]
js...@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Kiran guptha" <Kiran gup...@discussions.microsoft.com> wrote in message
news:B8C12FD2-B14E-4924...@microsoft.com...
Use Managed Extensions property set to YES.(Properties ->Configuration
Properties->General)
0:000> k100
ChildEBP RetAddr
0012ef78 10209ff1 msvcr71d!_free_dbg_lk+0x1cb
0012efac 1023c5fa msvcr71d!_free_dbg+0x41
0012efe4 00e5a40e msvcr71d!operator delete+0xaa
WARNING: Frame IP not in any known module. Following frames may be wrong.
0012f028 011610a4 0xe5a40e
0012f070 00dc7ac0 0x11610a4
0012f0b4 7c23b209 0xdc7ac0
0012f110 7c26b457 mfc71d!CCmdTarget::OnCmdMsg+0x289
0012f15c 7c26f155 mfc71d!CFrameWnd::OnCmdMsg+0x97
0012f198 7c22ff89 mfc71d!CMDIFrameWnd::OnCmdMsg+0xa5
0012f1fc 7c26a16e mfc71d!CWnd::OnCommand+0x169
0012f21c 7c26f054 mfc71d!CFrameWnd::OnCommand+0xae
0012f238 7c22f067 mfc71d!CMDIFrameWnd::OnCommand+0x54
0012f340 7c22efde mfc71d!CWnd::OnWndMsg+0x57
0012f360 7c22c820 mfc71d!CWnd::WindowProc+0x2e
0012f3d8 7c22ccfe mfc71d!AfxCallWndProc+0xe0
0012f3f8 7c29d8ea mfc71d!AfxWndProc+0x9e
0012f428 77d48654 mfc71d!AfxWndProcBase+0x4a
0012f454 77d48723 user32!InternalCallWinProc+0x1b
0012f4bc 77d48999 user32!UserCallWinProcCheckWow+0x150
0012f51c 77d48fd2 user32!DispatchMessageWorker+0x306
0012f528 7c23be80 user32!DispatchMessageA+0xb
0012f548 7c23d00c mfc71d!AfxInternalPumpMessage+0x100
0012f554 7c23c8c7 mfc71d!CWinThread::PumpMessage+0xc
0012f570 7c23d347 mfc71d!CWinThread::Run+0x87
0012f584 7c235aca mfc71d!CWinApp::Run+0x57
*** WARNING: Unable to verify checksum for MemoryTest.exe
0012f5a8 00409898 mfc71d!AfxWinMain+0xda
0012f5c0 00404652 MemoryTest!WinMain+0x18
[f:\vs70builds\3077\vc\mfcatl\ship\atlmfc\src\mfc\appmodul.cpp @ 25]
0012f674 00e5a09f MemoryTest!WinMainCRTStartup+0x1f2
[f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c @ 390]
0012f6a4 791ed194 0xe5a09f
0012f7b4 791ed54b mscorwks!MethodDesc::CallDescr+0x1b8
0012f870 791ed5b9 mscorwks!MethodDesc::CallDescr+0x4f
0012f898 7924253d mscorwks!MethodDesc::Call+0x97
0012f950 7921da72 mscorwks!ClassLoader::CanAccess+0x207
0012fa64 7921d6e5 mscorwks!ClassLoader::ExecuteMainMethod+0x49d
0012fa7c 7921d630 mscorwks!Assembly::ExecuteMainMethod+0x21
0012fd60 791c71ef mscorwks!SystemDomain::ExecuteMainMethod+0x421
0012ffa0 791c70ae mscorwks!ExecuteEXE+0x1ce
0012ffb0 7917d4d1 mscorwks!_CorExeMain+0x59
0012ffc0 77e8141a mscoree!_CorExeMain+0x30
0012fff0 00000000 kernel32!BaseProcessStart+0x23
Use Maanged Extensions property set to NO (Properties ->CConfiguration
Properties->General)
0:000> k100
ChildEBP RetAddr
0012f938 10209ff1 msvcr71d!_free_dbg_lk+0x1cb
0012f96c 7c227e2f msvcr71d!_free_dbg+0x41
*** WARNING: Unable to verify checksum for MemoryTest.exe
0012f97c 004015f0 mfc71d!operator delete+0xf
0012f98c 00401563 MemoryTest!CMyClass::`scalar deleting destructor'+0x20
0012f9d4 7c23abcc MemoryTest!CMainFrame::OnViewAllocate+0xb3
[c:\kiran\temp\memorytest\mainfrm.cpp @ 140]
0012fa00 7c23b209 mfc71d!_AfxDispatchCmdMsg+0x9c
0012fa5c 7c26b457 mfc71d!CCmdTarget::OnCmdMsg+0x289
0012faa8 7c26f155 mfc71d!CFrameWnd::OnCmdMsg+0x97
0012fae4 7c22ff89 mfc71d!CMDIFrameWnd::OnCmdMsg+0xa5
0012fb48 7c26a16e mfc71d!CWnd::OnCommand+0x169
0012fb68 7c26f054 mfc71d!CFrameWnd::OnCommand+0xae
0012fb84 7c22f067 mfc71d!CMDIFrameWnd::OnCommand+0x54
0012fc8c 7c22efde mfc71d!CWnd::OnWndMsg+0x57
0012fcac 7c22c820 mfc71d!CWnd::WindowProc+0x2e
0012fd24 7c22ccfe mfc71d!AfxCallWndProc+0xe0
0012fd44 7c29d8ea mfc71d!AfxWndProc+0x9e
0012fd74 77d48654 mfc71d!AfxWndProcBase+0x4a
0012fda0 77d48723 user32!InternalCallWinProc+0x1b
0012fe08 77d48999 user32!UserCallWinProcCheckWow+0x150
0012fe68 77d48fd2 user32!DispatchMessageWorker+0x306
0012fe74 7c23be80 user32!DispatchMessageA+0xb
0012fe94 7c23d00c mfc71d!AfxInternalPumpMessage+0x100
0012fea0 7c23c8c7 mfc71d!CWinThread::PumpMessage+0xc
0012febc 7c23d347 mfc71d!CWinThread::Run+0x87
0012fed0 7c235aca mfc71d!CWinApp::Run+0x57
0012fef4 0040a608 mfc71d!AfxWinMain+0xda
0012ff0c 00404142 MemoryTest!WinMain+0x18
[f:\vs70builds\3077\vc\mfcatl\ship\atlmfc\src\mfc\appmodul.cpp @ 25]
0012ffc0 77e8141a MemoryTest!WinMainCRTStartup+0x1f2
[f:\vs70builds\3077\vc\crtbld\crt\src\crtexe.c @ 390]
0012fff0 00000000 kernel32!BaseProcessStart+0x23
The crash is happening at 0012f9d4 7c23abcc
MemoryTest!CMainFrame::OnViewAllocate+0xb3 .
I don't see this line when Use managed extensions is set to YES.
If you want, give me your email id I can send the test app
Setting that option in VS is changing the code path occuring during the
memory free. The new code path contains JIT'd code. So from the debugger's
point of view, this is code running on the heap which doesn't actually exist
in a module (hence the frame IP warning). Since there is no native debugger
support for managed code, your stack trace will not necessarily work. This
is why SOS exists; I really doubt you're hitting a debugger issue.
Which brings us to SOS. This will mostly depend on what information is in
the dump. SOS is only useful when the proper memory is available. For this
reason, it works great on a live process but not necessarily so well on
dumps. If your dump is a minidump, there is likely CLR state missing which
SOS is looking for when you use !clrstack to get your stack trace. Creating
a minidump with full memory should work around that, but then your minidumps
become huge.
--
Jason Shay [MSFT]
js...@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Kiran guptha" <Kiran...@discussions.microsoft.com> wrote in message
news:FF1A7B0D-B332-44C1...@microsoft.com...
Debug
0:000> !clrstack
Loaded Son of Strike data table version 5 from
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll"
Thread 0
ESP EIP
0x0012ddf4 0x7ffe0304 [FRAME: PInvokeCalliFrame]
0x0012de1c 0x030596e9 [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvStdcall CMOD_OPT
Microsoft.VisualC.IsLongModifier I4 MiniDumper.TopLevelFilter(Ptr ValueClass
_EXCEPTION_POINTERS)
at [+0x239] [+0xed] c:\projects\src\fst\mdump.cpp:80
0x0012eb70 0x02ba89a5 [FRAME: NDirectMethodFrameStandalone] [DEFAULT]
CMOD_OPT System.Runtime.CompilerServices.CallConvThiscall Void
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> >
>.__dtor(CMOD_OPT Microsoft.VisualC.IsConstModifier CMOD_OPT
Microsoft.VisualC.IsConstModifier Ptr ValueClass
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >)
0x0012eb80 0x03059483 [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvThiscall Ptr Void
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> >
>.__delDtor(CMOD_OPT Microsoft.VisualC.IsConstModifier CMOD_OPT
Microsoft.VisualC.IsConstModifier Ptr ValueClass
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >,UI4)
at [+0x13] [+0x6]
0x0012eb98 0x0305941f [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvThiscall Void
CTicketDlg.OnNewBuyBtn(CMOD_OPT Microsoft.VisualC.IsConstModifier CMOD_OPT
Microsoft.VisualC.IsConstModifier Ptr ValueClass CTicketDlg)
at [+0xbf] [+0x31] c:\projects\src\fst\ticketdlg.cpp:93
0x0012f694 0x02ba2848 [FRAME: NDirectMethodFrameStandalone] [DEFAULT] UI4
_WinMainCRTStartup()
0x0012f9b0 0x02ba2848 [FRAME: GCFrame]
0x0012fa94 0x02ba2848 [FRAME: GCFrame]
Release
0:000> !clrstack
Loaded Son of Strike data table version 5 from
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll"
Thread 0
ESP EIP
0x0012d52c 0x7ffe0304 [FRAME: InlinedCallFrame]
0x0012d520 0x01c9d3d9 [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvStdcall CMOD_OPT
Microsoft.VisualC.IsLongModifier I4 MiniDumper.TopLevelFilter(Ptr ValueClass
_EXCEPTION_POINTERS)
0x0012eb9c 0x018e6ebd [FRAME: NDirectMethodFrameStandalone] [DEFAULT]
CMOD_OPT System.Runtime.CompilerServices.CallConvThiscall Ptr ValueClass
CTradeEntry2Dlag2 CTradeEntry2Dlag2.__ctor(CMOD_OPT
Microsoft.VisualC.IsConstModifier CMOD_OPT Microsoft.VisualC.IsConstModifier
Ptr ValueClass CTradeEntry2Dlag2,I4,FNPTR [C]CMOD_OPT
System.Runtime.CompilerServices.CallConvCdecl Void(),Ptr ValueClass
FstTransactionKey,CMOD_OPT Microsoft.VisualC.IsCXXReferenceModifier Ptr
CMOD_OPT Microsoft.VisualC.IsConstModifier ValueClass
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >,I4)
0x0012ebbc 0x01c9cd84 [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvThiscall I4
?CreateTradeEntryDlg@CMainFrame@@$$FAAEHPAVFstTransactionKey@@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@W4TradeEntryTypeEnum@CTradeEntry2Dlag2@@H@Z(CMOD_OPT
Microsoft.VisualC.IsConstModifier CMOD_OPT Microsoft.VisualC.IsConstModifier
Ptr ValueClass CMainFrame,Ptr ValueClass FstTransactionKey,Ptr CMOD_REQD
Microsoft.VisualC.NeedsCopyConstructorModifier ValueClass
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >,I4,I4)
0x0012ec44 0x01c9cb16 [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvThiscall I4
?LaunchTradeEntry@CMainFrame@@$$FQAEHPAVFstTransactionKey@@V?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@W4TradeEntryTypeEnum@CTradeEntry2Dlag2@@VItpEnBuySell@@H@Z(CMOD_OPT
Microsoft.VisualC.IsConstModifier CMOD_OPT Microsoft.VisualC.IsConstModifier
Ptr ValueClass CMainFrame,Ptr ValueClass FstTransactionKey,Ptr CMOD_REQD
Microsoft.VisualC.NeedsCopyConstructorModifier ValueClass
ATL.CStringT<char,StrTraitMFC_DLL<char,ATL::ChTraitsCRT<char> > >,I4,Ptr
CMOD_REQD Microsoft.VisualC.NeedsCopyConstructorModifier ValueClass
ItpEnBuySell,I4)
0x0012ec50 0x01c9c9f3 [FRAME: InlinedCallFrame]
0x0012ecbc 0x01c9c9f3 [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvThiscall Void
CTicketDlg.LaunchTradeEntry(CMOD_OPT Microsoft.VisualC.IsConstModifier
CMOD_OPT Microsoft.VisualC.IsConstModifier Ptr ValueClass CTicketDlg,Ptr
CMOD_REQD Microsoft.VisualC.NeedsCopyConstructorModifier ValueClass
ItpEnBuySell)
0x0012ed6c 0x01c9c59f [DEFAULT] CMOD_OPT
System.Runtime.CompilerServices.CallConvThiscall Void
CTicketDlg.OnNewBuyBtn(CMOD_OPT Microsoft.VisualC.IsConstModifier CMOD_OPT
Microsoft.VisualC.IsConstModifier Ptr ValueClass CTicketDlg)
0x0012f694 0x018e69c8 [FRAME: NDirectMethodFrameStandalone] [DEFAULT] UI4
_WinMainCRTStartup()
0x0012f9b0 0x018e69c8 [FRAME: GCFrame]
0x0012fa94 0x018e69c8 [FRAME: GCFrame]
Basically "at [+0xbf] [+0x31] c:\projects\src\ticketdlg.cpp:93" is missing.
Also possible is that a PDB is being generated, but line info isn't being
put into it. I imagine there is an option in VS for this, too.
--
Jason Shay [MSFT]
js...@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Kiran guptha" <Kiran...@discussions.microsoft.com> wrote in message
news:3664C1A5-5E5E-4D04...@microsoft.com...
Thanks
-kiran
You're looking for a line like this:
Load Report: private symbols & lines, source indexed
The "& lines" specifies line information is in there. That doesn't
necessarily mean that the line info you're looking for is there, but it's a
start.
--
Jason Shay [MSFT]
js...@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Kiran guptha" <Kiran...@discussions.microsoft.com> wrote in message
news:DC6A1BBB-12ED-4E9C...@microsoft.com...
--
Jason Shay [MSFT]
js...@online.microsoft.com
This posting is provided "AS IS" with no warranties, and confers no rights
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Kiran guptha" <Kiran...@discussions.microsoft.com> wrote in message
news:BCE23BB2-B711-4E63...@microsoft.com...