This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Error : Stack size too small
- From: Andrew Lunn <andrew at lunn dot ch>
- To: jrsiva at cradle dot com
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Wed, 8 Nov 2006 16:17:13 +0100
- Subject: Re: [ECOS] Error : Stack size too small
- References: <4fc6d8c0611080605h245195cbj30cc6a4aad429cd4@mail.gmail.com>
On Wed, Nov 08, 2006 at 07:35:30PM +0530, Siva Kumar wrote:
> Hi,
> I'm working with a July 2006 CVS snapshot of ecos.
> My Free BSD configuration is working fine. But when I enabled, SMP [4
> processors], this is the output that I get for any test or even for a
> simple hello sample :
>
> ASSERT FAIL: <FFFF>thread.inl[188]void
> Cyg_HardwareThread::attach_stack() Stack size too small
> ASSERT FAIL: <FFFF>thread.inl [ 188] void
> Cyg_HardwareThread::attach_stack()
> Stack size too small
>
> Which stack actually is giving the problem? The problem occurs during
> the calling of constructors [Cyg_Thread class] and it looks like the
> idle thread that is being constructed.
>
> My interrupt stack size is 0x1000 [no nesting].
> CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE is set to 0x2000.
> Idle thread's stack size is 0x800 which I tried increasing upto 0x2000
> but it didn't solve the problem.
>
> Anybody has any idea?
Put a breakpoint in cyg_assert_fail so you can trap the assertion
failure. You can then find out which thread/stack is the problem.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss