All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] [Page fault - POSIX skin] Interraction between malloc en nanosleep
@ 2012-12-18 14:35 alex alex
  2012-12-18 14:40 ` Gilles Chanteperdrix
  2012-12-18 15:27 ` Gilles Chanteperdrix
  0 siblings, 2 replies; 9+ messages in thread
From: alex alex @ 2012-12-18 14:35 UTC (permalink / raw)
  To: xenomai

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.

Alex.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bug_switch.bz2
Type: application/x-bzip2
Size: 1208 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20121218/66ca8915/attachment.bin>

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-01-02  8:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.