From owner-freebsd-hackers Mon Dec 22 07:52:22 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA00882 for hackers-outgoing; Mon, 22 Dec 1997 07:52:22 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from picnic.mat.net (picnic.mat.net [206.246.122.117]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id HAA00870 for ; Mon, 22 Dec 1997 07:52:09 -0800 (PST) (envelope-from chuckr@glue.umd.edu) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.8.8/8.8.5) with SMTP id KAA01014; Mon, 22 Dec 1997 10:49:27 -0500 (EST) Date: Mon, 22 Dec 1997 10:49:26 -0500 (EST) From: Chuck Robey X-Sender: chuckr@picnic.mat.net To: Greg Lehey cc: FreeBSD-Hackers@FreeBSD.ORG Subject: Re: gcc error In-Reply-To: <19971222164749.21879@lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, 22 Dec 1997, Greg Lehey wrote: > > This can't possibly refer to FreeBSD's memory, seeing as this is a big > > machine, with 192M of swap, and it wasn't even fractionally full. I think > > it's some gcc/g++ (note it's a C++ file being compiled) problem, but I > > don't know how to increase g++'s idea of memory. > > > > Does anyone else know how? > > Yes, this is a per-process limit. Check with ulimit or friends: > > === grog@freebie (/dev/ttyp5) ~ 1 -> ulimit -a > core file size (blocks) unlimited > data seg size (kbytes) 524288 > file size (blocks) unlimited > max memory size (kbytes) unlimited > stack size (kbytes) 65536 > cpu time (seconds) unlimited > pipe size (512 bytes) 1 > open files 1024 > max user processes 120 > virtual memory (kbytes) 589824 That was it, thanks, Greg. > > At a guess, your data seg, stack size or max virtual memory will be > too low (I think 32 MB is the absolute minimum for data seg, and that > may be too low). Check the sh/bash man page for ulimit. If you use a > csh variant, I think the corresponding command is called limit, and > it's also in the shell man page. Check also login.conf: that's where > your hard limits get set. > > Greg > > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@glue.umd.edu | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run Journey2 and picnic, both FreeBSD (301) 220-2114 | version 3.0 current -- and great FUN! ----------------------------+-----------------------------------------------