🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #54221

Re: gnu-cpp out of memory

#54221
From: Colin Plumb
Date: Tue, 15 Jan 1991 03:44
23 lines
1567 bytes
ilan343@violet.berkeley.edu (Geraldo Veiga) wrote:
>I got the following error trying to use gcc -traditional
>
>/usr/local/lib/gcc-cpp: Memory exhausted.
>
>What is this all about? Do I have to rebuild gcc-cpp with different
>parameters?

No, this is caused by malloc() (sbrk(), really) failing.  If you're
running BSD unix (.berkeley.edu makes me think you are), the "limit"
command can be used to alter maximum per-process limits.  Soft limits
less than the machine can physically support are useful to catch
runaway programs before they bog the machine down, but of your defaults
are set too low, problems can occur.

You want to play with the "datasize" parameter.  The limit command is
documented in the csh man pqage (it's a shell builtin) and in the
getrusage man page.

If you're not compiling anything big or complex, or the limit is already
set quite high, you may have found a bug in gcc-cpp.
-- 
	-Colin
Technical Details
Message-ID: <1991Jan15.034453.2223@watdragon.waterloo.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!watmath!watdragon!rose!ccplumb
References: <1991Jan15.013524.16908@agate.berkeley.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,e37b948d3b4fbff7
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1991-01-15 18:05:08 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!watmath!watdragon!rose!ccplumb
From: ccplumb@rose.uwaterloo.ca (Colin Plumb)
Newsgroups: gnu.gcc.help
Subject: Re: gnu-cpp out of memory
Message-ID: <1991Jan15.034453.2223@watdragon.waterloo.edu>
Date: 15 Jan 91 03:44:53 GMT
References: <1991Jan15.013524.16908@agate.berkeley.edu>
Sender: daemon@watdragon.waterloo.edu (Owner of Many System Processes)
Distribution: gnu
Organization: University of Waterloo
Lines: 23