Skip to content

ls hangs and cannot be killed with ^C #10144

Closed

Description

@Jiehong

Describe the bug

ls /**/*.html hangs and cannot be killed with ^C (Ctrl-C).

How to reproduce

  1. launch nushell
  2. ls /**/*.html (aka look for all html files from the root dir, ran as non-root on Mac OS)
  3. Type ^C

^C will be printed multiple times on the last line of the shell, but does not kill ls.

Expected behavior

I should be able to kill ls at any time if it's taking too long to return something.

Screenshots

No response

Configuration

key value
version 0.84.0
branch
commit_hash
build_os macos-aarch64
build_target aarch64-apple-darwin
rust_version rustc 1.71.1 (eb26296b5 2023-08-03) (built from a source tarball)
cargo_version cargo 1.71.2 (1a737af0c 2023-08-07)
build_time 2023-08-22 21:09:23 +00:00
build_rust_channel release
allocator standard
features dataframe, default, sqlite, trash, which, zip
installed_plugins

Additional context

I can reproduce this almost every time, since it always hang by itself anyways.
But sometimes I can kill ls if I'm fast enough, as soon as it has printed the first table for example. But it's difficult to be fast enough.

Activity

  1. added
    status:needs-triage
    on Aug 29, 2023
  2. added
    category:bug
    A:signal-cancel
    on Aug 29, 2023
  3. rtpg commented on Oct 23, 2023

    @rtpg
    Contributor

    I'm seeing a similar thing, though it seems like the cancellation signal gets through eventually and stops processing, it's still quite a lot of time all things considered

  4. bitshifter commented on Nov 30, 2023

    @bitshifter

    I'm also experiencing this on Windows, although in this case the Ctrl+C is not printed to the screen either.

  5. hamflx commented on Feb 29, 2024

    @hamflx

    cp / mv with large directories also has same problem

  6. mike-at-hypothetic commented on Mar 11, 2024

    @mike-at-hypothetic

    I have this on ubuntu 22.04. Totally repeatable. Unfortunately I can't use nushell at all as a result.

  7. jsonMartin commented on Jul 25, 2024

    @jsonMartin

    I can also reproduce. Loving nushell so far but it freezes completely when trying to search files matching a pattern the root filesystem. Can't even Ctrl + C out of it...have to open another terminal to kill it

  8. added a commit that references this issue on Feb 28, 2025
    c5a14bb
  9. added this to the v0.103.0 milestone on Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:signal-cancelcategory:bugstatus:needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions