无法下载Microsoft符号-404错误

时间:2019-10-27 18:26:55

标签: windows symbols windbg

Microsoft符号服务器在线,但是以某种方式我无法下载任何符号。

我试图将其范围缩小到以下POC。它应该只下载aadtb.dll的符号,但会返回 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隧道,但均获得了相同的结果。 它在上周五25/10的工作环境完全不同的计算机上工作。

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

编辑

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\10\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

2 个答案:

答案 0 :(得分:4)

在Microsoft部分看来有点像SNAFU。因此,是的,就像@ RbMm所指出的那样,将电子邮件发送到WinDbgFb@microsoft.com以告知他们。也许也将其推文到Andy Luhrs。请记住,尽管这是一个很小的团队,他们可能直到星期一(在美国这里)都无法做任何事情。

答案 1 :(得分:0)

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

this可以帮助您吗?