Skip to content

systemctl bash tab-auto-completion freezes the terminal and causes 100% CPU utilization #8216

@mbiebl

Description

@mbiebl

Submission type

  • Bug report

systemd version the issue has been seen with

v237

Used distribution

Debian
Initially filed as downstream bug report at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890445

Using tab-auto-completion with systemctl can cause /sbin/init to go to 100% CPU utilization and lock up the terminal. This is probably due to the implementation of it's bash-completion file.

This can be replicated by typing systemctl start whatever and then quickly pressing tab a few times.

The result is first that the terminal appears to lock up; no input is accepted from the user. Additionally, CPU usage on the system goes to 100% for a long time, dependent upon how many times the user pressed tab.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions