public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5818: cc1plus crashes if it runs out of memory
@ 2003-03-03 21:01 ebotcazou
  0 siblings, 0 replies; 3+ messages in thread
From: ebotcazou @ 2003-03-03 21:01 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lloyd, nobody

Synopsis: cc1plus crashes if it runs out of memory

State-Changed-From-To: analyzed->closed
State-Changed-By: ebotcazou
State-Changed-When: Mon Mar  3 21:01:33 2003
State-Changed-Why:
    On submitter's request: http://gcc.gnu.org/ml/gcc-bugs/2003-03/msg00129.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5818


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/5818: cc1plus crashes if it runs out of memory
@ 2002-09-15 11:55 nathan
  0 siblings, 0 replies; 3+ messages in thread
From: nathan @ 2002-09-15 11:55 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, lloyd, nobody

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* c++/5818: cc1plus crashes if it runs out of memory
@ 2002-03-03  9:16 lloyd
  0 siblings, 0 replies; 3+ messages in thread
From: lloyd @ 2002-03-03  9:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         5818
>Category:       c++
>Synopsis:       cc1plus crashes if it runs out of memory
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Mar 03 09:16:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     lloyd@acm.jhu.edu
>Release:        gcc 3.0.4
>Organization:
>Environment:
Redhat Linux 7.2
AMD Athlon
>Description:
Very minor. I was having problems with a bug causing the allocation of hundreds of megabytes of memory, swapping my machine to death, so I set my memory ulimts to something like 16 megabytes. Then I compiled some code. A few times, GCC died with warnings that virtual memory was exausted. But once, I got this:

g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

So it seems that in at least one case, GCC isn't checking it's system call returns properly (GCC compiles my code without problems when the memory ulimits are set higher, so I'm quite certain this is not a code-dependant thing)
>How-To-Repeat:
Set your ulimits for memory very low. Compile something.
>Fix:
Make sure malloc doesn't return zero? :)
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-03 21:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-03 21:01 c++/5818: cc1plus crashes if it runs out of memory ebotcazou
  -- strict thread matches above, loose matches on Subject: below --
2002-09-15 11:55 nathan
2002-03-03  9:16 lloyd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).