This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Idle thread trying to sleep error
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Ajay Dudani <adudani at telesyn dot com>
- Cc: ecos-discuss at sources dot redhat dot com, mwalton at telesyn dot com
- Date: Tue, 10 Aug 2004 14:37:05 -0600
- Subject: Re: [ECOS] Idle thread trying to sleep error
- Organization: MLB Associates
- References: <017e01c47f01$aff3ecb0$390810ac@telesyn.corp>
On Tue, 2004-08-10 at 11:44, Ajay Dudani wrote:
> I am getting an ASSERT fail from the eCos kernel and would appreciate
> any more information on the message. The message is:
>
> ASSERT FAIL: <1>mlqueue.cxx [ 281] void
> Cyg_Scheduler_Implementation::rem_thread() Idle thread trying to sleep!
>
> I suspect there could be a heap corruption since I have lot of
> malloc/free calls in the code. Is there any tool for check for heap
> corruption/verification I can use with eCos?
The most likely culprit here is that you've called some function which
needs to block from an ISR or DSR. Have you tried setting a breakpoint
at cyg_assert_fail() and getting a backtrace?
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss