http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58465
--- Comment #7 from Oleg Smolsky <oleg at smolsky dot net> --- Created attachment 30874 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30874&action=edit full stack Here is the full stack. It comes from the very same spot in my app. As for the minimal repro - that's problematic. I extracted the same regex into a minimal program and it works correctly. I am guessing there is something about conditional re-entrancy: __asan::asan_malloc ... strerror ... asan_free ... std::__debug::vector boost::re_detail::basic_char_set