This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/86422] G++ ICE(segmentation fault) when compiling a huge static array of sufficiently complex structs
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Jul 2018 15:30:28 +0000
- Subject: [Bug libstdc++/86422] G++ ICE(segmentation fault) when compiling a huge static array of sufficiently complex structs
- Auto-submitted: auto-generated
- References: <bug-86422-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86422
--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> ---
On July 9, 2018 5:18:40 PM GMT+02:00, "boris.staletic at gmail dot com"
<gcc-bugzilla@gcc.gnu.org> wrote:
>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86422
>
>--- Comment #10 from Boris Staletic <boris.staletic at gmail dot com>
>---
>Running "g++ -S -fno-exceptions CodePoint.cpp" didn't run into OOM
>killer, but
>gcc still hanged. The memory usage at maximum was 15.6GB. What I find
>strange
>is that "htop" reported the g++ process as dead most of the time and
>the CPU
>usage was 20% to 25% (or less) while that was happening.
That's to be expected when it runs into swap. GCC is bad at keeping the active
memory set small because it uses garbage collection and the mark and sweep
phase pages in everything...