This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Bad next thread
- From: Andrew Lunn <andrew at lunn dot ch>
- To: suraj kumar <suraj56 at hotmail dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 18 Sep 2003 09:20:48 +0200
- Subject: Re: [ECOS] Bad next thread
- References: <Sea2-F47Uh84ZfeKWEp00012197@hotmail.com>
On Thu, Sep 18, 2003 at 09:58:41AM +0530, suraj kumar wrote:
> I have been facing problem while running my application. It crashes
> unpredictably. When I enabled ASSERT then I found some asserts failing.
> This is the output:
>
> ASSERT FAIL: <2>sched.cxx[188]static void Cyg_Scheduler::unlock_inner() Bad
> next thread
> ASSERT FAIL: <2>sched.cxx [ 188] static void
> Cyg_Scheduler::unlock_inner()
> Bad next thread
You have corrupted the linked list the scheduler is using. How you
have corrupted this is hard to say. It could be one of your stacks is
too small, or you have a dangling pointer which is overwritting random
memory.
Turn on stack checking and see if that tells you more.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss