Skip to content

"dotnet-pgo dump" throws "Same type X used as both ValueType and non-ValueType" #61604

Closed

Description

@EgorBo
Unhandled exception. System.Exception: Same type `[S.P.CoreLib]System.Runtime.InteropServices.GCHandle` used as both ValueType and non-ValueType
   at Microsoft.Diagnostics.Tools.Pgo.TypeRefTypeSystem.TypeRefTypeSystemType.SetIsValueType(Boolean isValueType) in /_/src/coreclr/tools/dotnet-pgo/TypeRefTypeSystem/TypeRefTypeSystemType.cs:line 50
   at Microsoft.Diagnostics.Tools.Pgo.TypeRefTypeSystem.TypeRefTypeSystemContext.TypeRefSignatureParserProvider.GetTypeFromReference(MetadataReader reader, TypeReferenceHandle handle, Byte rawTypeKind) in /_/src/coreclr/tools/dotnet-pgo/TypeRefTypeSystem/TypeRefSignatureParserProvider.cs:line 138
   at System.Reflection.Metadata.Ecma335.SignatureDecoder`2.DecodeTypeHandle(BlobReader& blobReader, Byte rawTypeKind, Boolean allowTypeSpecifications)
   at System.Reflection.Metadata.Ecma335.SignatureDecoder`2.DecodeType(BlobReader& blobReader, Boolean allowTypeSpecifications, Int32 typeCode)
   at System.Reflection.Metadata.Ecma335.SignatureDecoder`2.DecodeType(BlobReader& blobReader, Boolean allowTypeSpecifications, Int32 typeCode)
   at System.Reflection.Metadata.Ecma335.SignatureDecoder`2.DecodeMethodSignature(BlobReader& blobReader)
   at Microsoft.Diagnostics.Tools.Pgo.TypeRefTypeSystem.TypeRefTypeSystemContext..ctor(IEnumerable`1 refReaders) in /_/src/coreclr/tools/dotnet-pgo/TypeRefTypeSystem/TypeRefTypeSystemContext.cs:line 102
   at Microsoft.Diagnostics.Tools.Pgo.Program.InnerDumpMain(CommandLineOptions commandLineOptions) in /_/src/coreclr/tools/dotnet-pgo/Program.cs:line 254
   at Microsoft.Diagnostics.Tools.Pgo.Program.InnerMain(CommandLineOptions commandLineOptions) in /_/src/coreclr/tools/dotnet-pgo/Program.cs:line 224
   at Microsoft.Diagnostics.Tools.Pgo.Program.Main(String[] args) in /_/src/coreclr/tools/dotnet-pgo/Program.cs:line 129

and

Microsoft.Diagnostics.Tools.Pgo.TypeRefTypeSystem.TypeRefTypeSystemType
Unhandled exception. System.Exception: Same type `[S.P.CoreLib]System.Collections.Generic.KeyValuePair`2` used as both ValueType and non-ValueType

@AndyAyersMS @davidwrighton does it ring a bell? I used the latest version of dotnet-pgo tool (7.0.*)

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Nov 15, 2021
  2. added this to the 7.0.0 milestone on Nov 15, 2021
  3. AndyAyersMS commented on Nov 15, 2021

    @AndyAyersMS
    Member

    No, not familiar with this one.

  4. jakobbotsch commented on Nov 16, 2021

    @jakobbotsch
    Member

    Hmm, I tried to fix this problem in #52963. I wonder why we are seeing it again.

  5. removed
    untriagedNew issue has not been triaged by the area owner
    on Jan 11, 2022
  6. modified the milestones: 7.0.0, Future on Jul 19, 2022
  7. self-assigned this
    on Jun 9, 2023
  8. added a commit that references this issue on Jun 9, 2023
    f5fe276
  9. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 9, 2023
  10. added a commit that references this issue on Jun 12, 2023
    c6fd07b
  11. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Jun 12, 2023
  12. ghost locked as resolved and limited conversation to collaborators on Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions