From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: alex alex <duch.alexandre@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] [Page fault - POSIX skin] Interraction between malloc en nanosleep
Date: Tue, 18 Dec 2012 16:27:48 +0100 [thread overview]
Message-ID: <50D08B74.1010809@xenomai.org> (raw)
In-Reply-To: <CAPpP=rPyuKK5Sr9mxXFw+KMhD3g1F+Q5=d8Xm7nQS6hF5OCebw@mail.gmail.com>
On 12/18/2012 03:35 PM, alex alex wrote:
> Hi all,
>
> The attached program shows an interraction bug between malloc and nanosleep.
> The use of these two functions in a rt thread leads to a page fault.
> The dmesg output is:
>
> Xenomai: Switching test to secondary mode after exception #14 from
> user-space at 0xb760393e (pid 30730)
>
> I need to remove this switch because it prevents me to used the
> rtdm_sem_down function ( which return -1) in my RTDM driver and I guess it
> must also deteriorate the real time performance of my application.
>
> Thanks for your help.
If you are compiling with the Makefile in the attachment, your rt thread
is not in fact using xenomai.
--
Gilles.
next prev parent reply other threads:[~2012-12-18 15:27 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-18 14:35 [Xenomai] [Page fault - POSIX skin] Interraction between malloc en nanosleep alex alex
2012-12-18 14:40 ` Gilles Chanteperdrix
2012-12-18 15:27 ` Gilles Chanteperdrix [this message]
2012-12-18 15:30 ` Gilles Chanteperdrix
2012-12-18 16:16 ` alex alex
2012-12-18 16:28 ` Gilles Chanteperdrix
2012-12-18 19:27 ` alex alex
2012-12-18 20:19 ` Gilles Chanteperdrix
[not found] ` <CAPpP=rNbsH+iXBrK+vs3CZG3T0sxOw-NZ1Px=1unOLjZq3QgAQ@mail.gmail.com>
[not found] ` <50D1CFD0.9080500@xenomai.org>
[not found] ` <CAPpP=rNtKwL3ifNx5iABmzXpKpSeYuHnw8asRY8xiicpvn4P2g@mail.gmail.com>
[not found] ` <50D2E611.1040404@xenomai.org>
2013-01-02 8:21 ` alex alex
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=50D08B74.1010809@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=duch.alexandre@gmail.com \
--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.