comp.lang.ada
 help / color / mirror / Atom feed
From: Nicolas HUYNH <HUYNH_Nicolas@ath.cena.fr>
Subject: TASKING_ERROR or STORAGE_ERROR ?
Date: Tue, 18 Sep 2001 14:47:12 +0200
Date: 2001-09-18T12:44:23+00:00	[thread overview]
Message-ID: <3BA74250.C1AB7F6C@ath.cena.fr> (raw)

Hi,

I've got problems with Ada tasks at elaboration time, using
Gnat and Linux.
The pattern is the following for several packages P :

package P is
   (...)
   task type TT is (...)
   T : TT;
   (...)
end P;

package body P is
   (...)
   task body TT is
   begin
      (...)
   end TT;
   (...)
end P;

On Solaris and Tru64-Unix, I used to set the Storage_Size attribute
of each task. No problem.

However, on Linux, my program raises an exception TASKING_ERROR
when elaborating the package P. In many cases, I solved the problem
by decreasing the Storage_Size of the task, thus it appears that this
was a problem due to storage during the elaboration of the task itself.

But there is one case when this does not work.
Changing the body of the task by a much more simple one also suppresses
the TASKING_ERROR, but of course I would like to keep the body of
the task unchanged.

Is there any way to investigate any more ?

Any help would be appreciated !

Nicolas






                 reply	other threads:[~2001-09-18 12:47 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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