Discussion:
WinDbg Symbol File Not Finding & App DLL Crash Problems
(too old to reply)
Deepak
2008-03-05 02:01:01 UTC
Permalink
Hello,
I have with me a perfectly working C/C++ solution in VS2003. I rebuilt the
app using VS2005 (WinXP SP2) and hell broke loose (with DLL). I am now trying
to find the cause (which WinDbg) reports as DLL Init Failure. But I dont know
which DLL is the cause, for symbols are not getting loaded properly. Here is
the log from WinDbg. My application is called (Xde.Exe) and loads a bunch of
DLLs as you may notice:

And yes, I have created dwonloaded complete symbol lib from microsoft. when
that didnt help, I set up symsrv path to online microsoft website as
suggested. Looks like it doesnt work either...?and then windbg complained of
not finding symbols in my exe, so, I made a symbol store for all the
directories in my project, and placed it in C:\Windows\WinSxS. The path to
the symbol file in windbg is set to:
srv*c:\symbol*http://msdl.microsoft.com/download/symbols; c:\winsxs

Please help....
---------------------------------------------------------------------------------------------
WARNING: Whitespace at start of path element
CommandLine:
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\xde.exe
DBGHELP: Symbol Search Path:
srv*c:\symbol*http://msdl.microsoft.com/download/symbols; c:\winsxs
Symbol search path is:
srv*c:\symbol*http://msdl.microsoft.com/download/symbols; c:\winsxs
Executable search path is:
DBGHELP: SharedUserData - virtual symbol module
ModLoad: 00400000 07f9d000 xde.exe
ModLoad: 7c900000 7c9b0000 ntdll.dll
AVRF: xde.exe: pid 0xF08: flags 0x80000181: application verifier enabled
ModLoad: 5ad10000 5ad56000 C:\WINDOWS\System32\verifier.dll
ModLoad: 00370000 00398000 C:\WINDOWS\System32\vrfcore.dll
ModLoad: 003a0000 003d9000 C:\WINDOWS\System32\vfbasics.dll
ModLoad: 003e0000 003f9000 C:\WINDOWS\System32\vfcompat.dll
ModLoad: 76080000 760e5000 C:\WINDOWS\System32\msvcp60.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 7c800000 7c8f5000 C:\WINDOWS\system32\KERNEL32.dll
AVRF: verifier.dll provider initialized for xde.exe with flags 0x80000181
ModLoad: 10000000 100a9000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\OSMDLL.dll
ModLoad: 10200000 10321000
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\MSVCR80D.dll
ModLoad: 0a040000 0a064000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\commondll.dll
ModLoad: 7e410000 7e4a0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 77f10000 77f57000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 0a080000 0a0ac000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HmsControlWin.dll
ModLoad: 781d0000 7841d000
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_257740a4\MFC80D.DLL
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f02000 C:\WINDOWS\system32\RPCRT4.dll
ModLoad: 77fe0000 77ff1000 C:\WINDOWS\system32\Secur32.dll
ModLoad: 77120000 771ab000 C:\WINDOWS\system32\OLEAUT32.dll
ModLoad: 774e0000 7761d000 C:\WINDOWS\system32\ole32.dll
ModLoad: 0a0c0000 0a11e000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HMIWrapperReceiver.dll
ModLoad: 0a130000 0a16a000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HCXIPC.dll
ModLoad: 0a180000 0a19b000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HCXLog.dll
ModLoad: 10480000 1057e000
C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_5490cd9f\MSVCP80D.dll
ModLoad: 0a1b0000 0a1cd000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\IPC.dll
ModLoad: 0a1e0000 0a20d000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HMIWrapper.dll
ModLoad: 0a220000 0a255000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\STDDLL.dll
ModLoad: 0a270000 0a290000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\HCXMemory.dll
ModLoad: 0a2a0000 0a2e2000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\SharedBuffer.dll
ModLoad: 0a300000 0a330000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\AUIWrapper.dll
ModLoad: 0a340000 0a3a9000
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\MyListDll.dll
ModLoad: 763b0000 763f9000 C:\WINDOWS\system32\comdlg32.dll
ModLoad: 5d090000 5d12a000 C:\WINDOWS\system32\COMCTL32.dll
ModLoad: 7c9c0000 7d1d6000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 71b20000 71b32000 C:\WINDOWS\system32\MPR.dll
ModLoad: 76b40000 76b6d000 C:\WINDOWS\system32\WINMM.dll
(f08.14f4): Break instruction exception - code 80000003 (first chance)
eax=08fa6fec ebx=7ffdb000 ecx=00000003 edx=00000008 esi=08faafb0 edi=08fa6fec
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000202
DBGHELP: ntdll - public symbols
c:\symbol\ntdll.pdb\36515FB5D04345E491F672FA2E2878C02\ntdll.pdb
ntdll!DbgBreakPoint:
7c901230 cc int 3
----------------------------------------------------------------------------------------------
This is where the debugger stops, because it has loaded all DLLs, Initiazed
Static Variables, etc. So, when I press GO in Windbg, I get the following
----------------------------------------------------------------------------------------------
0:000> g
(f08.14f4): Unknown exception - code c0000142 (first chance)
(f08.14f4): Unknown exception - code c0000142 (!!! second chance !!!)
eax=0012fc54 ebx=00000000 ecx=0012fc80 edx=7c90eb94 esi=7ffdb000 edi=c0000142
eip=7c964ed1 esp=0012fc54 ebp=0012fca4 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
ntdll!RtlRaiseStatus+0x26:
7c964ed1 c9 leave
-----------------------------------------------------------------------------------------------
*******************************************************************************
*
*
* Exception Analysis
*
*
*
*******************************************************************************

SYMSRV: c:\symbol\vrfcore.pdb\040CD97621E640D39563F6112B3673C11\vrfcore.pdb
not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/vrfcore.pdb/040CD97621E640D39563F6112B3673C11/vrfcore.pdb not found
DBGHELP: c:\winsxs\vrfcore.pdb - file not found
DBGHELP: c:\winsxs\dll\vrfcore.pdb - file not found
DBGHELP: c:\winsxs\symbols\dll\vrfcore.pdb - file not found
DBGHELP: vrfcore - private symbols & lines
C:\WINDOWS\System32\vrfcore.pdb
DBGHELP: verifier - public symbols
c:\symbol\verifier.pdb\3B7D84BF1\verifier.pdb
DBGHELP: KERNEL32 - public symbols
c:\symbol\kernel32.pdb\CE65FAF896A046629C9EC86F626344302\kernel32.pdb
SYMSRV: c:\symbol\xde.pdb\80C26C708A894BA2B456AAFB4ABD6F1F6\xde.pdb not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.pdb/80C26C708A894BA2B456AAFB4ABD6F1F6/xde.pdb not found
DBGHELP: c:\winsxs\xde.pdb - file not found
DBGHELP: c:\winsxs\exe\xde.pdb - file not found
DBGHELP: c:\winsxs\symbols\exe\xde.pdb - file not found
*** WARNING: Unable to verify checksum for xde.exe
DBGHELP: xde - private symbols & lines

C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\NaviNam\xde\Debug\xde.pdb
Matched: 7c8866fc KERNEL32!BasepAppCertDllsList = <no type information>
Matched: 7c8848d0 KERNEL32!BasepAppCertDllsList = <no type information>
DBGHELP: ole32 - public symbols
c:\symbol\ole32.pdb\683B65B246F4418796D2EE6D4C55EB112\ole32.pdb
DBGHELP: USER32 - public symbols
c:\symbol\user32.pdb\92D15332471547DCA0D75061B8B6CDA42\user32.pdb
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
DBGHELP: c:\symbol\msvcrt.dll\4110975258000\msvcrt.dll - OK
DBGHELP: c:\symbol\ntdll.dll\411096B4b0000\ntdll.dll - OK
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
SYMSRV: c:\symbol\xde.exe\47CD9DAB7b9d000\xde.exe not found
SYMSRV:
http://msdl.microsoft.com/download/symbols/xde.exe/47CD9DAB7b9d000/xde.exe
not found
DBGHELP: c:\symbol\msvcrt.dll\4110975258000\msvcrt.dll - OK
DBGHELP: c:\symbol\ntdll.dll\411096B4b0000\ntdll.dll - OK
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: kernel32!pNlsUserInfo ***
*** ***
*************************************************************************
*************************************************************************
*** ***
*** ***
*** Your debugger is not using the correct symbols ***
*** ***
*** In order for this command to work properly, your symbol path ***
*** must point to .pdb files that have full type information. ***
*** ***
*** Certain .pdb files (such as the public OS symbols) do not ***
*** contain the required information. Contact the group that ***
*** provided you with these symbols if you need this command to ***
*** work. ***
*** ***
*** Type referenced: kernel32!pNlsUserInfo ***
*** ***
*************************************************************************

FAULTING_IP:
ntdll!RtlRaiseStatus+26
7c964ed1 c9 leave

