This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/86422] G++ ICE(segmentation fault) when compiling a huge static array of sufficiently complex structs


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...

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]