Hi Jeffrey,
Thank you for your help.
I am working with WinDbg v6.6.7.5.
(I am doing this on a small test app since it is easly reproducable on this
app.)
I started WinDbg, set thhe symbol path to the path app is located (where
Visual Studio puts it, in the bin\debug folder).
Then I and attached to the .NET process.
then I loaded SOS (.load
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\SOS.dll;)
I ran all the commands as you suggests the output is in the end of this
message (lm, lmi, dh, dh -stat).
however, it looks like the checksum (!dh [module name] command) is zero.
why is that ? what is wrong ?
----------------------- commands output -------------------------------
0:003> lm
start end module name
00400000 00408000 ConsoleDebugTest (deferred)
5d090000 5d12a000 comctl32_5d090000 (deferred)
629c0000 629c9000 LPK (deferred)
74d90000 74dfb000 USP10 (deferred)
76390000 763ad000 IMM32 (deferred)
773d0000 774d3000 comctl32 (deferred)
774e0000 7761d000 ole32 (deferred)
77c10000 77c68000 msvcrt (deferred)
77dd0000 77e6b000 ADVAPI32 (deferred)
77e70000 77f01000 RPCRT4 (deferred)
77f10000 77f57000 GDI32 (deferred)
77f60000 77fd6000 SHLWAPI (deferred)
78130000 781cb000 MSVCR80 (deferred)
79000000 79045000 mscoree (deferred)
79060000 790b3000 mscorjit (deferred)
790c0000 79b90000 mscorlib_ni (deferred)
79e70000 7a3d6000 mscorwks (deferred)
7c800000 7c8f5000 KERNEL32 (deferred)
7c900000 7c9b0000 ntdll (export symbols)
C:\WINDOWS\system32\ntdll.dll
7c9c0000 7d1d6000 shell32 (deferred)
7e410000 7e4a1000 USER32 (deferred)
---------------
0:003> !lmi ConsoleDebugTest
Loaded Module Info: [consoledebugtest]
Module: ConsoleDebugTest
Base Address: 00400000
Image Name: C:\stuff\Visual Studio
Projects\ConsoleDebugTest\bin\Debug\ConsoleDebugTest.exe
Machine Type: 332 (I386)
Time Stamp: 4729b62d Thu Nov 01 13:19:09 2007
Size: 8000
CheckSum: 0
Characteristics: 10e
Debug Data Dirs: Type Size VA Pointer
CODEVIEW 68, 27b4, 17b4 RSDS - GUID:
{3EA45616-C090-46BB-BD33-F99323 C4F8B}
Age: 1, Pdb: C:\stuff\Visual Studio
Projects\ConsoleDebugTest\obj\Debug\ConsoleDebugTest.pdb
Symbol Type: DEFERRED - No error - symbol load deferred
Load Report: no symbols loaded
---------------
0:003> !dh ConsoleDebugTest
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
14C machine (i386)
3 number of sections
4729B62D time date stamp Thu Nov 01 13:19:09 2007
0 file pointer to symbol table
0 number of symbols
E0 size of optional header
10E characteristics
Executable
Line numbers stripped
Symbols stripped
32 bit word machine
OPTIONAL HEADER VALUES
10B magic #
8.00 linker version
1000 size of code
2000 size of initialized data
0 size of uninitialized data
78C04010 address of entry point
2000 base of code
----- new -----
00400000 image base
2000 section alignment
1000 file alignment
3 subsystem (Windows CUI)
4.00 operating system version
0.00 image version
4.00 subsystem version
8000 size of image
1000 size of headers
0 checksum
00100000 size of stack reserve
00001000 size of stack commit
00100000 size of heap reserve
00001000 size of heap commit
0 [ 0] address [size] of Export Directory
281C [ 4F] address [size] of Import Directory
4000 [ 3A8] address [size] of Resource Directory
0 [ 0] address [size] of Exception Directory
0 [ 0] address [size] of Security Directory
6000 [ C] address [size] of Base Relocation Directory
2798 [ 1C] address [size] of Debug Directory
0 [ 0] address [size] of Description Directory
0 [ 0] address [size] of Special Directory
0 [ 0] address [size] of Thread Storage Directory
0 [ 0] address [size] of Load Configuration Directory
0 [ 0] address [size] of Bound Import Directory
2000 [ 8] address [size] of Import Address Table Directory
0 [ 0] address [size] of Delay Import Directory
2008 [ 48] address [size] of COR20 Header Directory
0 [ 0] address [size] of Reserved Directory
SECTION HEADER #1
.text name
874 virtual size
2000 virtual address
1000 size of raw data
1000 file pointer to raw data
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
60000020 flags
Code
(no align specified)
Execute Read
Debug Directories(1)
Type Size Address Pointer
cv 68 27b4 17b4 Format: RSDS, guid, 1, C:\stuff\Visual
Studio Projects\ConsoleDebugTest\obj\Debug\ConsoleDebugTest.pdb
SECTION HEADER #2
.rsrc name
3A8 virtual size
4000 virtual address
1000 size of raw data
2000 file pointer to raw data
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40000040 flags
Initialized Data
(no align specified)
Read Only
SECTION HEADER #3
.reloc name
C virtual size
6000 virtual address
1000 size of raw data
3000 file pointer to raw data
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42000040 flags
Initialized Data
Discardable
(no align specified)
Read Only
---------------
0:003> !dh -stat
*** WARNING: Unable to verify checksum for C:\stuff\Visual Studio
Projects\ConsoleDebugTest\bin\Debug\ConsoleDebugTest.exe
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\comctl32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\LPK.DLL -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\USP10.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\IMM32.DLL -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\ole32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\msvcrt.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\ADVAPI32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\RPCRT4.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\GDI32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\SHLWAPI.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700\MSVCR80.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\mscoree.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll -
*** WARNING: Unable to verify checksum for
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\fe3022d80b5605cfa289f5092b97e58c\mscorlib.ni.dll
*** ERROR: Module load completed but symbols could not be loaded for
C:\WINDOWS\assembly\NativeImages_v2.0.50727_32\mscorlib\fe3022d80b5605cfa289f5092b97e58c\mscorlib.ni.dll
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\KERNEL32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\shell32.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\USER32.dll -
--
Asher.
Post by Jeffrey Tan[MSFT]Hi Asher,
Is your dump file a minidump or full dump? Have you included the binary
images in the dump file?(default minidump will not include binary images)
If you input "lm" command in the windbg, can you verify if the symbols are
loaded?
Further, you may use "!lmi [module_name]" to check if your image module has
the correct checksum field set. Also, you may use "!dh [module_name]" to
examine the PE module header.
Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights