Skip to contentSkip to conversation

rt_task_create error EINVAL after a while

DISCUSSION [email protected] 2 participants 3 messages Jun 26, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 761356215.240180691.1593183018087.JavaMail.root@zimbra14-e2.priv.proxad.net

#1 lore raw

Hi All,

Hardware and firmware configuration :
ARM Cortex A7 32 bit processor in an i.MX 6ULL NXP module with Linux 4.19.82 and Xenomai 3.0.9 ( Cobalt ).

Problems with rt_task_create ( & object clusters ) and access to the registry root path :
==================================================

The embedded Linux/Xenomai software application starts OK, except when, after a while,
rt_task_create is used to create RT Xenomai daughter tasks.

Suddenly a call to rt_task_create fails with error EINVAL, after many successfull calls to the same function.
Warning debugging messages in the the Xenomai Alchemy and Copperplate libraries give EINVAL error
when calling syncobj_lock from syncluster_addobj ( object clusters ) ( called from create_tcb, which is called from rt_task_create ).

I also noticed a problem to access to the root registry, i don't know if it is related.
The access to /var/run/xenomai/root/anon@724 blocks. The command 'ls /var/run/xenomai/root/anon@724' never returns.

The xenomai libraries build was setup with the following command :
./configure --target=arm-linux-gnueabihf --host=arm-linux-gnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix= --disable-dependency-tracking --disable-static --enable-shared --includedir=/usr/include/xenomai/ --with-core=cobalt --enable-smp --enable-registry --enable-assert --enable-async-cancel --enable-pshared

Best regards

Jean-Michel

#2 lore raw

Hi,

Quoted 28 lines · jeanmicheltaprest--- via Xenomai

Hi All,

Hardware and firmware configuration :
ARM Cortex A7 32 bit processor in an i.MX 6ULL NXP module with Linux 4.19.82 and Xenomai 3.0.9 ( Cobalt ).

Problems with rt_task_create ( & object clusters ) and access to the registry root path :
==================================================

The embedded Linux/Xenomai software application starts OK, except when, after a while,
rt_task_create is used to create RT Xenomai daughter tasks.

Suddenly a call to rt_task_create fails with error EINVAL, after many successfull calls to the same function.
Warning debugging messages in the the Xenomai Alchemy and Copperplate libraries give EINVAL error
when calling syncobj_lock from syncluster_addobj ( object clusters ) ( called from create_tcb, which is called from rt_task_create ).

I also noticed a problem to access to the root registry, i don't know if it is related.
The access to /var/run/xenomai/root/anon@724 blocks. The command 'ls /var/run/xenomai/root/anon@724' never returns.

Quoted 8 lines

The xenomai libraries build was setup with the following command :
./configure --target=arm-linux-gnueabihf --host=arm-linux-gnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix= --disable-dependency-tracking --disable-static --enable-shared --includedir=/usr/include/xenomai/ --with-core=cobalt --enable-smp --enable-registry --enable-assert --enable-async-cancel --enable-pshared

I haven't tested much with --enable-registry, do you have CONFIG_FUSE_FS enabled in your kernel? If no one else has any leads I can do some testing this weekend.

-Greg

Quoted 5 lines

Best regards

Jean-Michel

#3 lore raw

Thank you Greg,

CONFIG_FUSE_FS is enabled

----- Mail original -----
De: "Greg Gallagher" <[email protected]> À: [email protected]
Cc: "[email protected]" <[email protected]> Envoyé: Vendredi 26 Juin 2020 17:10:48
Objet: Re: rt_task_create error EINVAL after a while

Hi,

Quoted 28 lines · jeanmicheltaprest--- via Xenomai

Hi All,

Hardware and firmware configuration :
ARM Cortex A7 32 bit processor in an i.MX 6ULL NXP module with Linux 4.19.82 and Xenomai 3.0.9 ( Cobalt ).

Problems with rt_task_create ( & object clusters ) and access to the registry root path :
==================================================

The embedded Linux/Xenomai software application starts OK, except when, after a while,
rt_task_create is used to create RT Xenomai daughter tasks.

Suddenly a call to rt_task_create fails with error EINVAL, after many successfull calls to the same function.
Warning debugging messages in the the Xenomai Alchemy and Copperplate libraries give EINVAL error
when calling syncobj_lock from syncluster_addobj ( object clusters ) ( called from create_tcb, which is called from rt_task_create ).

I also noticed a problem to access to the root registry, i don't know if it is related.
The access to /var/run/xenomai/root/anon@724 blocks. The command 'ls /var/run/xenomai/root/anon@724' never returns.

Quoted 8 lines

The xenomai libraries build was setup with the following command :
./configure --target=arm-linux-gnueabihf --host=arm-linux-gnueabihf --build=x86_64-pc-linux-gnu --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --program-prefix= --disable-dependency-tracking --disable-static --enable-shared --includedir=/usr/include/xenomai/ --with-core=cobalt --enable-smp --enable-registry --enable-assert --enable-async-cancel --enable-pshared

I haven't tested much with --enable-registry, do you have CONFIG_FUSE_FS enabled in your kernel? If no one else has any leads I can do some testing this weekend.

-Greg

Quoted 5 lines

Best regards

Jean-Michel