This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5818: cc1plus crashes if it runs out of memory
- From: nathan at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, lloyd at acm dot jhu dot edu, nobody at gcc dot gnu dot org
- Date: 15 Sep 2002 18:55:01 -0000
- Subject: Re: c++/5818: cc1plus crashes if it runs out of memory
- Reply-to: nathan at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, lloyd at acm dot jhu dot edu, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: cc1plus crashes if it runs out of memory
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Sun Sep 15 11:55:01 2002
State-Changed-Why:
of course we chyeck malloc's return. Unfortunately some systems overcommit memory. I.e. they say 'here's a pile of
memory', but then only attempt to allocate the pages when
you try and use them. At that point, you get a seg fault.
Maybe there's a way of saying 'don't give me overcommitted
pages'.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5818