Skip to content

command substition causes fish to hang #9181

@EvanTheB

Description

@EvanTheB

I am experiencing a bug with a command substitution:

> ./fish --no-config
> echo (cros_sdk -- echo 1)
1
> fish: Job 1, './fish --no-config' terminated

It looks like things work, but after the new prompt is drawn fish is unresponsive. The keyboard is ignored as well as ctrl-c etc. With some related reproductions of the bug fish closes immediately when the first keyboard character is typed.

The reproduction is related to cros_sdk doc source, which is a complex command that enters chroots and does other arcane things. I would like to find a more minimal reproduction if that helps, but could do with some guidance.

I bisected the issue to this commit, which seems very relevant: 2ca66cf

Attached a log from:

./fish --debug=event,exec\*,iothread,output-invalid,proc\*,reader\* --debug-output=/tmp/fish.log --no-config

fish.log

cros_sdk bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions