Re: Gnat STORAGE_ERROR



On Wed, 2005-05-25 at 12:05 +0200, Alex R. Mosteo wrote:
> Duncan Sands wrote:
> >>however in linux there seems to be some other limit imposed by ld (not
> >>just to Ada programs) that I've been unable to break (nor to get some
> >>other person to acknowledge that the problem really exists, but some
> >>obscure post in some unknown forum).
> >
> >
> > What does
> > ulimit -s
> > return?
>
> unlimited
>
> I didn't get any linking error, it was simply that the stack size didn't
> seem to be honored and peaked at about 2MB. Eventually I removed my
> needs for so a big stack and didn't explore the matter further. It could
> be too a thing of old linux versions, or something I did wrong.

If you don't use a Storage_Size pragma in a task then you get
(in s-parame.adb):

------------------------
-- Default_Stack_Size --
------------------------

function Default_Stack_Size return Size_Type is
begin
return 2 * 1024 * 1024;
end Default_Stack_Size;

Ciao,

D.

.



Relevant Pages

  • Re: pthread questions
    ... > linux") people might be able to help you a little better. ... the shared libraries and search their symbols. ... since the simple stabs debug info format is completely GONE ... DWARF2 defines a stack machine, ...
    (comp.os.linux.development.system)
  • Stack Size for a Thread
    ... How can i know the default Stack Size allocated to a Thread in Red Hat ... The same application worked fine when the Heap size was reduced to ... However the application worked fine in another linux box with the same ...
    (comp.os.linux.misc)
  • Re: initial stack size/limits?
    ... >>loads Java and OpenGl libraries which have their own threading. ... >>libraries are the same for both linux distributions so I am hoping for a ... "LinuxThreads" which are now built into the glibc. ... Linux allows 8M for an initial stack size and LinuxThreads allow only ...
    (comp.os.linux.development.apps)
  • Re: Memory used by the program
    ... I test on another special hardware which has almost no debug ... The stack size *available* depends on your hardware and how you ... the size of all auto variables for that function plus some overhead ... Linux tools (and the version you run *on Linux* will almost certainly ...
    (comp.lang.c)
  • Re: Ipv6 - performance results on red hat linux.
    ... similar things but IPsec happens at a different layer unless ... The processes then would tend to be CPU bound, not protocol stack bound so ... repeating the same tests with IPv6 should produce the same differences ... (also note - RedHat Linux or another brand of linux will produce extremely ...
    (RedHat)