WinDBG - Gateway error when requesting symbols

If it doesn't fit anywhere else, drop it in here. (not to be used as a chat/nonsense section)

Moderator: Moderator Team

Post Reply
Fraizeraust
Posts: 230
Joined: Thu Jan 05, 2017 11:46 am
Location: Italy
Contact:

WinDBG - Gateway error when requesting symbols

Post by Fraizeraust » Wed Sep 05, 2018 2:55 pm

I've got WinDBG installed and in order to actually debug something I must first set the correct symbols path for it. Although, despite numerous attempts, I always end up with an error message such like:

Code: Select all

*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\SYSTEM32\ntdll.dll -
This was when I tried to do some user-mode debugging with the Notepad application as an example -- from there. Before that I already set the sympath using the following command line:

Code: Select all

.sympath srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols
e:\localsymbols is the folder path which I want the PDB files to be downloaded while the link (as you can see) it's the Microsoft symbols server. Despite that, WinDBG fails to retrieve the required symbols and as a matter of curiosity I set !sym noisy for verbose symbols output so I can check what's going on. And this is what I got:

Code: Select all

************* Symbol Loading Error Summary **************
Module name            Error
ntdll                  0x801901f8 - Gateway timeout (504). : srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols
0:001> .sympath srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols
DBGHELP: Symbol Search Path: srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols
Symbol search path is: srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*e:\localsymbols*https://msdl.microsoft.com/download/symbols
SYMSRV:  BYINDEX: 0x3
         e:\localsymbols*https://msdl.microsoft.com/download/symbols
         ntdll.pdb
         75FAB4BA6FD24437B4F2839D8CF95D0E1
SYMSRV:  UNC: e:\localsymbols\ntdll.pdb\75FAB4BA6FD24437B4F2839D8CF95D0E1\ntdll.pdb - path not found
SYMSRV:  UNC: e:\localsymbols\ntdll.pdb\75FAB4BA6FD24437B4F2839D8CF95D0E1\ntdll.pd_ - path not found
SYMSRV:  UNC: e:\localsymbols\ntdll.pdb\75FAB4BA6FD24437B4F2839D8CF95D0E1\file.ptr - path not found
SYMSRV:  HTTPGET: /download/symbols/ntdll.pdb/75FAB4BA6FD24437B4F2839D8CF95D0E1/ntdll.pdb
SYMSRV:  HttpQueryInfo: 801901f6 - HTTP_STATUS_BAD_GATEWAY
SYMSRV:  RESULT: 0x801901F6
DBGHELP: C:\Windows\SYSTEM32\ntdll.pdb - file not found
DBGHELP: ntdll.pdb - file not found
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Windows\SYSTEM32\ntdll.dll - 
DBGHELP: ntdll - export symbols
No matter what, the HTTP request always returns HTTP_STATUS_BAD_GATEWAY. I am not sure if the problem comes from my backend or the symbols server is simply not reachable. Can you help me on this?

learn_more
Developer
Posts: 155
Joined: Fri Dec 19, 2014 10:00 pm

Re: WinDBG - Gateway error when requesting symbols

Post by learn_more » Wed Sep 05, 2018 7:30 pm

Are you behind a proxy?

Fraizeraust
Posts: 230
Joined: Thu Jan 05, 2017 11:46 am
Location: Italy
Contact:

Re: WinDBG - Gateway error when requesting symbols

Post by Fraizeraust » Wed Sep 05, 2018 9:44 pm

Nope, I am not behind a proxy. To make sure I checked the Windows Firewall that it should not interfere with WinDBG, I have also added WinDBG in the whitelist of applications that can access the Internet. The issue still occurs.

I use Windows 8.1 Pro by the way in case someone asks what OS I use.

karlexceed
Posts: 487
Joined: Thu Jan 10, 2013 6:17 pm
Contact:

Re: WinDBG - Gateway error when requesting symbols

Post by karlexceed » Wed Sep 05, 2018 11:21 pm

Just as a sanity check, can you access https://msdl.microsoft.com/download/symbols from a browser on the same PC?

Fraizeraust
Posts: 230
Joined: Thu Jan 05, 2017 11:46 am
Location: Italy
Contact:

Re: WinDBG - Gateway error when requesting symbols

Post by Fraizeraust » Thu Sep 06, 2018 10:19 am

Weird, I can get the symbols now. I'd safely say the Microsoft server was simply not reachable yesterday at all. Thank you guys for help nevertheless.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest