On 12/06/2013 09:03 AM, Roberto Bielli wrote:
Hi,

sometimes i have a strange behaviour on boot. The kernel hangs. I saw
with an hardware debugger the backtrace when i was in that situation and
i saw this:

probe_irq_off | devm_free_irq
probe_irq_on
probe_irq_on
register_handler_proc
timecounter_read
timer_list_show
posix_cpu_timer_set
stk5_esdhci_init
load_module
exit_irq_thread
__setup_str_setup_slub_nomerge
__setup_str_setup_slub_nomerge
probe_irq_on
probe_irq_on
register_handler_proc
__xnpod_schedule
xnpipe_recv
rt_task_set_priority

The system is in loop/hangs in rt_task_set_priority.

My system has xenomai 2.5.6 on freescale imx25 arm.

Any ideas ?


If changing the priority of a thread makes that thread preempt the caller of rt_task_set_priority(), before entering a tight loop indefinitely, you would see this behavior. Enabling CONFIG_XENO_OPT_WATCHDOG would likely detect such a case.

Typical bug: not properly handling return codes of Xenomai syscalls in real-time work loops, such as -EINVAL, -EIDRM, -EINTR or -ETIMEDOUT, causing the underlying thread to iterate indefinitely on the failing syscall.

--
Philippe.

_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to