On Mon, Oct 11, 2010 at 4:07 PM, Gilles Chanteperdrix <
gilles.chanteperd...@xenomai.org> wrote:

> Johan Cockx wrote:
> > A printf in src/skins/posix/select.c confirms that __wrap_select is
> called.
>
> Ok, but there are many branches here, could you check whether it emits
> the syscall, and if yes, what is the result of this syscall?
>

First,  it executes:
    err = XENOMAI_SKINCALL5(__pse51_muxid, __pse51_select, __nfds,
                __readfds, __writefds, __exceptfds, __timeout);
(which expands to assembly code;  is this the syscall you are referring to?)

This returns err == -9 ( == -EBADF),  so it continues to call __real_select
(which as far as I understand it calls the plain non-xenomai select) which
returns 0 (timeout).

EBADF suggests that there is something wrong with the file descriptor,  but
I have no clue what. The code that creates this file descriptor was attached
to my previous mail (recv.c).


> >
> > In ksrc/skins/posix/syscall.c,  I added the following lines:
> > #ifndef CONFIG_XENO_OPT_POSIX_SELECT
> > #error XENO_OPT_POSIX_SELECT not enabled
> > #endif
> > It still compiles,  so I am quite sure that XENO_OPT_POSIX_SELECT is
> > enabled.
>
> It confirms that the option is enabled in the kernel you compile, not in
> the one you run...
>

Correct.

>
> >
> > Attached is a small stand-alone test case.  It consists of two programs:
> > recv.c will wait for a udp message with a timeout of 10 sec (using
> > select), and send.c will send a udp message. If recv is started and then
> > send (in another terminal),  recv should return immediatly without
> > timeout;  however,  it continues to wait until a timeout occurs.
>
> By standalone, I meant without RTnet. So, please verify that you also
> get the bug without RTnet, and post a mail to the Xenomai-help mailing
> list (as opposed to the rtnet mailing list, which is the mailing list
> where you are posting currently).
>

I am not sure how to test the bug with Xenomai but without RTnet. If I
replace --posix-cflags and --posix-ldflags by --xeno-flags and
--xeno-ldflags and use a plain (non-rt) IP address,  there is no problem.


> >
> > I am currently running kernel version 2.6.26.8-ipipe-2.0-18, Xenomai
> > 2.4 and gcc 4.3.2.
> >
>
> It would be nice if you could check whether the latest 2.4 release (that
> is 2.4.10), if it is not the one you are using currently. Also, you do
> not tell us on which architecture you have that bug.
>

>  uname -a
Linux democontrol 2.6.26.8-ipipe-2.0-18 #1 SMP Mon Oct 11 12:15:20 CEST 2010
i686 GNU/Linux

Makefile:PACKAGE_STRING = Xenomai 2.4.9.1

If there is any other information that could be of use to track down this
problem,  please ask. I will try to install 2.4.10.


> --
>                                             Gilles.
>
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to