[Bug c++/103153] The recursive call in C++ leads to crashes of GCC.
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Nov 9 10:24:09 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103153
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
g++ pr103153.C && valgrind ./a.out
==1687== Memcheck, a memory error detector
==1687== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==1687== Using Valgrind-3.17.0.GIT and LibVEX; rerun with -h for copyright info
==1687== Command: ./a.out
==1687==
==1687== Stack overflow in thread #1: can't grow stack to 0x1ffe801000
==1687==
==1687== Process terminating with default action of signal 11 (SIGSEGV):
dumping core
==1687== Access not within mapped region at address 0x1FFE801FE8
==1687== Stack overflow in thread #1: can't grow stack to 0x1ffe801000
==1687== at 0x4B9D520: get_cie_encoding (unwind-dw2-fde.c:300)
==1687== If you believe this happened as a result of a stack
==1687== overflow in your program's main thread (unlikely but
==1687== possible), you can try to increase the size of the
==1687== main thread stack using the --main-stacksize= flag.
==1687== The main thread stack size used in this run was 8388608.
==1687== Stack overflow in thread #1: can't grow stack to 0x1ffe801000
More information about the Gcc-bugs
mailing list