Last week I updated my Cygwin environment and this week I recompiled Kakoune. Now when I try to do a backward match with the ‘m’ key I get a segfault. I thought maybe it was just something to do with the latest release, but I’ve tried releases all the way back to 2019 and they all have the same problem. I know I’ve used a more recent release without issue, so I’m thinking it’s my build tools. I’m using g++ (GCC) 11.2.0, below is some data on the fault.
I’ve tried debugging this myself but I don’t have a lot of experience debugging C++ templates. Breaking at the select() and stepping down to the read_codepoint() is a tedious process. At frame 1, iterator ‘it’ looks fine so I’m thinking as the iterator is advanced it becomes invalid at some point. But I’m also thinking that my compiler/environment is messing this up somehow since I seem to be the only one with the issue.