未下载 Microsoft 符号 - 404 错误

Microsoft symbols don't get downloaded - 404 error

Microsoft 符号服务器在线,但不知何故我无法下载任何 个符号。

我试图将范围缩小到以下 POC。它应该只下载 aadtb.dll 的符号,但它 returns a HTTP_STATUS_NOT_FOUND.

symchk /v /r c:\windows\system32\aadtb.dll /s SRV*c:\symbols*https://msdl.microsoft.com/download/symbols

或者,我尝试使用以下不同的 Powershell 方法下载 pdb,但这也返回了 404 消息

$url = "https://msdl.microsoft.com/download/symbols/aadtb.pdb/BC45F7DA843249FFA96D9396BEE5F35D1/aadtb.pdb"
$output = "c:\test.pdb"

(New-Object System.Net.WebClient).DownloadFile($url, $output)
Invoke-WebRequest -Uri $url -OutFile $output
Start-BitsTransfer -Source $url -Destination $output

我仍然怀疑我这边有问题,但请注意,我确实在两台不同的机器上尝试过 3 个不同的 VPN 隧道,结果都是一样的。 上周五 10 月 25 日在一台完全不同的机器上工作。

在完全发疯之前,有人可以验证他们是否仍然可以下载符号,最好是我提到的符号吗?

编辑

kernel32.dll 和 ntdll 给出相同的结果 为简洁起见被删减

symchk /v c:\windows\system32\kernel32.dll /s SRV*c:\symbols*https://msdl.microsoft.com/download/symbols
symchk /v c:\windows\system32\ntdll.dll /s SRV*c:\symbols*https://msdl.microsoft.com/download/symbols

SYMSRV:  HTTPGET: /download/symbols/kernel32.pdb/5A77DE8CE8D58731F0EA38F1C92F48D81/kernel32.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND

SYMSRV:  HTTPGET: /download/symbols/ntdll.pdb/0C2E19EA1901E9B82E4567D2D21E56D21/ntdll.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND

编辑 2

c:\Program Files (x86)\Windows Kits\Debuggers\x64>ver

Microsoft Windows [Version 10.0.18362.418]

symchk 的输出

SRV*c:\symbols*http://msdl.microsoft.com/download/symbols

[SYMCHK] Searching for symbols to c:\windows\system32\aadtb.dll in path SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
DBGHELP: Symbol Search Path: SRV*c:\symbols*http://msdl.microsoft.com/download/symbols
[SYMCHK] Using search path "SRV*c:\symbols*http://msdl.microsoft.com/download/symbols"
DBGHELP: No header for c:\windows\system32\aadtb.dll.  Searching for image on disk
DBGHELP: c:\windows\system32\aadtb.dll - OK
SYMSRV:  BYINDEX: 0x1
         c:\symbols*http://msdl.microsoft.com/download/symbols
         aadtb.pdb
         BC45F7DA843249FFA96D9396BEE5F35D1
SYMSRV:  UNC: c:\symbols\aadtb.pdb\BC45F7DA843249FFA96D9396BEE5F35D1\aadtb.pdb - path not found
SYMSRV:  UNC: c:\symbols\aadtb.pdb\BC45F7DA843249FFA96D9396BEE5F35D1\aadtb.pd_ - path not found
SYMSRV:  UNC: c:\symbols\aadtb.pdb\BC45F7DA843249FFA96D9396BEE5F35D1\file.ptr - path not found
SYMSRV:  HTTPGET: /download/symbols/index2.txt
SYMSRV:  HttpQueryInfo: 80190190 - HTTP_STATUS_BAD_REQUEST
SYMSRV:  HTTPGET: /download/symbols/aadtb.pdb/BC45F7DA843249FFA96D9396BEE5F35D1/aadtb.pdb
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /download/symbols/aadtb.pdb/BC45F7DA843249FFA96D9396BEE5F35D1/aadtb.pd_
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  HTTPGET: /download/symbols/aadtb.pdb/BC45F7DA843249FFA96D9396BEE5F35D1/file.ptr
SYMSRV:  HttpQueryInfo: 80190194 - HTTP_STATUS_NOT_FOUND
SYMSRV:  RESULT: 0x80190194
DBGHELP: aadtb - no symbols loaded
[SYMCHK] MODULE64 Info ----------------------
[SYMCHK] Struct size: 1680 bytes
[SYMCHK] Base: 0x0000000180000000
[SYMCHK] Image size: 1986560 bytes
[SYMCHK] Date: 0x5c901636
[SYMCHK] Checksum: 0x001eadb3
[SYMCHK] NumSyms: 0
[SYMCHK] SymType: SymNone
[SYMCHK] ModName: aadtb
[SYMCHK] ImageName: c:\windows\system32\aadtb.dll
[SYMCHK] LoadedImage: c:\windows\system32\aadtb.dll
[SYMCHK] PDB: ""
[SYMCHK] CV: RSDS
[SYMCHK] CV DWORD: 0x53445352
[SYMCHK] CV Data:  aadtb.pdb
[SYMCHK] PDB Sig:  0
[SYMCHK] PDB7 Sig: {BC45F7DA-8432-49FF-A96D-9396BEE5F35D}
[SYMCHK] Age: 1
[SYMCHK] PDB Matched:  TRUE
[SYMCHK] DBG Matched:  TRUE
[SYMCHK] Line nubmers: FALSE
[SYMCHK] Global syms:  FALSE
[SYMCHK] Type Info:    FALSE
[SYMCHK] ------------------------------------
SymbolCheckVersion  0x00000002
Result              0x00010001
DbgFilename         aadtb.dbg
DbgTimeDateStamp    0x00000000
DbgSizeOfImage      0x00000000
DbgChecksum         0x00000000
PdbFilename         aadtb.pdb
PdbSignature        {BC45F7DA-8432-49FF-A96D-9396BEE5F35D}
PdbDbiAge           0x00000001
[SYMCHK] [ 0x00000000 - 0x00010001 ] Checked "c:\windows\system32\aadtb.dll"
SYMCHK: aadtb.dll            FAILED  - aadtb.pdb mismatched or not found

SYMCHK: FAILED files = 1
SYMCHK: PASSED + IGNORED files = 0

Powershell 下载方法的输出

Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
At line:4 char:1
+ (New-Object System.Net.WebClient).DownloadFile($url, $output)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Invoke-WebRequest : The remote server returned an error: (404) Not Found.
At line:5 char:1
+ Invoke-WebRequest -Uri $url -OutFile $output
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Start-BitsTransfer : HTTP status 404: The requested URL does not exist on the server.
At line:6 char:1
+ Start-BitsTransfer -Source $url -Destination $output
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Start-BitsTransfer], Exception
    + FullyQualifiedErrorId : StartBitsTransferCOMException,Microsoft.BackgroundIntelligentTransfer.Management.NewBitsTransferCommand

服务器上根本不存在该文件。

this可以帮到你吗?

它看起来像 Microsoft 方面的一些 SNAFU。所以,是的,就像@RbMm pointed out, send an email to WinDbgFb@microsoft.com to let them know. And maybe also tweet it to Andy Luhrs。请记住,这是一个小团队,他们可能要到星期一才能做任何事情(在美国。)