[Xenomai] System hang when doing several rtdm_task_init() calling

Philippe Gerum rpm at xenomai.org
Wed Dec 21 17:11:59 CET 2016


On 12/21/2016 03:24 PM, Sebastien Schneider wrote:
> I've correctly set CONFIG_XENO_OPT_WATCHDOG thanks to CONFIG_XENO_OPT_DEBUG.
> Here is the basic version of driver I try to load, and that leads to the
> same effect :
> 
> /#define LOWEST_PRIORITY 0/
> /#define HIGHEST_PRIORITY 99/
> /rtdm_task_t task1;/
> /rtdm_task_t task2;/
> /
> /
> /void handler_task1(void *arg)/
> /{/
> /        while(1)/
> /        {/
> /        }/
> /        return ;/
> /}/
> /
> /
> /void handler_task2(void *arg)/
> /{/
> /        while(1)/
> /        {/
> /        }/
> /        return ;/
> /}/
> /
> /
> /static int __init vlc_driver_init(void)/
> /{/
> /        printk(KERN_INFO "VLC: Inserting module...\n");/
> /        rtdm_task_init(&task1, "task1", handler_task1, NULL,
> LOWEST_PRIORITY, 0);/
> /        rtdm_task_init(&task2, "task2", handler_task2, NULL,
> HIGHEST_PRIORITY, 0);/
> /        return 0;/
> /}/
> /
> /
> /static void __exit vlc_driver_exit(void)/
> /{/
> /        printk(KERN_INFO "VLC: Removing module...\n");/
> /        return;/
> /}/
> /
> /
> /module_init(vlc_driver_init);/
> /module_exit(vlc_driver_exit);/
> /MODULE_LICENSE("GPL");/
> /
> /
> So, it must be something very basic I did not have understood !!!
> 

If the code above is actually the one you are trying to run over a dual
kernel system, infinitely running real-time tasks which never block can
only lead to a complete lock up.

-- 
Philippe.



More information about the Xenomai mailing list