[Xenomai] rt_task_set_affinity causes hang

Piotr Piorkowski qba100 at gmail.com
Wed Oct 4 22:03:30 CEST 2017


I have the same problem on Raspberry Pi 3.
Its look as freeze platform. Under xenomai 3.0.3 programs works fine.

Piotr

2017-10-04 19:49 GMT+02:00 Philippe Gerum <rpm at xenomai.org>:

> On 10/04/2017 05:05 AM, Jackson Jones wrote:
> > Below is an example program that runs fine under xenomai-3.0.3. Under
> 3.0.5
> > it hangs when rt_task_set_affinity() is called.
> >
> > Any ideas?
> >
>
> - which CPU architecture is your app running on?
>
> - what do you mean by "it hangs"? Sleeps with no action with the rest of
> the system still ok, or hard lockup of the whole SoC?
>
> - rt_task_sleep() returns a status code; if the application does not
> care about it, it might enter a tight loop whenever the call fails, for
> whatever reason. That status may help determining such reason.
>
> CONFIG_XENO_OPT_WATCHDOG is usually helpful for detecting runaway
> threads, preventing hard lockups. --
> Philippe.
>
> _______________________________________________
> Xenomai mailing list
> Xenomai at xenomai.org
> https://xenomai.org/mailman/listinfo/xenomai
>


More information about the Xenomai mailing list