Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

Carsten EHRMANN Carsten.Ehrmann at diehl.com
Tue Mar 10 12:51:46 CET 2020


Hi,

sry I don't have any futher messages. I tried to debug the code in Codeblocks but this didn't work, only build. Also debug the executable in eclipse failed.

The only part in pipe.c where EINVAL is used with rt_pipe_create() is here:

if (minor == P_MINOR_AUTO) {
		/* Fetch the assigned minor device. */
		addrlen = sizeof(saddr);
		ret = __RT(getsockname(sock, (struct sockaddr *)&saddr, &addrlen));
		if (ret)
			goto fail_sockopt;
		if (addrlen != sizeof(saddr)) {
			ret = -EINVAL;
			goto fail_register;
		}
		minor = saddr.sipc_port;
	}


So the given and returned lenght doesn't fit together but this is a thing I have no influence, or?

Also tried to find __RT()  to get futher information.

Do you have any idea what could be the reason?



Carsten





_________________________________________________________________________________________________________
Bitte überlegen Sie, ob Sie diese Nachricht wirklich ausdrucken müssen/ before printing, think about environmental responsibility.
Diehl Metering GmbH, Industriestraße 13, 91522 Ansbach
Telefon + 49 981 1806 0, Telefax +49 981 1806 615
Sitz der Gesellschaft: Ansbach, Registergericht: Ansbach HRB 69
Geschäftsführer: Dr. Christof Bosbach (Sprecher), Thomas Gastner, Jean-François Marguet
Der Inhalt der vorstehenden E-Mail ist nicht rechtlich bindend. Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Informieren Sie uns bitte, wenn Sie diese E-Mail fälschlicherweise erhalten haben. Bitte löschen Sie in diesem Fall die Nachricht. Jede unerlaubte Form der Reproduktion, Bekanntgabe, Änderung, Verteilung und/oder Publikation dieser E-Mail ist strengstens untersagt.
The contents of the above mentioned e-mail is not legally binding. This e-mail contains confidential and/or legally protected information. Please inform us if you have received this e-mail by mistake and delete it in such a case. Each unauthorized reproduction, disclosure, alteration, distribution and/or publication of this e-mail is strictly prohibited.
Informationen zum Datenschutz finden Sie auf unserer Homepage.
https://www.diehl.com/metering/de/diehl-metering/data-protection
Information about data protection can be found on our homepage.
https://www.diehl.com/metering/en/diehl-metering/data-protection


-----Original Message-----
From: Jan Kiszka <jan.kiszka at siemens.com> 
Sent: Monday, March 9, 2020 9:55 AM
To: Carsten EHRMANN <Carsten.Ehrmann at diehl.com>; Richard Weinberger <richard at nod.at>
Cc: xenomai <xenomai at xenomai.org>
Subject: Re: Migrate project from Debian 8 Xenomai 2.x to Debain 9 Xenomai 3.x

On 09.03.20 09:26, Carsten EHRMANN wrote:
> Hi ,
> 
> so xeno_rtipc is up now, listed in "lsmod | grep xeno"
> 
> Now I got another error from rt_pipe_create(): -22
> 
> What does this mean?
> Are these errorcodes listed somewhere?
> 

[my 'errno' script]

#!/bin/sh
ERRNO_HEADERS="/usr/include/asm-generic/errno-base.h /usr/include/asm-generic/errno.h"
if [ "$1" = "" ]; then
        ERR="[[:digit:]]+"
else
        ERR=$1
fi
grep -E "[[:space:]]$ERR[[:space:]]/" $ERRNO_HEADERS

With that information, you can check where the function may through EINVAL. It's not a common error, though (we may need to document reasons for it). Do you get further messages? Try to attach a debugger to find out with call in rt_pipe_create (lib/alchemy/pipe.c) returns this code.

Jan

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux


More information about the Xenomai mailing list