From: =?utf-8?q?Fran=C3=A7ois_Legal?= In-Reply-To: <1174-5f6e1700-39-37e14c00@201457241> Content-Type: text/plain; charset="utf-8" Date: Wed, 30 Sep 2020 08:42:33 +0200 MIME-Version: 1.0 Message-ID: <1175-5f742900-ab-25a5a500@198940470> Subject: =?utf-8?q?Re=3A?= Strange switching =?utf-8?q?=5Bthreadname=5D?= to secondary mode after exception #0 in kernel-space at 0x80272444 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?q?Fran=C3=A7ois_Legal?= Cc: Jan Kiszka , xenomai@xenomai.org So I decided to dig a little deeper in this problem, and found out that= it is not xenomai3.1 specific. I tried with xenomai-3.0.9 and linux 4.4.227 -> same problem. I thought it might be a matter of ipipe patch not quite fit to 4.4.227,= so I decided to try with latest ipipe-4.4.y-cip from git and xenomai 3= .0.9, but the same problem happens. Fran=C3=A7ois Le Vendredi, Septembre 25, 2020 18:11 CEST, Fran=C3=A7ois Legal via Xen= omai a =C3=A9crit: > Sorry to come back so late on that topic. > I took some time to write a simple test program, which is attached. > > Config is as follows : > xenomai-3.1 > linux-4.4.227 > > Fran=C3=A7ois > > Le Vendredi, Ao=C3=BBt 21, 2020 20:04 CEST, Jan Kiszka a =C3=A9crit: > > > On 20.08.20 15:46, Fran=C3=A7ois Legal via Xenomai wrote: > > > Using RTNet with multiple interfaces, xenomai 3.1 with linux 4.4 > > > Whenever a posix RT thread calls recvmsg (), I get this error. > > > > > > I could track this down to line 422 in udp.c : msg =3D rtnet=5F= get=5Farg(fd, &=5Fmsg, u=5Fmsg, sizeof(=5Fmsg)); > > > > > > If I disassemble the kernel, the failing instruction (at 0x802724= 44) is a nop in arm=5Fcopy=5Ffrom=5Fuser > > > Am I doing anything wrong ? > > > > Maybe you are passing an invalid pointer to recvmsg, directly or in= its > > message structures. That would cause an exception which is fixed up= but > > also reported. Do you get an error in return? > > > > Jan > > > > -- > > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > > Corporate Competence Center Embedded Linux > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: test-net.c > Type: application/octet-stream > Size: 6141 bytes > Desc: not available > URL: