[Bug libstdc++/83754] Segmentation fault in regex_search

timshen at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 9 20:02:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83754

Tim Shen <timshen at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timshen at gcc dot gnu.org

--- Comment #1 from Tim Shen <timshen at gcc dot gnu.org> ---
This is actually the same as bug 61601. The crash is due to stack overflow,
because the implementation uses recursion.

If you set the stack limit to 100x higher (ulimit -s 819200 for me), it stops
crashing and have the somewhat expected quadratic behavior.


More information about the Gcc-bugs mailing list