delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Subject: | Re: cygserver shmat |
From: | bertrand marquis <bertrand DOT marquis AT sysgo DOT com> |
To: | cygwin <cygwin AT cygwin DOT com> |
In-Reply-To: | <1092313150.4368.18.camel@bma.sysgo.com> |
References: | <1092302630 DOT 4368 DOT 3 DOT camel AT bma DOT sysgo DOT com> <20040812093246 DOT GB24822 AT cygbert DOT vinschen DOT de> <1092305627 DOT 4368 DOT 10 DOT camel AT bma DOT sysgo DOT com> <20040812104409 DOT GA28756 AT cygbert DOT vinschen DOT de> <1092312195 DOT 4368 DOT 14 DOT camel AT bma DOT sysgo DOT com> <1092313150 DOT 4368 DOT 18 DOT camel AT bma DOT sysgo DOT com> |
Organization: | SYSGO AG |
Message-Id: | <1092314682.4368.30.camel@bma.sysgo.com> |
Mime-Version: | 1.0 |
Date: | 12 Aug 2004 14:44:42 +0200 |
X-Spam-Checker-Version: | SpamAssassin 2.63 (2004-01-11) on donald.sysgo.com |
X-Spam-Level: | |
X-Spam-Status: | No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.63 |
X-AntiVirus: | checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.27.0.4; VDF: 6.27.0.8; host: mailgate.sysgo.de) |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id i7CCjRhj029914 |
Le jeu 12/08/2004 à 14:19, bertrand marquis a écrit : > Le jeu 12/08/2004 à 14:03, bertrand marquis a écrit : > > Le jeu 12/08/2004 à 12:44, Corinna Vinschen a écrit : > > > On Aug 12 12:13, bertrand marquis wrote: > > > > In fact i wasn't using the SHM_RNd flag. > > > > > > > > In details here is what i do: > > > > > > > > - get a shared segment of with size= SIZE (SIZE multiple of SHMLBA) > > > > - attach the segment without specifying address and storing the result > > > > in beginaddress > > > > - attach the segment again specifying the address: endposition= > > > > beginaddress + SIZE > > > > > > > > without SHM_RND in the second shmat i've got the error : invalid > > > > argument > > > > > > > > now that i specifie SHM_RND in the flag i have the error: value to large > > > > for defined type .... > > > > > > > > any idea ? > > > > > > Nope. Not without knowing the actual values. An strace output of > > > the affected calls would be good. Even better, create a simple testcase > > > which allows to reproduce the behaviour. Just the minimum of necessary > > > code. > > > > > > > > > Corinna > > > > > > Ok, > > > > i have made a minimum program showing the problem. > > You can try specifying or not SHM_RND in the second shmat, without i > > have INvalid argument error and with i have value too large for defined > > data type. > > > > > > thanks > > bertrand > > > > ______________________________________________________________________ > Hello > > Running some tests it seems that specifying an adress is not the problem > because if i give an adress in the first shmat it is running well as > long as this adress is free. > In fact the problem is only when specifying an adress for mapping the > same segment twice and only if we specifie the adress the second time. > > i hope it could help or give an idea to someone. > > bertrand > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem reports: http://cygwin.com/problems.html > Documentation: http://cygwin.com/docs.html > FAQ: http://cygwin.com/faq/ > Hello an other time, Ok i perhaps find a solution or a beginning of solution: the getpagesize() function return a value of 4096 for the page size and it seems that shmat need the address to be aligned on a multiple of SHMLBA (655539), if instead of using getpagesize value to round the size i use the value of SHMLBA i can run the test program without any problem. the thing is that this doesn't append under linux. In fact under linux SHMLBA=getpagesize=4096 so the program run perfectly without any problem. Perhaps the cygwin release of getpagesize should output also SHMLBA ? bertrand -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |