[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pthread init task size was C++ exceptions
- Date: Tue, 11 May 1999 11:10:04 -0500 (CDT)
- From: joel at OARcorp.com (joel at OARcorp.com)
- Subject: pthread init task size was C++ exceptions
On Sun, 2 May 1999, Rosimildo DaSilva wrote:
> >So in principle the RTEMS program should be shut down with a
> >reasonable amount of grace.
> >
>
>
> I have tried abort() and RTEMS shutdowns normally.
>
> The problem with exceptions not caught is that the stack overflows( Init
> task ).
>
> By default, RTEMS starts the init task( pthread task ) with a stack of 2K
> for the
> PC386 bsp. This is not enough when you have complex chains of try/catch
> blocks.
> EGCS seems to require around 2.5K minimal of stack to handle
> exceptions. Can anyone confirm this ?
> I have got this number from my debug session using GDB. I could be wrong
> here.
>
> I have changed the stack size of the initial task to 8K and everything
> works ok.
Does this all work at -04 -fomit-frame-pointer?
I am trying to figure out how to close this C++ discussion. I know there
are some things that need to be done.
> I had to re-compile RTEMS to get the stack size of the Init Task ( pthread )
> changed.
>
> Is there a way to change the size of stack of an Init Task ( pthread )
> without
> re-compiling RTEMS ?
Jiri Gaisler just submitted a patch to do this independently. Ada needed
to change this as well. It will be in the next snapshot.
--joel