Xenomai: fatal: Hardened thread xxxx running in Linux domain?!
A message that is not in the archive (sent off-list or not yet received): 1297089258.102322105.1376387294632.JavaMail.root@zimbra14-e2.priv.proxad.net
hello,
I use a Linux kernel 2.6.29.6 patched with Xenomai 2.5.2.
Very scarcely, i got the following message "Xenomai: fatal: Hardened thread taskFuncInjectionMigration[3516] running in Linux domain?!" and Linux freezes.
It happens when i turn the current Linux task into a native Xenomai task via rt_task_shadow, in the following code snippet.
extern RT_TASK rtTaskFuncInjectionMigration;
void foncInjectionMigration(char* TypeMode)
{
int InjMigration, modeInjectionMigration, err;
sscanf(TypeMode, "%d %d", &InjMigration, &modeInjectionMigration);
mlockall(MCL_CURRENT|MCL_FUTURE);
AN_PRINTF("Cree une tache Xeno non temps reel dans le contexte de la tache Linux !\n");
err = rt_task_shadow(&rtTaskFuncInjectionMigration, "taskFuncInjectionMigration", 10, 0);
if(err) {
AN_PRINTF("rt_task_shadow ? (%s)\n", strerror(err));
}
foncsInjectionMigration[InjMigration](modeInjectionMigration);
munlockall();}
foncInjectionMigration is called from funcInjectionMigration, which is a son process resulting from a Linux fork.
Any help or idea about that issue would be enjoyed.
Thanks in advance
JmT
Quoted 3 lines · On 08/13/2013 12:01 PM, [email protected] wrote:
hello,
I use a Linux kernel 2.6.29.6 patched with Xenomai 2.5.2.
Please upgrade to 2.6.2, 2.5.2 is seriously updated, and bugs have been fixed since then, including in that area. Even if running a legacy 2.6.29 kernel is not recommended (at all), you can run the latest 2.6.x Xenomai releases over this old kernel as well.
If you have issues building Xenomai 2.6.x over kernel 2.6.29, please let us now.
Quoted 42 lines
Very scarcely, i got the following message "Xenomai: fatal: Hardened thread taskFuncInjectionMigration[3516] running in Linux domain?!" and Linux freezes.
It happens when i turn the current Linux task into a native Xenomai task via
rt_task_shadow, in the following code snippet.extern
RT_TASKrtTaskFuncInjectionMigration;void
foncInjectionMigration(char* TypeMode)
{
int InjMigration, modeInjectionMigration, err;sscanf(TypeMode, "%d %d", &InjMigration, &modeInjectionMigration); mlockall(MCL_CURRENT|MCL_FUTURE); AN_PRINTF("Cree une tache Xeno non temps reel dans le contexte de la tache Linux !\n"); err = rt_task_shadow(&rtTaskFuncInjectionMigration, "taskFuncInjectionMigration", 10, 0); if(err) { AN_PRINTF("rt_task_shadow ? (%s)\n", strerror(err)); } foncsInjectionMigration[InjMigration](modeInjectionMigration); munlockall();}
foncInjectionMigration is called from funcInjectionMigration, which is a son process resulting from a Linux fork.
Any help or idea about that issue would be enjoyed.
Thanks in advance
JmT
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai
Signature · 1 line
Philippe.