RE: Help compiling g++ and C library + runtime crash

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx]On
Behalf Of Ken Foskey
Sent: Thursday, January 22, 2004 2:27 PM
To: gcc-help@xxxxxxxxxxx
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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux