https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82366
--- Comment #14 from Karol Zwolak <karolzwolak7 at gmail dot com> --- Created attachment 61993 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61993&action=edit reproduction This is a reproduction for my case, which was misuse of flag 'RTLD_DEEPBIND' while using dlopen() on a shared library. The reproduction consists of a binary, and library and they are both using std::regex, first the binary uses regex, and then it calls function from the library which uses regex as well, and the crash happens of the second use of regex in the library.