* [ECOS] Bad Next Thread Assertion
@ 2011-03-08 14:01 Elad Yosef
2011-03-08 17:37 ` [ECOS] " Elad Yosef
0 siblings, 1 reply; 2+ messages in thread
From: Elad Yosef @ 2011-03-08 14:01 UTC (permalink / raw)
To: ecos-discuss
Hi,
I get Bad next thread assertions from Cyg_Scheduler::unlock_inner - Line 187.
I have 8 threads in my system.
All threads have the same initial code before dropping to the main loop.
They all have same priority.
The code is:
Do some HW init - currently empty body.
Set Bit in a flag (each thread sets its own bit number)
Wait to on the flag according to each thread flag_mask.
all threads have flag_mask = 0 except thread# 0 that has flag 0xFF.
When running the code I get the assertion.
When changing the priorities is works, also when adding delay in
thread# 0 between the Set Bit and the wait_flag()
Is it a known Kernel issue?
Thanks
Elad
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
* [ECOS] Re: Bad Next Thread Assertion
2011-03-08 14:01 [ECOS] Bad Next Thread Assertion Elad Yosef
@ 2011-03-08 17:37 ` Elad Yosef
0 siblings, 0 replies; 2+ messages in thread
From: Elad Yosef @ 2011-03-08 17:37 UTC (permalink / raw)
To: ecos-discuss
Hi,
Some more information:
It crashes unpredictably.
I have stack checking and don't see any corruption.
Elad
On Mon, Mar 7, 2011 at 12:03 PM, Elad Yosef <elad.yosef@gmail.com> wrote:
> Hi,
> I get Bad next thread assertions from Cyg_Scheduler::unlock_inner - Line 187.
>
> I have 8 threads in my system.
>
> All threads have the same initial code before dropping to the main loop.
> They all have same priority.
> The code is:
> Do some HW init - currently empty body.
> Set Bit in a flag (each thread sets its own bit number)
> Wait to on the flag according to each thread flag_mask.
> all threads have flag_mask = 0 except thread# 0 that has flag 0xFF.
>
> When running the code I get the assertion.
>
> When changing the priorities is works, also when adding delay in
> thread# 0 between the Set Bit and the wait_flag()
>
> Is it a known Kernel issue?
>
> Thanks
>
> Elad
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-07 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-08 14:01 [ECOS] Bad Next Thread Assertion Elad Yosef
2011-03-08 17:37 ` [ECOS] " Elad Yosef
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).