libstdc++'s std::regex uses recursion[1], with a depth controlled by the input. Together with clang's debug mode, this overflows the stack. Use boost::regex instead, which is immune to the problem. [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86164 Closes #7378