comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Cc: cschnedler@web.de
Subject: Re: STACK_OVERFLOW_EXCEPTION
Date: Thu, 13 Feb 2003 20:21:57 -0600
Date: 2003-02-13T20:21:57-06:00	[thread overview]
Message-ID: <mailman.11.1045189335.13246.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: b2h68d$cui$04$1@news.t-online.com


----- Original Message ----- 
From: "Carsten Schnedler" <cschnedler@web.de>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: February 13, 2003 6:28 PM
Subject: STACK_OVERFLOW_EXCEPTION


> Programming a simple E-Mail-System I recognized the following problem.
> I am using gant3.14p on a WIN98-system and during programm-execution the
> exception STORAGE-ERROR: EXCEPTION_STACK_OVERFLOW is raised. The debugger
> gdb ends in the follwoing message:
>  > Program received signal SIGSEGV, Segmentation fault.
>  > 0x4041f6 in standard_types."=" (l=0x26b0758, r=(null))
>  >    at E:/projekte/bibliothek/src/standard_types.adb:10
> According to GNAT-Users's-Guide I tried to increase stack-size by
> implementing
> the variable GNAT_STACK_LIMIT in autoexec.bat which showed no result.
> Checking the
> recursion-depth showed a depth of 7.
> Does anybody know, how to solve this problem?
If the stack which overflowed is in an Ada task -- not the environment
{main) task -- then the problem is likely that you did not increase the
task's stack size by using the pragma Storage_Size in the
task declaration.

See the Ada Reference manual about the language-defined pragma and
attribute Storage_Size (for tasks). 
> 
> Regards
> Carsten Schnedler
> CSchnedler@WEB.DE
> 
> 
> 
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
> 
> 




  reply	other threads:[~2003-02-14  2:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-14  0:28 STACK_OVERFLOW_EXCEPTION Carsten Schnedler
2003-02-14  2:21 ` David C. Hoos, Sr. [this message]
2003-02-22 19:13 ` STACK_OVERFLOW_EXCEPTION Robert A Duff
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox