This is the mail archive of the ecos-discuss@sources.redhat.com 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: Bad next thread


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


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