From: Philippe Gerum <rpm@xenomai.org>
To: Laurent BESSARD <laurent.bessard@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Need help with pipes
Date: Thu, 06 Mar 2008 10:50:11 +0100 [thread overview]
Message-ID: <47CFBE53.4010707@domain.hid> (raw)
In-Reply-To: <47CFBB2E.3010700@domain.hid>
Laurent BESSARD wrote:
> Hello everybody,
>
> I'm using Xenomai for realtime developments for a couple of time. I have
> written a program using pipes for Xenomai 2.1.0 and a 2.6.15 Linux
> kernel compiled with Xenomai support. All worked or seemed to work fine.
>
> Recently, I decided to upgrade my system to Xenomai 2.4.1 and a 2.6.23
> Linux kernel. But during my program execution, I get a kernel
> segmentation fault while I try to delete the pipe. After having test any
> possibility of problem while deleting pipe, I finally find that just
> creating and then deleting a pipe causes a kernel segmentation fault.
>
> Now I don't know where my problem is located:
> - There is something I'm doing wrong when I use pipes.
> - I have mis-installed Xenomai on my system.
> - It is a known problem with the version of Xenomai I installed.
>
> I attached a sample of code that causes my problem.
>
> Could anybody help me?
Does this help?
--- ksrc/skins/native/syscall.c (revision 3534)
+++ ksrc/skins/native/syscall.c (working copy)
@@ -3987,7 +3987,7 @@
[__native_intr_inquire] = {&__rt_intr_inquire, __xn_exec_any},
[__native_pipe_create] = {&__rt_pipe_create, __xn_exec_lostage},
[__native_pipe_bind] = {&__rt_pipe_bind, __xn_exec_conforming},
- [__native_pipe_delete] = {&__rt_pipe_delete, __xn_exec_any},
+ [__native_pipe_delete] = {&__rt_pipe_delete, __xn_exec_lostage},
[__native_pipe_read] = {&__rt_pipe_read, __xn_exec_primary},
[__native_pipe_write] = {&__rt_pipe_write, __xn_exec_any},
[__native_pipe_stream] = {&__rt_pipe_stream, __xn_exec_any},
> Thank you in advance.
>
> Best regards,
>
> Laurent BESSARD
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2008-03-06 9:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-06 9:36 [Xenomai-help] Need help with pipes Laurent BESSARD
2008-03-06 9:50 ` Philippe Gerum [this message]
2008-03-06 16:06 ` Laurent BESSARD
2008-03-06 16:54 ` Gilles Chanteperdrix
2008-03-08 17:46 ` Philippe Gerum
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=47CFBE53.4010707@domain.hid \
--to=rpm@xenomai.org \
--cc=laurent.bessard@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.