Date: Fri, 26 Jun 2020 18:41:52 +0200 (CEST) From: jeanmicheltaprest@free.fr Message-ID: <1687500219.240486177.1593189712100.JavaMail.root@zimbra14-e2.priv.proxad.net> In-Reply-To: Subject: Re: rt_task_create error EINVAL after a while MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Greg Gallagher Cc: "Xenomai@xenomai.org" Thank you Greg, CONFIG_FUSE_FS is enabled ----- Mail original ----- De: "Greg Gallagher" =C3=80: jeanmicheltaprest@free.fr Cc: "Xenomai@xenomai.org" Envoy=C3=A9: Vendredi 26 Juin 2020 17:10:48 Objet: Re: rt_task_create error EINVAL after a while Hi, On Fri, Jun 26, 2020 at 10:54 AM jeanmicheltaprest--- via Xenomai wrote: > > > 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 : > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D > > 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=3Darm-linux-gnueabihf --host=3Darm-linux-gnueabihf > --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --exec-prefix=3D/usr > --sysconfdir=3D/etc --localstatedir=3D/var --program-prefix=3D > --disable-dependency-tracking --disable-static > --enable-shared --includedir=3D/usr/include/xenomai/ > --with-core=3Dcobalt --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 > > Best regards > > Jean-Michel >