[Bug c++/46400] g++ Segmentation Fault on heavily templated project.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 10 12:08:00 GMT 2010


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46400

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
           Severity|major                       |normal

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-10 12:08:05 UTC ---
We run out of stack space when garbage collecting by means of too deep
recursion (I see 99% gt_ggc_mx_lang_tree_node in the backtrace,
1% gt_ggc_mx_VEC_qualified_typedef_usage_t_gc).

The testcase is probably not easy to reduce, so I wouldn't waste my time.

A workaround is to up stack space with ulimit -s (64MB worked for me).

Note that the testcase throws errors after doing that.



More information about the Gcc-bugs mailing list