You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Under some conditions editing a file in any way triggers a segmentation fault.
I have not been able to determine the specific conditions this occurs, but it seems to happen when performing any edit operation on markdown or xml files within some directories within a git repository.
The bug seems to happen for some files and not others, but when it occurs it does so consistently on the same file.
Backtrace:
thread 'tokio-runtime-worker' panicked at 'range end index 18446744073709551615 out of range for slice of length 0', /private/tmp/nix-build-helix-23.05.drv-0/helix-23.05-vendor.tar.gz/ropey/src/tree/node_children.rs:312:21
stack backtrace:
0: _rust_begin_unwind
1: ca
2: core::slice::index::slice_end_index_len_fail
3: ropey::iter::Chunks::new_with_range_at_byte
4: <ropey::slice::RopeSlice as core::cmp::PartialEq<ropey::slice::RopeSlice>>::eq
5: imara_diff::intern::Interner<T>::intern
6: <alloc::vec::Vec<T,A> as alloc::vec::spec_extend::SpecExtend<T,I>>::spec_extend
7: helix_vcs::diff::line_cache::InternedRopeLines::update_doc
8: tokio::runtime::context::exit_runtime
9: tokio::runtime::scheduler::multi_thread::worker::block_in_place
10: helix_vcs::diff::worker::DiffWorker::run::{{closure}}
11: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
12: tokio::runtime::task::core::Core<T,S>::poll
13: tokio::runtime::task::harness::Harness<T,S>::poll
14: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
15: tokio::runtime::scheduler::multi_thread::worker::Context::run
16: tokio::macros::scoped_tls::ScopedKey<T>::set
17: tokio::runtime::scheduler::multi_thread::worker::run
18: tokio::runtime::task::core::Core<T,S>::poll
19: tokio::runtime::task::harness::Harness<T,S>::poll
20: tokio::runtime::blocking::pool::Inner::run
note: Some detai[+]are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. 2
Summary
Under some conditions editing a file in any way triggers a segmentation fault.
I have not been able to determine the specific conditions this occurs, but it seems to happen when performing any edit operation on markdown or xml files within some directories within a git repository.
The bug seems to happen for some files and not others, but when it occurs it does so consistently on the same file.
Backtrace:
Reproduction Steps
asciinema.org recording: https://asciinema.org/a/D2Tn53wJQiOymRqeCApSjiA93
Helix log
~/.cache/helix/helix.log
Platform
Mac OS (Helix installed via Nix)
Terminal Emulator
Kitty 0.28.1
Helix Version
helix 23.05 (7f5940b)
The text was updated successfully, but these errors were encountered: