From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49FDFCC7.6000009@domain.hid> Date: Sun, 03 May 2009 22:21:27 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <5D63919D95F87E4D9D34FF7748CE2C2A018D48CC@ARVMAIL1.mra.roland-man.biz> In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2A018D48CC@ARVMAIL1.mra.roland-man.biz> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] Some problems with shared memory List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: roderik.wildenburg@domain.hid Cc: xenomai@xenomai.org roderik.wildenburg@domain.hid wrote: > I have two problems with shared memory and Xenomai 2.4.6 (2.4.25 PPC-ke= rnel): >=20 > 1.) If I don=B4t page align the size of shared memory (multiple of 4096= ) I get the following error message : > "createshm mmap: No such device or address" >=20 > Detailed programm output of attached testprogram : > { > prompt # ./killtest -c & > [1] 104 > prompt # createshm mmap: No such device or address > shmsize =3D 100000; errno : 6 =3D=3D Failed to create shm : -3 > killtest user exit ! > } >=20 > You can reproduce this effect by commenting out line 60 in the attached= source file and calling the program as follows: >=20 > 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 ? >=20 >=20 > 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 on= ly 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. --=20 Gilles.