This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error : Stack size too small


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]