comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison <dennison@telepath.com>
Subject: Re: storage size pragmas
Date: 2000/05/07
Date: 2000-05-07T00:00:00+00:00	[thread overview]
Message-ID: <3915BC28.A0D56A68@telepath.com> (raw)
In-Reply-To: 20000507094954.10742.00001811@ng-bj1.aol.com

ANTHONY GAIR wrote:

> For those of you watching my progress with Ada tasks and segmentation faults
> with both bated breath and intrepidation for the next exciting installment.
>
> Would a large array stored inside a task cause a segmentation fault if no
> storage size pragma is used ?

Well, my first guess when I see the words "exception" and "task" together is
typically that the user made some big honking object in his task that blew out
the default stack size for tasks. However, since that usually causes
Storage_Error rather than a seg fault, I figured that probably wasn't it, and
didn't say anything about it.

Try jacking up the task's stack to ridiculous levels with "for
Taskname'Storage_Size use" or a "pragma Storage_Size". If that fixes it, send a
bug report to your vendor. I believe the condition of running out of stack space
should cause Storage_Error, not a seg fault.

--
T.E.D.

Home - mailto:dennison@telepath.com  Work - mailto:dennison@ssd.fsi.com
WWW  - http://www.telepath.com/dennison/Ted/TED.html  ICQ  - 10545591






  parent reply	other threads:[~2000-05-07  0:00 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-07  0:00 storage size pragmas ANTHONY GAIR
2000-05-07  0:00 ` Keith Thompson
2000-05-07  0:00 ` Ted Dennison [this message]
2000-05-07  0:00   ` Robert Dewar
2000-05-07  0:00   ` Robert Dewar
2000-05-07  0:00   ` Robert Dewar
2000-05-07  0:00   ` ANTHONY GAIR
2000-05-07  0:00     ` Robert Dewar
2000-05-09  0:00       ` ANTHONY GAIR
2000-05-09  0:00         ` Robert A Duff
2000-05-09  0:00           ` Robert Dewar
2000-05-09  0:00             ` Larry Kilgallen
2000-05-09  0:00             ` Ted Dennison
2000-05-09  0:00             ` Robert A Duff
2000-05-10  0:00               ` Laurent Guerby
2000-05-09  0:00         ` Robert Dewar
2000-05-07  0:00     ` Robert Dewar
2000-05-08  0:00     ` Ted Dennison
2000-05-08  0:00       ` Robert Dewar
2000-05-08  0:00         ` Ted Dennison
2000-05-08  0:00           ` Robert Dewar
2000-05-07  0:00 ` Pascal Obry
replies disabled

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