This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: setrlimit()/C++ new() seg fault
- To: othman at cs dot wustl dot edu
- Subject: Re: setrlimit()/C++ new() seg fault
- From: Andreas Schwab <schwab at suse dot de>
- Date: 10 Nov 1999 18:14:16 +0100
- Cc: wmglo at dent dot med dot uni-muenchen dot de, gcc at gcc dot gnu dot org
- References: <199911101618.KAA24597@taumsauk.cs.wustl.edu>
othman@cs.wustl.edu writes:
|> Hi Wolfram,
|>
|> Thank you very much for your response.
|>
|> On 10 Nov, Wolfram Gloger wrote:
|> > If you really want to prevent excessive memory allocation, the limit
|> > to set is RLIMIT_AS, not RLIMIT_DATA (as the latter can be easily
|>
|> I didn't know that RLIMIT_AS existed. Is it portable? It's not listed
|> or mentioned in Richard Stevens' book "Advanced Programming in the UNIX
|> Environment" so I assume that it is non-portable. Correct?
RLIMIT_AS is part of SUS2, so it's resonably portable.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg