相关文章推荐
开朗的丝瓜  ·  Asp.net ...·  1 年前    · 
潇洒的皮带  ·  Recordset2.RecordCount ...·  1 年前    · 
俊逸的土豆  ·  Non HTTP response ...·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Error: When I open the executable from "WinDbg", Symbol file could not be found. Defaulted to export symbols for ntdll.dll

Ask Question

Issue: I have generated the .msi file (installer) and once I installed that installer when i am trying to open, it is not responding.

To find the root cause, I am using WinDbg and opening the executable (PowerChart.exe) that has generated in the below path: C:\Program Files\EMR\PowerChart

I followed two approaches to load the executable but in both the approaches i am getting the errors like Symbols are not loading properly.

Approach1:

In the "symbol Search Path", i set "srv*c:\symbols*https://msdl.microsoft.com/download/symbols

(For this I created the "symbols" folder in the "C" drive, so that it will download the symbols and place it in "symbols" table)

Then opened the PowerChart.exe from "Open Executable..." in the File menu option of the Windbg.

Then i am getting the below errors:

Error: Symbol file could not be found. Defaulted to export symbols for ntdll.dll

When i run the URL (https://msdl.microsoft.com/download/symbols) in the browser it is showing "The Data you requested cannot be retrieved"

And also do we need to connect to internet to download these symbols? Is it the correct symbol path that i have given? Please help me to resolve this error.

Approach2:

When the .msi file is generated it also generated the .pdb file (EMR.pdb)in the below path:

E:\Code\EMR\bin\debug\en-US

so, what i have done is, I have attached the pdb path in the "symbol Search Path"

E:\Code\EMR\bin\debug\en-US

Then open the PowerChart.exe from "Open Executable..." Then i am getting the below errors:

Error: Symbol file could not be found. Defaulted to export symbols for ntdll.dll
Symbol Loading Error Summary.
Module name Error
ntdll PDB not found  : E:\Code|EMR\bind\debug\en-us\symbols\dll\ntdll.pdb

I am not sure whether this approach is correct or not.

Please help me and suggest how to resolve symbol errors?

Be careful with blindly copying the sympath string, sounds to me you forgot to create the c:\symbols directory. Turn on "noisy mode" so you can see more, as described here. – Hans Passant Oct 3, 2018 at 11:15 Use .symfix c:\symbols instead of .sympath with the URL. Try !sym noisy and .reload /f. "do we need to connect to internet to download these symbols?" WinDbg does that for you, but it needs an active Internet connection. – Thomas Weller Oct 3, 2018 at 18:11

From what you have shared I can see that the it is 'ntdll.dll' where you are having an issue. The symbols for that should really be coming from "srvc:\symbolshttps://msdl.microsoft.com/download/symbols, but that i sseemingly not happening.

If I may sugest you stick with the second approach and additionally set an envronment variable, i.e. '_NT_SYMBOL_PATH' to 'srvC:\symbolshttp://msdl.microsoft.com/download/symbols'.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.