This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Set stack size for main
- From: Michael Bergandi <mbergandi at gmail dot com>
- To: eCos Developer List <ecos-devel at ecos dot sourceware dot org>
- Date: Thu, 10 Mar 2011 14:47:50 -0500
- Subject: Set stack size for main
Hi all,
I have a test app that seems to crash in random locations. After
probing with gdb for a bit, it appears that an interupt occurs at some
point and then the app crashes with:
ASSERT FAIL: <3240>sched.cxx[160]static void
Cyg_Scheduler::unlock_inner() Bad current thread
I am thinking that this is probably a corrupt stack problem, but I am
not sure how to know for sure. Assuming it is a stack problem and it
is just too small, can someone explain how I can set/check the stack
size of main()?
Thanks,
--
Mike