Re: How to prepare a kernel driver pdb file for TraceView



That is probably the root cause of your problem. In the absense of manifests or .local files, the following algorithm is used to find DLLs

1. Directory containing the main executable file for the process.
2. Directory specified by the SetDllDirectory API, if this API has been called.
3. System directory.
4. Win16 system directory.
5. Windows directory.
6. %PATH%, in order of appearance in the environment variable.

My guess is that you are getting down to #3, and as there is a dbghelp.dll in the system directory, it is being loaded.

You might try copying the dbghelp.dll in bin\x86 to the directory containing tracepdb.exe and seeing if that works.

BTW, my supposition as to why this is working for Eliyas and not you is that Eliyas is using Windows Vista (which ships a new enough version of dbghelp so as to have SymSearch/SymSearchW), and you are using a non-Vista/Windows Server "Longhorn" version (perhaps Windows XP) that ships an old dbghelp which does not meet the requriements of tracepdb.exe. My guess is that nobody bothered testing this functionality on pre-Vista systems, so this slipped through to the RTM WDK.

--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"Carey McMaster" <mcmaster@xxxxxxxxxxx> wrote in message news:%23iLyaZQMHHA.4928@xxxxxxxxxxxxxxxxxxxxxxx
Ken,

There are 7 different versions of dbghelp.dll on my system (arghhhh).

In my XP x86 Checked env cmd window c:\winddk\6000\bin\x86 is the first path entry to have dbghelp.dll. I tried the debug method you gave me, and it shows that it is getting dbghelp.dll from \windows\system32 though my path says different. Am I hosed? Are the tracing tools hosed?

thanks,
-cm


"Skywing [MVP]" <skywing_NO_SPAM_@xxxxxxxxxxxxxxxxxxx> wrote in message news:%23mPfwGQMHHA.3288@xxxxxxxxxxxxxxxxxxxxxxx
Is it possible that the wrong version of dbghelp.dll (perhaps an old version in %systemroot%\system32) is being loaded instead? Try starting the process under a debugger (perhaps attach to the cmd instance associated wth the DDK build environment, use `.childdbg 1' and run the tracepdb command from there. Note the path to the loaded dbghelp.dll instance and make sure it's really the newer one in bin\x86 and not the old version that ships with the OS.

--
Ken Johnson (Skywing)
Windows SDK MVP
http://www.nynaeve.net
"Carey McMaster" <mcmaster@xxxxxxxxxxx> wrote in message news:eDgJhvPMHHA.2232@xxxxxxxxxxxxxxxxxxxxxxx
Eliyas, I get the same output as you do. Dbghelp.dll contains SymSearch at 145 and 146. I'm searching my disk for more dbghelp.dll

"Eliyas Yakub [MSFT]" <eliyasy@xxxxxxxxxxxxxxxxxxxx> wrote in message news:OAAB7fPMHHA.3268@xxxxxxxxxxxxxxxxxxxxxxx
You get this error if the dbghelp.dll doesn't have SymSearch function exported. Can you check your dgbhelp.dll to see if it exports this function?

This how you check for it.

C:\WinDDK\6000\tools\tracing\i386>link /dump /exports C:\WinDDK\6000\bin\x86\dbghelp.dll | findstr SymSearch
145 90 00037E40 SymSearch
146 91 00037EB0 SymSearchW

-Eliyas






.



Relevant Pages

  • Re: How to prepare a kernel driver pdb file for TraceView
    ... Do I need to do something else to get tracing turned on? ... Win16 system directory. ... BTW, my supposition as to why this is working for Eliyas and not you is that Eliyas is using Windows Vista, and you are using a non-Vista/Windows Server "Longhorn" version that ships an old dbghelp which does not meet the requriements of tracepdb.exe. ... SymSearch at 145 and 146. ...
    (microsoft.public.development.device.drivers)
  • Re: exec: redefine search path
    ... The 32-bit Windows system directory. ... trojan horse in a directory that I happen to be running in. ... searching the system directories first does protect ...
    (comp.lang.tcl)
  • Re: File compatibility issues with LAN drive
    ... treats local files with same extension as data files and launches them ... the application registered for that file extension. ... Windows did not have a file "executable" flag, ... So samba would default to setting the flag when writing a file ...
    (sci.electronics.design)
  • Re: Internet Explorer Wont Open Links to Local Files
    ... Unable to open local files from Internet Explorer window? ... > problems with certain hyperlinks to local files in Internet Explorer. ... No loading bar, no Windows ... > on several other XP SP 2 computers, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: ERROR MESSAGE when installing MS-DOS or 16 bit progam.....
    ... Windows is on the BOOT drive. ... C:\ is the System Drive (ie where NTLDR is). ... > It means the root of your system directory, ... I keep getting that error message: ...
    (microsoft.public.windowsxp.general)

Quantcast