EXCEPTION_RECORD: ffffffff -- (.exr 0xffffffffffffffff)
ExceptionAddress: 7c964ed1 (ntdll!RtlRaiseStatus+0x00000026)
ExceptionCode: c0000142
ExceptionFlags: 00000001
NumberParameters: 0

FAULTING_THREAD: 000014f4

DEFAULT_BUCKET_ID: STATUS_DLL_INIT_FAILED

PROCESS_NAME: xde.exe

ERROR_CODE: (NTSTATUS) 0xc0000142 - {DLL Initialization Failed}
Initialization of the dynamic link library %hs failed. The process is
terminating abnormally.

NTGLOBALFLAG: 2000100

APPLICATION_VERIFIER_FLAGS: 80000181

LAST_CONTROL_TRANSFER: from 7c93f8fb to 7c964ed1

STACK_TEXT:
0012fca4 7c93f8fb c0000142 0012fd30 7e41b3f9 ntdll!RtlRaiseStatus+0x26
0012fd1c 7c90eac7 0012fd30 7c900000 00000000 ntdll!_LdrpInitialize+0x241
00000000 00000000 00000000 00000000 00000000 ntdll!KiUserApcDispatcher+0x7


PRIMARY_PROBLEM_CLASS_DATA: WinSta0\Default

PRIMARY_PROBLEM_CLASS: STATUS_DLL_INIT_FAILED

BUGCHECK_STR: APPLICATION_FAULT_STATUS_DLL_INIT_FAILED

FOLLOWUP_IP:
ntdll!RtlRaiseStatus+26
7c964ed1 c9 leave

SYMBOL_STACK_INDEX: 0

SYMBOL_NAME: ntdll!RtlRaiseStatus+26

FOLLOWUP_NAME: MachineOwner

MODULE_NAME: ntdll

IMAGE_NAME: ntdll.dll

DEBUG_FLR_IMAGE_TIMESTAMP: 411096b4

STACK_COMMAND: ~0s ; dt ntdll!LdrpLastDllInitializer BaseDllName ; dt
ntdll!LdrpFailureData ; kb

FAILURE_BUCKET_ID: ntdll.dll!RtlRaiseStatus_c0000142_STATUS_DLL_INIT_FAILED

BUCKET_ID: APPLICATION_FAULT_STATUS_DLL_INIT_FAILED_ntdll!RtlRaiseStatus+26

Followup: MachineOwner
----------------------------------------------------------------------------------------------
Jeffrey Walton
2008-03-21 18:07:58 UTC
Permalink
Hi Deepak,
srv*c:\symbol*http://msdl.microsoft.com/download/symbols;c:\winsxs
I believe your _NT_SYMBOL_PATH is not formed correctly. ';' is the
previous style's path separator. I'm not sure what c:\winsxs is, so I
will explain mine.

SRV*C:\Symbols*\\Euclid\Symbols*http://msdl.microsoft.com/download/
symbols
C:\Symbols - my local machine's symbol cache
\\Euclid\Symbols - my intranet's symbol server
http://msdl.microsoft.com/download/symbols - the Microsoft symbol
server

There is no special 'server' beind \\Euclid\Symbols. It is on my File
Server (Euclid) shared as 'Symbols'. You might also want to upload
your dll's symbols to your local cache or your symbol server.

Jeff
Hello,
I have with me a perfectly working C/C++ solution in VS2003. I rebuilt the
app using VS2005 (WinXP SP2) and hell broke loose (with DLL). I am now trying
to find the cause (which WinDbg) reports as DLL Init Failure. But I dont know
which DLL is the cause, for symbols are not getting loaded properly. Here is
the log from WinDbg. My application is called (Xde.Exe) and loads a bunch of
And yes, I have created dwonloaded complete symbol lib from microsoft. when
that didnt help, I set up symsrv path to online microsoft website as
suggested. Looks like it doesnt work either...?and then windbg complained of
not finding symbols in my exe, so, I made a symbol store for all the
directories in my project, and placed it in C:\Windows\WinSxS. The path to
srv*c:\symbol*http://msdl.microsoft.com/download/symbols;c:\winsxs
Please help....
---------------------------------------------------------------------------­------------------
WARNING: Whitespace at start of path element
C:\WINCE500\PBworkspaces\AppRoot\Applicationz\Applicationz\Applications\Nav­iNam\xde\Debug\xde.exe
srv*c:\symbol*http://msdl.microsoft.com/download/symbols;c:\winsxs
srv*c:\symbol*http://msdl.microsoft.com/download/symbols;c:\winsxs
[SNIP]

Loading...