* Set stack size for main
@ 2011-03-10 19:47 Michael Bergandi
2011-03-10 19:56 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Michael Bergandi @ 2011-03-10 19:47 UTC (permalink / raw)
To: eCos Developer List
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set stack size for main
2011-03-10 19:47 Set stack size for main Michael Bergandi
@ 2011-03-10 19:56 ` Gary Thomas
2011-03-14 14:59 ` Michael Bergandi
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2011-03-10 19:56 UTC (permalink / raw)
To: Michael Bergandi; +Cc: eCos Developer List
On 03/10/2011 12:47 PM, Michael Bergandi wrote:
> 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()?
Set this variable:
cdl_option CYGNUM_LIBC_MAIN_DEFAULT_STACK_SIZE {
user_value 65536
};
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-03-14 14:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 19:47 Set stack size for main Michael Bergandi
2011-03-10 19:56 ` Gary Thomas
2011-03-14 14:59 ` Michael Bergandi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).