setting stack size in Ada was Re: BLOWN STACK!!!
Joel Sherrill
joel.sherrill at OARcorp.com
Thu Jun 21 18:29:08 UTC 2001
Alejandro Villanueva wrote:
>
> Thanks Joel, but I'm using GNAT, so I don't create my tasks explicitly and have
> no idea on how to do it.
>
> Could you help me, please?
There is an Ada task attribute for stack size. From
http://www.adahome.com/FAQ/programming.html:
3.7: How do I increase the stack size for a task?
Define the task as a "task type" and then use a pragma representation clause.
task type A_Task_Type;
for A_Task_Type'STORAGE_SIZE use 10_000;
-- 10K bytes allocated to instances of A_Task_Type
A_Task : A_Task_Type;
But it does make me ask if you are doing something brutal on the stack.
GNAT/RTEMS should be using quite large stacks for Ada tasks by default.
> Thanks a lot.
> Alejandro.
>
> On Thu, 21 Jun 2001, Joel Sherrill wrote:
> > Alejandro Villanueva wrote:
> > >
> > > Hi you all,
> > >
> > > Anybody knows how can I increase stack size under RTEMS 4.0.0 ?
> > > I've got the following error:
> > >
> > > BLOWN STACK!!! Offending task(0xaa3f84): id=0x0x010003; name=0x001523ef
> > > stack covers range 0x0029b15c - 0x0029c15b (4096 bytes)
> > > Damaged pattern begins at 0x0029b164 and is 16 bytes long
> > >
> > > It should be easy, so I keep waiting for your prompt answer.
> >
> > Pass a larger number as the stack size on the task create for
> > the offending task. It appears to be the 3rd task created
> > counting the Init task in your application task as the first one.
> >
> > > Thanks,
> > > Alejandro.
> > >
> > > ------------------------------------------------------
> > > Alejandro Villanueva
> > > 190921 at cepsz.unizar.es
> > > ------------------------------------------------------
> >
> > --
> > Joel Sherrill, Ph.D. Director of Research & Development
> > joel at OARcorp.com On-Line Applications Research
> > Ask me about RTEMS: a free RTOS Huntsville AL 35805
> > Support Available (256) 722-9985
> --
> ------------------------------------------------------
> ¿Quieres Cobrar por Navegar en Internet?
> Visita: http://www.navegana.com/dinero/flintstone.html
> ------------------------------------------------------
> Alejandro Villanueva
> 190921 at cepsz.unizar.es
> ------------------------------------------------------
--
Joel Sherrill, Ph.D. Director of Research & Development
joel at OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
More information about the users
mailing list