fish-shell / fish-shell/fish-shell

Fish freezes while entering certain commands

Open
#12,962 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
34.2k
Forks
2.4k
Avg merge
2d 8h
Merged PRs (30d)
13

Description

**Fish version:** 4.8.1
**Operating system:** Arch Linux (stable kernel 7.1.8)
**Terminals tried (issue occurs on all):** Foot, Kitty, WezTerm

Fish freezes when running 'wpctl set-mute X' (where X is 1-4 characters of any sort). This issue does not occur with other shells. To elaborate on the phrase "where X is 1-4 characters of any sort", the amount of characters that will cause the freeze appears to be pretty random, but deterministic. For instance '1000' will cause a crash, '88' '8988' will cause a crash, 'a' will cause a crash, etc. Sometimes it occurs even earlier, like at 'wpctl setm'. Hitting ctrl+c does not clear the input, but fixes the freeze, after which the freeze will no longer occur until fish is restarted.

Running the following command like the description template said seems to cause the freeze to happen earlier (at 'wpctl' instead of 'wpctl set-mute XX').
sh -c 'env HOME=$(mktemp -d) XDG_CONFIG_HOME= XDG_DATA_DIRS= fish'

Contributor guide

Open the contributing guide

Research direction

Reproduce the freeze in fish 4.8.1 with `wpctl set-mute X`, then compare normal startup with the minimal `sh -c` environment shown in the report. Trace fish's command-entry path around the point where input freezes; done means these commands remain responsive across the reported character lengths and terminal setups.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, shell
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.