none
Error in the symbol path when debug windows driver in Visual studio 2015 + WDK10 RRS feed

  • Question

  • I use host computer deploy and debug driver in target(win10 virtualbox, through serialport 1, baudrate:115200), I can load driver into target and check with command "!lmi filedisk", It was loaded. But It did not hit any break points. I checked ".reload -f" and it showed up:

    kd> .sympath Symbol search path is: http://referencesource.microsoft.com/symbols;https://msdl.microsoft.com/download/symbols;srv* Expanded Symbol search path is: http://referencesource.microsoft.com/symbols;https://msdl.microsoft.com/download/symbols;cache*;SRV*https://msdl.microsoft.com/download/symbols ************* Symbol Path validation summary ************** Response Time (ms) Location Deferred http://referencesource.microsoft.com/symbols Deferred https://msdl.microsoft.com/download/symbols Deferred srv* kd> .reload -f Connected to Windows 10 14393 x64 target at (Fri Apr 28 23:01:42.142 2017 (UTC + 7:00)), ptr64 TRUE Loading Kernel Symbols .. Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long. Run !sym noisy before .reload to track down problems loading symbols. ..........*** ERROR: Symbol file could not be found. Defaulted to export symbols for clipsp.sys - ................................*** ERROR: Symbol file could not be found. Defaulted to export symbols for VBoxGuest.sys - ................... ................*** ERROR: Symbol file could not be found. Defaulted to export symbols for VBoxSF.sys - .......*** ERROR: Module load completed but symbols could not be loaded for FileDisk.SYS ...*** ERROR: Module load completed but symbols could not be loaded for windrvr1230.sys .......*** ERROR: Symbol file could not be found. Defaulted to export symbols for VBoxMouse.sys - ..*** ERROR: Symbol file could not be found. Defaulted to export symbols for VBoxVideoW8.sys - ....*** ERROR: Symbol file could not be found. Defaulted to export symbols for drmk.sys - .........*** ERROR: Module load completed but symbols could not be loaded for MadBus.sys ................ ..........................*** ERROR: Module load completed but symbols could not be loaded for peauth.sys ....... Loading User Symbols Loading unloaded module list .......Unable to enumerate user-mode unloaded modules, Win32 error 0n30 ************* Symbol Loading Error Summary ************** Module name Error clipsp The system cannot find the file specified : http://referencesource.microsoft.com/symbols Signature does not match : C:\Users\3aoThinh95\AppData\Local\DBG\sym\clipsp.pdb\82BF23951435468AA821A930107751181\clipsp.pdb Signature does not match : C:\Users\3aoThinh95\AppData\Local\DBG\sym\clipsp.pdb\2B15CA722B65427FAB9EF42232CFD9BD1\clipsp.pdb Signature does not match : C:\Users\3aoThinh95\AppData\Local\DBG\sym\clipsp.pdb\82BF23951435468AA821A930107751181\clipsp.pdb VBoxGuest The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols VBoxSF The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols FileDisk The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols windrvr1230 The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols VBoxMouse The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols VBoxVideoW8 The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols drmk The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols MadBus The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols peauth The system cannot find the file specified : http://referencesource.microsoft.com/symbols The system cannot find the file specified : https://msdl.microsoft.com/download/symbols PDB not found : cache* The system cannot find the file specified : SRV*https://msdl.microsoft.com/download/symbols You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded. You should also verify that your symbol search path (.sympath) is correct.

    How can I fix this?





    • Edited by Baothinh95 Friday, April 28, 2017 5:22 PM
    Friday, April 28, 2017 5:21 PM

All replies

  • Hi,

     If 'filedisk" is the name of your driver - please tell us that it has nothing in common with some notorious old project found somewhere on the web. Otherwise, chances for useful replies are slim.

    Regards,

    -- pa


    • Edited by Pavel A Friday, April 28, 2017 9:43 PM
    • Marked as answer by Baothinh95 Saturday, April 29, 2017 2:10 PM
    • Unmarked as answer by Baothinh95 Saturday, April 29, 2017 2:10 PM
    Friday, April 28, 2017 9:42 PM
  • Would set explicitely environment variable _NT_SYMBOL_PATH.
    Also, see
    Debugger breakpoints are not triggered for kernel-mode driver
    https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/troubleshooting-configuration-of-driver-deployment--testing-and-debugging
    Eventually would try using cmds 'bp', 'bu' on function-entry instead of using GUI.   

    With kind regards
    Saturday, April 29, 2017 8:06 AM
  • This is windows driver sample in https://www.acc.umu.se/~bosse/ 
    Monday, May 1, 2017 3:28 AM
  • Would do:

    If service already started, stop service (net start/stop).
    Clear all breakpoints, add directory, where pdb of filedisk lives to sympath, break on loading filedisk.

    bc *
    .sympath+ <directory>
    sxe ld:filedisk.sys
    g
    Start service.
    After break-on-module-load, add breakpoint DriverEntry:
    bp filedisk!DriverEntry
    g

    Hitting this bp, set more bps at will.
    Execute application ...

    With kind regards
    Monday, May 1, 2017 5:32 PM
  • I followed these instructions. At the end, It still shows 

    kd> bp filedisk!DriverEntry
    Couldn't resolve error at 'filedisk!DriverEntry'

    I ran !analyze

    kd> !analyze
    Connected to Windows 10 14393 x64 target at (Tue May  2 21:50:18.692 2017 (UTC + 7:00)), ptr64 TRUE
    Loading Kernel Symbols
    ...............................................................
    
    
    Press ctrl-c (cdb, kd, ntsd) or ctrl-break (windbg) to abort symbol loads that take too long.
    Run !sym noisy before .reload to track down problems loading symbols.
    
    ................................................................
    .................................
    Loading User Symbols
    
    Loading unloaded module list
    ........
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for clipsp.sys - 
    *** ERROR: Module load completed but symbols could not be loaded for windrvr1230.sys
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for VBoxSF.sys - 
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for VBoxGuest.sys - 
    *** ERROR: Module load completed but symbols could not be loaded for MadBus.sys
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for VBoxMouse.sys - 
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for VBoxVideoW8.sys - 
    *** ERROR: Symbol file could not be found.  Defaulted to export symbols for drmk.sys - 
    *** ERROR: Module load completed but symbols could not be loaded for peauth.sys
    *** ERROR: Module load completed but symbols could not be loaded for FileDisk.SYS
    
    ************* Symbol Loading Error Summary **************
    Module name            Error
    clipsp                 PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\clipsp.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\clipsp.pdb
                           Signature does not match : c:\symbols\clipsp.pdb\2B15CA722B65427FAB9EF42232CFD9BD1\clipsp.pdb
    VBoxGuest              PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\VBoxGuest.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\VBoxGuest.pdb
                           The system cannot find the file specified : c:\symbols
    VBoxSF                 PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\VBoxSF.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\VBoxSF.pdb
                           The system cannot find the file specified : c:\symbols
    windrvr1230            PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\windrvr1230.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\windrvr1230.pdb
                           The system cannot find the file specified : c:\symbols
    VBoxMouse              PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\VBoxMouse.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\VBoxMouse.pdb
                           The system cannot find the file specified : c:\symbols
    VBoxVideoW8            PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\VBoxVideoW8.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\VBoxVideoW8.pdb
                           The system cannot find the file specified : c:\symbols
    drmk                   PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\drmk.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\drmk.pdb
                           The system cannot find the file specified : c:\symbols
    MadBus                 PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\MadBus.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\MadBus.pdb
                           The system cannot find the file specified : c:\symbols
    peauth                 PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\sys\PEAuth.pdb
                           PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\PEAuth.pdb
                           The system cannot find the file specified : c:\symbols
    FileDisk               PDB not found : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\sys\symbols\SYS\filedisk.pdb
                           Signature does not match : c:\users\3aothinh95\desktop\filedisk-21\sys\x64\debug\symbols\SYS\filedisk.pdb
                           The system cannot find the file specified : c:\symbols
    
    You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded.
    You should also verify that your symbol search path (.sympath) is correct.

    I am very confused now, please help me!

    Best regards.

    Tuesday, May 2, 2017 2:53 PM
  • This is windows driver sample in https://www.acc.umu.se/~bosse/ 

    Yes, that one exactly :-(

    Tuesday, May 2, 2017 8:29 PM
  • Are you sure, module filedisk matches filedisk.pdb - are they from the same build?
    https://blogs.msdn.microsoft.com/junfeng/2007/11/05/mismatched-pdbs-why/
    Others you may ignore.
    Third-party (VBox*) are not available by MS. Some symbol files for MS modules may not be available on purpose.
    Sometimes they are a little late.
    Sometimes mistakes happen ...
     
    With kind regards
    Tuesday, May 2, 2017 8:34 PM