Skip to content

<inheritdoc cref="Self" /> causes StackOverflowException #142

@Emik03

Description

@Emik03

The following code causes an unhandled exception.

/// <inheritdoc cref="A" />
public class A { }

Log:

  MSBuild version 17.4.1+9a89d02ff for .NET
Building the projects in this solution one at a time. To enable parallel build, please add the "-m" switch.
Build has started
Stack overflow.
   at System.Collections.Generic.GenericArraySortHelper`1[[ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider+IndexEntry, ICSharpCode.Decompiler, Version=7.2.0.6844, Culture=neutral, PublicKeyToken=d4bfe873e7598c49]].BinarySearch(IndexEntry[], Int32, Int32, IndexEntry)
   at System.Collections.Generic.GenericArraySortHelper`1[[ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider+IndexEntry, ICSharpCode.Decompiler, Version=7.2.0.6844, Culture=neutral, PublicKeyToken=d4bfe873e7598c49]].BinarySearch(IndexEntry[], Int32, Int32, IndexEntry, System.Collections.Generic.IComparer`1<IndexEntry>)
   at System.Array.BinarySearch[[ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider+IndexEntry, ICSharpCode.Decompiler, Version=7.2.0.6844, Culture=neutral, PublicKeyToken=d4bfe873e7598c49]](IndexEntry[], Int32, Int32, IndexEntry, System.Collections.Generic.IComparer`1<IndexEntry>)
   at System.Array.BinarySearch[[ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider+IndexEntry, ICSharpCode.Decompiler, Version=7.2.0.6844, Culture=neutral, PublicKeyToken=d4bfe873e7598c49]](IndexEntry[], IndexEntry)
   at ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider.GetDocumentation(System.String, Boolean)
   at ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider.GetDocumentation(System.String)
   at ICSharpCode.Decompiler.Documentation.XmlDocumentationProvider.GetDocumentation(ICSharpCode.Decompiler.TypeSystem.IEntity)
   at DefaultDocumentation.Internal.DocItemReader.TryGetDocumentation(ICSharpCode.Decompiler.TypeSystem.IEntity, System.Xml.Linq.XElement ByRef)
(above line repeated over and over)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions