exa: Panic when `--long` is used
# exa v0.8.0
$ RUST_BACKTRACE=1 exa -l
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /build/rust/src/rustc-1.33.0-src/src/libcore/slice/mod.rs:2455:10
stack backtrace:
0: <unknown>
1: <unknown>
2: <unknown>
3: <unknown>
4: <unknown>
5: <unknown>
6: <unknown>
7: <unknown>
8: <unknown>
9: <unknown>
10: <unknown>
11: <unknown>
12: <unknown>
13: __libc_start_main
14: <unknown>
Aborted (core dumped)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 36
- Comments: 27 (3 by maintainers)
Links to this issue
Commits related to this issue
- `exa` is broken; use `ls` See https://github.com/ogham/exa/issues/517. — committed to nutty7t/dotfiles by deleted user 5 years ago
- Revert to coreutils ls until exa is fixed https://github.com/ogham/exa/issues/517 — committed to JackCuthbert/dotfiles by JackCuthbert 5 years ago
- `exa` is broken; use `ls` See https://github.com/ogham/exa/issues/517. — committed to nutty7t/dotfiles by nutty7t 5 years ago
The crash is triggered by the update to tzdata 2019b. Rolling back to 2019a avoids it.
The PR for
zoneinfo-compiledlinked above (https://github.com/rust-datetime/zoneinfo-compiled/pull/8) contains the relevant fix!I could reproduce the crash with the uploaded
Sydneyand/etc/localtimefiles (thanks for all of those). After building again with the new version ofzoneinfo-compiled, it doesn’t crash anymore.If don’t want to downgrade, you may want to give lsd a try.
It fails for every timezone
I’m having the same issue, if it’s useful, my timezone is
America/Lima, using ArchLinux This is that I get while runningexa -land as the error message said, running withRUST_BACKTRACE=1tooThis seems to happen with only some specific timezone (exa read them from /etc/localtime). On my side Asia/Tokyo and America/Los_angeles work just fine, but Asia/Shanghai and Asia/Hong_kong will cause the panic.
Same here:
America/Sao_PauloI believe I’m getting the same error with the Pacific/Auckland timezone and Exa 0.8.0 on Arch Linux.
This is affecting all my systems, across different timezones.
Happening here too with
Australia/Sydney.