* STACK_OVERFLOW_EXCEPTION
@ 2003-02-14 0:28 Carsten Schnedler
2003-02-14 2:21 ` STACK_OVERFLOW_EXCEPTION David C. Hoos, Sr.
2003-02-22 19:13 ` STACK_OVERFLOW_EXCEPTION Robert A Duff
0 siblings, 2 replies; 3+ messages in thread
From: Carsten Schnedler @ 2003-02-14 0:28 UTC (permalink / raw)
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?
Regards
Carsten Schnedler
CSchnedler@WEB.DE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: STACK_OVERFLOW_EXCEPTION
2003-02-14 0:28 STACK_OVERFLOW_EXCEPTION Carsten Schnedler
@ 2003-02-14 2:21 ` David C. Hoos, Sr.
2003-02-22 19:13 ` STACK_OVERFLOW_EXCEPTION Robert A Duff
1 sibling, 0 replies; 3+ messages in thread
From: David C. Hoos, Sr. @ 2003-02-14 2:21 UTC (permalink / raw)
To: comp.lang.ada mail to news gateway; +Cc: cschnedler
----- 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
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: STACK_OVERFLOW_EXCEPTION
2003-02-14 0:28 STACK_OVERFLOW_EXCEPTION Carsten Schnedler
2003-02-14 2:21 ` STACK_OVERFLOW_EXCEPTION David C. Hoos, Sr.
@ 2003-02-22 19:13 ` Robert A Duff
1 sibling, 0 replies; 3+ messages in thread
From: Robert A Duff @ 2003-02-22 19:13 UTC (permalink / raw)
"Carsten Schnedler" <cschnedler@web.de> writes:
> 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?
GNAT sometimes says "storage error" when an erroneous program get a seg
fault for some reason that has nothing to do with stack overflow.
Look for dangling pointers, and other things like that.
- Bob
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-02-22 19:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-14 0:28 STACK_OVERFLOW_EXCEPTION Carsten Schnedler
2003-02-14 2:21 ` STACK_OVERFLOW_EXCEPTION David C. Hoos, Sr.
2003-02-22 19:13 ` STACK_OVERFLOW_EXCEPTION Robert A Duff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox