Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when selecting a task that no longer exists #565

Open
RaphaelMarinier opened this issue Jun 25, 2024 · 2 comments · May be fixed by #570
Open

Crash when selecting a task that no longer exists #565

RaphaelMarinier opened this issue Jun 25, 2024 · 2 comments · May be fixed by #570
Assignees
Labels
S-bug Severity: bug

Comments

@RaphaelMarinier
Copy link

I reliably encounter the crash below while running tokio console.
To reproduce:

  • Have tasks ordered in descending order.
  • Select the last task with 'G'
  • Wait for the task to disappear (of course, it means you need to instrument a binary with a varying number of tasks).
  • Push enter.
  • The crash below occurs.

Error

index out of bounds: the len is 58 but the index is 18446744073709551601

Metadata

key value
version 0.1.10
config.subcmd None
config.target_addr None
config.env_filter None
config.log_directory None
config.retain_for None
config.view_options.no_colors false
config.view_options.lang Some("en_US.UTF-8")
config.view_options.ascii_only None
config.view_options.truecolor Some(true)
config.view_options.palette None
config.view_options.toggles.color_durations None
config.view_options.toggles.color_terminated None
location /home/raphael/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-console-0.1.10/src/view/table.rs:166:34
@hi-rustin hi-rustin added the S-bug Severity: bug label Jun 26, 2024
@hi-rustin hi-rustin self-assigned this Jun 26, 2024
@hi-rustin
Copy link
Collaborator

I will take a look.

@hi-rustin
Copy link
Collaborator

I can reproduce it. I will try to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-bug Severity: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants