Sublime Forum

Crash on simple recursive regex search

#1

When I search in my project for " .* previous" with regex on, ST crashes with

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<std::runtime_error> >' what(): The complexity of matching the regular expression exceeded predefined bounds. Try refactoring the regular expression to make each choice made by the state machine unambiguous. This exception is thrown to prevent "eternal" matches that take an indefinite period time to locate. [1] 19645 abort (core dumped) sublime_text

If boost can’t handle it, I’m fine with that, but that exception surely shouldn’t kill the editor.

0 Likes