Skip to content

Panic when running 'which raw | get value' (Linux, version 0.3.0) #707

@futile

Description

@futile

Running nu on Linux 5.3.1-arch1-1-ARCH (archlinux).

Error is:

[~]$ RUST_BACKTRACE=full nu                                                                                                                                                                                         
/home/felix> version
━━━━━━━━━
 version 
─────────
 0.3.0 
━━━━━━━━━
/home/felix> which raw
━━━━━━━━━━━━━━
 value 
──────────────
 /usr/bin/raw 
━━━━━━━━━━━━━━
/home/felix> which raw | get value
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /rustc/1dd1884891636d0eb51157d137230076bcf20627/src/libcore/slice/mod.rs:2715:10
stack backtrace:
   0:     0x5637cd7092d4 - <unknown>
   1:     0x5637cd73320c - <unknown>
   2:     0x5637cd703eb7 - <unknown>
   3:     0x5637cd70be85 - <unknown>
   4:     0x5637cd70bb76 - <unknown>
   5:     0x5637cd70c585 - <unknown>
   6:     0x5637cd70c122 - <unknown>
   7:     0x5637cd70c016 - <unknown>
   8:     0x5637cd72ee5a - <unknown>
   9:     0x5637cd72ee15 - <unknown>
  10:     0x5637cd0c9c72 - <unknown>
  11:     0x5637cd22600a - <unknown>
  12:     0x5637cd1d956e - <unknown>
  13:     0x5637cd279bb5 - <unknown>
  14:     0x5637cd0a555b - <unknown>
  15:     0x5637cd0a13f6 - <unknown>
  16:     0x5637cd0765af - <unknown>
  17:     0x5637cd08338e - <unknown>
  18:     0x5637cd08c91c - <unknown>
  19:     0x5637cd08d257 - <unknown>
  20:     0x5637cd70bfb3 - <unknown>
  21:     0x5637cd715dca - <unknown>
  22:     0x5637cd70ca7d - <unknown>
  23:     0x5637cd08ca62 - <unknown>
  24:     0x7f4f000efee3 - __libc_start_main
  25:     0x5637cd06c85e - <unknown>
  26:                0x0 - <unknown>

(sadly no debug info in my build, but I can probably rebuild with debug info if necessary.)

Awesome shell btw!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions