From: Jan Kiszka <jan.kiszka@domain.hid>
To: Steve <sbxenomai@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] select(2) generates EFAULT
Date: Thu, 21 May 2009 10:46:31 +0200 [thread overview]
Message-ID: <4A1514E7.90801@domain.hid> (raw)
In-Reply-To: <abaf774b0905210135qce7c61dg46ae05bb40567c13@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]
Steve wrote:
> On 18/05/2009, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote:
>> Steve wrote:
>>> First, thank you for the help on my previous query.
>>>
>>> I am still working on porting a c++ application from RTAI to Xenomai,
>>> and have encountered a problem with sockets, specifically the select
>>> function.
>>>
>>> When Xenomai is not being used the code runs as expected. Once the
>>> Xenomai headers, compile options, etc, are used the select function
>>> fails with the error EFAULT. I have reproduced the error (works
>>> without Xenomai, EFAULTs with Xenomai) using the following program:
>>>
> <snip>
>>> I am using Xenomai 2.4.6.1 on a vanilla 2.6.24.6 Linux kernel, and
>>> running on Ubuntu 8.04.
>> Could you try 2.4.7, to see if you are not having a bug which has
>> already been fixed?
>>
>> What you are trying should work, even though you are not really using
>> Xenomai's select but Linux plain select.
>>
>> --
>> Gilles.
>>
>
> I have just tested my example code with Xenomai version 2.4.7 but I am
> still encountering the problem.
You need to pull the latest 2.4.x git version [1].
Jan
[1] http://git.xenomai.org/?p=xenomai-2.4.git;a=summary
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2009-05-21 8:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-18 13:56 [Xenomai-help] select(2) generates EFAULT Steve
2009-05-18 14:03 ` Gilles Chanteperdrix
2009-05-18 14:15 ` Jan Kiszka
2009-05-18 14:20 ` Gilles Chanteperdrix
2009-05-18 14:35 ` Jan Kiszka
2009-05-18 15:08 ` Steve
2009-05-18 15:17 ` Steve
2009-05-18 15:27 ` Gilles Chanteperdrix
2009-05-21 8:35 ` Steve
2009-05-21 8:46 ` Jan Kiszka [this message]
2009-05-27 15:12 ` Steve
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A1514E7.90801@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=sbxenomai@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.