[Xenomai] rt_task_set_affinity causes hang
rpm at xenomai.org
Wed Oct 4 19:49:33 CEST 2017
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. --
More information about the Xenomai