This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Help compiling g++ and C library + runtime crash
- From: lrtaylor at micron dot com
- To: <foskey at optushome dot com dot au>, <gcc-help at gcc dot gnu dot org>
- Date: Thu, 22 Jan 2004 14:31:35 -0700
- Subject: RE: Help compiling g++ and C library + runtime crash
The limit is OS or shell and not compiler dependent (as I understand it) and depends on what your stack size limit is. The default is often 8MB. You can view you current limit using the 'ulimit -s' command. It shows the limit in KB. You can set it to unlimited (or some other reasonable value) with the same command:
ulimit -s unlimited
or
ulimit -s 16384
to increase it to 16MB.
Cheers,
Lyle
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org]On
Behalf Of Ken Foskey
Sent: Thursday, January 22, 2004 2:27 PM
To: gcc-help@gcc.gnu.org
Subject: Re: Help compiling g++ and C library + runtime crash
>
> I suppose a simple hello world C++ program runs fine? Is this also
> related to the iniparser library? Can you supply a simple, runnable
> example which exhibits the error? Besides, I'd say without seeing any
> real code and a bit more information (command line arguments, GCC
> version, system information) it's quite hard to give advice here.
Found it, the definition of one of the automatic was too large. It
crashed on startup. Reducing the size made it work. What is the limit?
gcc 3.3.3 from Debian Unstable.