comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey Creem" <jeff@thecreems.com>
Subject: Re: Howto debug seg-faulting Ada 95 code?
Date: Mon, 02 Sep 2002 16:25:09 GMT
Date: 2002-09-02T16:25:09+00:00	[thread overview]
Message-ID: <FhMc9.91102$kp.733909@rwcrnsc52.ops.asp.att.net> (raw)
In-Reply-To: 1f358d66.0209020705.6769d948@posting.google.com

Well. It may be a bug that it is not caught properly but if it were, all you
would be left with is a Storage_Error exception in the place of the
segfault.

You are blowing the stack because you are trying to declare a large
structure on within a procedure (be it the main procedure or a sub
program)..

Either use new or declare the variable at the library level (in a package)
to make it
go on the heap.

"Karl Ran" <karlran@hotmail.com> wrote in message
news:1f358d66.0209020705.6769d948@posting.google.com...
> Florian Weimer <fw@deneb.enyo.de> wrote in message
> > Your code causes a stack overflow; "-fstack-check" should catch these
> > problems, but it doesn't.  Looks like a bug to me.
>
> Is there a work-around for this software defect, other than using 'new'?
>
> Where can I find a list of known software defects of gnat 3.14p?
>
> Thanks,
> Karl





  reply	other threads:[~2002-09-02 16:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-31  7:58 Howto debug seg-faulting Ada 95 code? Karl Ran
2002-08-31  8:14 ` Florian Weimer
2002-09-02 15:05   ` Karl Ran
2002-09-02 16:25     ` Jeffrey Creem [this message]
2002-09-02 16:47       ` Pat Rogers
2002-09-02 22:40         ` Jeffrey Creem
2002-09-02 23:25           ` Pat Rogers
2002-09-03 11:20             ` Jeffrey Creem
2002-09-04 14:57               ` Pat Rogers
2002-09-03  8:51       ` Sergey Koshcheyev
2002-09-03 11:42         ` Samuel Tardieu
2002-09-07 18:50           ` Steven Deller
2002-09-02 21:35     ` Florian Weimer
2002-09-03  9:11       ` Karl Ran
2002-09-03  2:27 ` David C. Hoos, Sr.
2002-09-03  9:38   ` Karl Ran
2002-09-03 12:15     ` David C. Hoos, Sr.
replies disabled

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