Skip to content

dotnet-dump analyze causes an Exception #3187

Closed

Description

@jw30-lee

Hello.
The following exception occurs when using dotnet-dump

sh-3.2# dotnet dump analyze /opt/usr/home/owner/share/dotnet/doredump.23321
Loading core dump: /opt/usr/home/owner/share/dotnet/doredump.23321 ...
Ready to process analysis commands. Type 'help' to list available commands or 'help [command]' to get detailed help on a command.
Type 'quit' or 'exit' to exit the session.
Unhandled exception: System.ArgumentOutOfRangeException: Count cannot be less than zero. (Parameter 'count')
   at System.String.Cor(Char c, Int32 count)
   at Microsoft.Diagnostics.Repl.ConsoleProvider.ClearLine()
   at Microsoft.Diagnostics.Repl.ConsoleProvider.RefreshLine()
   at Microsoft.Diagnostics.Repl.ConsoleProvider.Start(Func`3 dispatchCommand)
   at Microsoft.Diagnostics.Tools.Dump.Analyzer.Analyze(FileInfo dump_path, String[] command)
   at System.CommandLine.Invocation.CommandHandler.GetResultCodeAsync(Object value, InvocationContext context)
   at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
   at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c.<<UseParseErrorReporting>b__22_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c__DisplayClass8_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c.<<UseSuggestDirective>b__7_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c.<<UseParseDirective>b__6_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c.<<UseHelp>b__20_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass4_0.<<UseVersionOption>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c.<<RegisterWithDotnetSuggest>b__23_0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.CommandLine.Invocation.InvocationExtensions.<>c__DisplayClass5_0.<<UseExceptionHandler>b__0>d.MoveNext()

The OS I am using is Linux Tizen.
The device is a Samsung TV and I am using Coreclr3.1.3 based on Tizen .NET.
The version I used is as follows
https://github.com/tizendotnet/diagnostics/releases

I saw the issue below, but it doesn't seem to help.
#1059

Activity

  1. added
    bug
    on Jul 13, 2022
  2. self-assigned this
    on Jul 13, 2022
  3. added this to the 7.0.0 milestone on Jul 13, 2022
  4. HJLeee commented on Aug 5, 2022

    @HJLeee
    Contributor

    @jw30-lee Please close this as it is resolved internally. If it still happens on your env, please share reproduction steps to me.

  5. added a commit that references this issue on Sep 21, 2022
  6. ghost locked as resolved and limited conversation to collaborators on Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions