Skip to content

Nest 1.7.1 analysis crashes #12

Description

@elias551

Hello,

I'm using the sonar jenkins module, and since the integration of Nest 1.7.1 in my project I cannot use sonar anymore. Here is the error I get:

12:03:31.413 INFO  - Unhandled Exception: Microsoft.Cci.Pdb.PdbDebugException: Unknown custom metadata item kind: 7
12:03:31.413 INFO  -    at Microsoft.Cci.Pdb.PdbFunction.ReadCustomMetadata(BitAccess bits)
12:03:31.413 INFO  -    at Microsoft.Cci.Pdb.PdbFunction..ctor(ManProcSym proc, BitAccess bits)
12:03:31.413 INFO  -    at Microsoft.Cci.Pdb.PdbFunction.LoadManagedFunctions(BitAccess bits, UInt32 limit, Boolean readStrings)
12:03:31.413 INFO  -    at Microsoft.Cci.Pdb.PdbFile.LoadFuncsFromDbiModule(BitAccess bits, DbiModuleInfo info, IntHashTable names, ArrayList funcList, Boolean readStrings, MsfDirectory dir, Dictionary`2 nameIndex, PdbReader reader)
12:03:31.413 INFO  -    at Microsoft.Cci.Pdb.PdbFile.LoadFunctions(Stream read, Dictionary`2& tokenToSourceMapping, String& sourceServerData)
12:03:31.413 INFO  -    at Mono.Cecil.Pdb.PdbReader.PopulateFunctions()
12:03:31.413 INFO  -    at Mono.Cecil.Pdb.PdbReader.ProcessDebugHeader(ImageDebugDirectory directory, Byte[] header)
12:03:31.413 INFO  -    at Mono.Cecil.ModuleDefinition.ProcessDebugHeader()
12:03:31.413 INFO  -    at Mono.Cecil.ModuleDefinition.ReadSymbols(ISymbolReader reader)
12:03:31.413 INFO  -    at Mono.Cecil.ModuleDefinition.ReadSymbols()
12:03:31.413 INFO  -    at DependencyParser.Program.Analysis(XmlTextWriter writer, ModuleDefinition module, String fullPath, Boolean withTypes)
12:03:31.413 INFO  -    at DependencyParser.Program.Main(String[] args)

So I've recompiled your project and the problem seems to come from the Mono.Cecil lib. You are using version 0.9.5.4, and the update to version 0.9.6.1 seems to fix the problem.

So 2 questions:

  1. Is it possible for you to release a new version with the last version of Mono.Cecil?
  2. Can you add some logs in the Analysis method? If there were a trace in the console saying which lib broke the analysis that would be very insightful

Regards,
Elias

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions