This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/46400] g++ Segmentation Fault on heavily templated project.
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 10 Nov 2010 12:08:28 +0000
- Subject: [Bug c++/46400] g++ Segmentation Fault on heavily templated project.
- Auto-submitted: auto-generated
- References: <bug-46400-4@http.gcc.gnu.org/bugzilla/>
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.