https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68688
Tim Shen <timshen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |timshen at gcc dot gnu.org Resolution|--- |DUPLICATE --- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> --- This is a known issue, that is the regex engine uses stack frame (through deep recursion, rather than heap storage) to store data. I plan to fix it after a series of refactoring, which are waiting for review. In the mean time, the simplest workaround is to make your stack larger. Sorry for the inconvenience! *** This bug has been marked as a duplicate of bug 61582 ***