All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: roderik.wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Some problems with shared memory
Date: Sun, 03 May 2009 22:21:27 +0200	[thread overview]
Message-ID: <49FDFCC7.6000009@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A018D48CC@ARVMAIL1.mra.roland-man.biz>

roderik.wildenburg@domain.hid wrote:
> I have two problems with shared memory and Xenomai 2.4.6 (2.4.25 PPC-kernel):
> 
> 1.) If I don´t page align the size of shared memory (multiple of 4096) I get the following error message :
> "createshm mmap: No such device or address"
> 
> Detailed programm output of attached testprogram :
> {
> prompt # ./killtest -c &
> [1] 104
> prompt # createshm mmap: No such device or address
> shmsize = 100000; errno : 6 == Failed to create shm : -3
> killtest user exit !
> }
> 
> You can reproduce this effect by commenting out line 60 in the attached source file and calling the program as follows:
> 
> prompt # killtest -c

Hi,

sorry for the late answer, your questions got somewhat forgotten.

Are you sure this issue is specific to xenomai, do not you have the same
effect with plain Linux shared memories ?

> 
> 
> 2.) If I create 2 processes which use the same shared memory and I kill the process which created the SHM before (!) the other process, which only uses the SHM, the whole system stalls.
> You can reproduce this with the attached testprogramm by calling it in the following way :

This issue should have been fixed in the course of the 2.5-rc1 release.

-- 
					    Gilles.



  parent reply	other threads:[~2009-05-03 20:21 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-30  9:31 [Xenomai-help] Some problems with shared memory roderik.wildenburg
2009-03-30 12:14 ` Gilles Chanteperdrix
2009-03-31 11:52   ` roderik.wildenburg
2009-04-06  8:47     ` roderik.wildenburg
2009-05-03 20:21 ` Gilles Chanteperdrix [this message]
2009-05-04  7:23   ` Wolfgang Denk
2009-05-04  8:49     ` Gilles Chanteperdrix
2009-05-04 15:24     ` Thomas Lockhart
2009-05-04 18:01       ` Wolfgang Denk
2009-05-04 18:33         ` Gilles Chanteperdrix
2009-05-05 12:16           ` roderik.wildenburg
2009-05-29 18:42             ` Gilles Chanteperdrix
2009-06-08  8:25               ` roderik.wildenburg
2009-06-08 20:36                 ` Gilles Chanteperdrix
2009-06-09  6:30                   ` roderik.wildenburg
2009-06-09 13:28                 ` Philippe Gerum
2009-06-09 13:38                   ` Philippe Gerum
2009-06-10 11:47                   ` roderik.wildenburg
2009-06-12 14:06                     ` Philippe Gerum
2009-06-16 13:20                       ` roderik.wildenburg
2009-06-16 13:45                         ` Philippe Gerum
2009-06-17 11:40                           ` roderik.wildenburg
2009-06-17 14:19                             ` Philippe Gerum
2009-06-18  8:37                               ` roderik.wildenburg
2009-06-18  8:51                                 ` Philippe Gerum
2009-05-05 16:36         ` Thomas Lockhart
2009-05-05 19:03           ` Wolfgang Denk

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=49FDFCC7.6000009@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=roderik.wildenburg@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.