TeamCity symbol server fails on a single PDB after TeamCity/symbol server upgrade

Hi,

I've recently upgraded TeamCity to version 2017.2.3 (build 51047) and also reinstalled the symbol server plugin.

Before the upgrade everything worked well, but now the symbol server plugin fails on a single PDB file (all other 10+ PDBs are indexed correctly).

Here's the error from the log file:

 

Indexing sources appeared in file C:\BuildAgent\work\MyPath\MyProject.pdb
[15:53:56]No source information found in pdb file C:\BuildAgent\work\MyPath\MyProject.pdb
[15:53:56]Running command C:\BuildAgent\plugins\symbol-server\bin\JetBrains.CommandLine.Symbols.exe dumpSymbolSign /o=C:\BuildAgent\temp\buildTmp\symbol-signature-local-7221248363654527085.xml /i=C:\BuildAgent\temp\globalTmp\dumpSymbolSign3253841479802023185.input
[15:53:57]
JetBrains.CommandLine.Symbols.exe ends with non-zero exit code ErrCode=1
StdOut:------------

StdErr:------------
size of offset table 1834 != files count 67370
at JetBrains.Metadata.Debug.Pdb.Dbi.DbiFileInfo..ctor(IBinaryReader reader, JetReadOnlyList`1 modules)
at JetBrains.Metadata.Debug.Pdb.Dbi.DbiStreamInfo..ctor(IBinaryReader reader)
at JetBrains.Metadata.Debug.Pdb.WindowsPdbFile.get_Dbi()
at JetBrains.Metadata.Debug.Pdb.PdbUtils.GetSignatureAndAge(WindowsPdbFile pdbFile, Guid& signature, UInt32& ageFromDbi, UInt32& ageFromRoot)
at JetBrains.Metadata.Debug.Pdb.PdbUtils.GetSignatureAndAge(FileSystemPath windowsPdbPath, Guid& signature, UInt32& ageFromDbi)
at JetBrains.Metadata.Debug.Pdb.PdbUtils.TryGetPdbDebugInfo(FileSystemPath pdbPath)
at JetBrains.CommandLine.Symbols.DumpSymbolsFileSignCommand.GetFileSignature(FileSystemPath targetFilePath)
at JetBrains.CommandLine.Symbols.DumpFilesSignCommandBase.Execute()

End----------------
.
[15:53:57]Stdout:
[15:53:57]
Stderr: size of offset table 1834 != files count 67370
at JetBrains.Metadata.Debug.Pdb.Dbi.DbiFileInfo..ctor(IBinaryReader reader, JetReadOnlyList`1 modules)
at JetBrains.Metadata.Debug.Pdb.Dbi.DbiStreamInfo..ctor(IBinaryReader reader)
at JetBrains.Metadata.Debug.Pdb.WindowsPdbFile.get_Dbi()
at JetBrains.Metadata.Debug.Pdb.PdbUtils.GetSignatureAndAge(WindowsPdbFile pdbFile, Guid& signature, UInt32& ageFromDbi, UInt32& ageFromRoot)
at JetBrains.Metadata.Debug.Pdb.PdbUtils.GetSignatureAndAge(FileSystemPath windowsPdbPath, Guid& signature, UInt32& ageFromDbi)
at JetBrains.Metadata.Debug.Pdb.PdbUtils.TryGetPdbDebugInfo(FileSystemPath pdbPath)
at JetBrains.CommandLine.Symbols.DumpSymbolsFileSignCommand.GetFileSignature(FileSystemPath targetFilePath)
at JetBrains.CommandLine.Symbols.DumpFilesSignCommandBase.Execute()
[15:53:57]Error occurred while processing symbols file C:\BuildAgent\work\MyPath\MyProject.pdb
[15:54:00]Error message is logged
[15:53:57]
java.lang.Exception: Failed to get signature of C:\BuildAgent\work\MyPath\MyProject.pdb
at jetbrains.buildServer.symbols.SymbolsIndexer.getPdbSignature(SymbolsIndexer.java:242)
at jetbrains.buildServer.symbols.SymbolsIndexer.processPdbArtifacts(SymbolsIndexer.java:204)
at jetbrains.buildServer.symbols.SymbolsIndexer.afterCollectingFiles(SymbolsIndexer.java:184)
at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at jetbrains.buildServer.util.EventDispatcher$3.run(EventDispatcher.java:126)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:71)
at jetbrains.buildServer.util.EventDispatcher.dispatch(EventDispatcher.java:120)
at jetbrains.buildServer.util.EventDispatcher$2.invoke(EventDispatcher.java:70)
at com.sun.proxy.$Proxy34.afterCollectingFiles(Unknown Source)
at jetbrains.buildServer.agent.impl.artifacts.ArtifactsBuilder.processArtifacts(ArtifactsBuilder.java:67)
at jetbrains.buildServer.agent.impl.artifacts.ArtifactsBuilder.build(ArtifactsBuilder.java:54)
at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor.processArtifacts(ArtifactProcessor.java:136)
at jetbrains.buildServer.agent.impl.artifacts.ArtifactProcessor.addNewArtifactsPath(ArtifactProcessor.java:100)
at jetbrains.buildServer.agent.impl.buildStages.finishStages.PublishArtifactsFStage.doFinishStage(PublishArtifactsFStage.java:54)
at jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.runFinishStage(BuildFinishStagesExecutor.java:28)
at jetbrains.buildServer.agent.impl.buildStages.BuildFinishStagesExecutor.doBuildFinishStages(BuildFinishStagesExecutor.java:20)
at jetbrains.buildServer.agent.impl.BuildRunActionImpl.runBuild(BuildRunActionImpl.java:63)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.doActualBuild(BuildAgentImpl.java:295)
at jetbrains.buildServer.agent.impl.BuildAgentImpl.access$100(BuildAgentImpl.java:53)
at jetbrains.buildServer.agent.impl.BuildAgentImpl$1.run(BuildAgentImpl.java:259)
at java.lang.Thread.run(Thread.java:745)

0
3 comments
Avatar
Permanently deleted user

I am also getting the same problem, that symbols are not being read as well as the symbol server is not returning the symbols to Visual Studio

0

Adi:

For reference, Dnolf created an issue in our tracker where this problem will be handled and where a patched plugin was made available for test purposes. Please check it out, watch and vote to stay up to date on its progress: https://youtrack.jetbrains.com/issue/TW-54542

0

@Adi, you could update your plugin to the latest version where this problem was resolved:

https://confluence.jetbrains.com/display/TW/Symbol+Server#SymbolServer-Downloaddownload

0

Please sign in to leave a comment.