Skip to content

[BUG][CRASH]  #5236

Open
Open
@thoughtpatterns

Description

@thoughtpatterns

Version of Kakoune

v2024.05.18

Reproducer

The editor crashed after executing the following command about 10 times, specifically when it encountered a newline:

exec "<esc><c-s>;<a-?> +[^ ]+<ret><a-;><H><a-d>2<c-o><i>"

The command was executed without kak-lsp on, in a kakrc file.

Outcome

/usr/include/c++/13.2.1/bits/stl_vector.h:1125: constexpr std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Kakoune::SelectionList; _Alloc = Kakoune::Allocator<Kakoune::SelectionList, Kakoune::MemoryDomain::Selections>; reference = Kakoune::SelectionList&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.

Expectations

No response

Additional information

This occurred on Alpine Linux edge, on a release version of Kakoune. I'm using foot --server as my terminal currently. I can attempt to obtain more debug information soon, including reproducing it (which I have only been able to do once so far).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions