public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Bad next thread
@ 2003-09-18  4:28 suraj kumar
  2003-09-18  7:20 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: suraj kumar @ 2003-09-18  4:28 UTC (permalink / raw)
  To: ecos-discuss

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


can somebody explaing what is happening?

Regards
Suraj Kumar

_________________________________________________________________
A chance to meet Aishwarya Rai. http://www.myenjoyzone.com/msn/knk.php3 Win 
lucky prizes.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] Bad next thread
  2003-09-18  4:28 [ECOS] Bad next thread suraj kumar
@ 2003-09-18  7:20 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2003-09-18  7:20 UTC (permalink / raw)
  To: suraj kumar; +Cc: ecos-discuss

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-09-18  7:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-18  4:28 [ECOS] Bad next thread suraj kumar
2003-09-18  7:20 ` Andrew Lunn

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).