delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/06/29/11:15:06

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=h+ehm6iEbpMxqt5MZCLaYSvVJfqjHfJ6Kpk2skGoOZ1q8HM6Z0Zjs
G0uB5t6jm7yKU4zU2Z62ELAEm1lGvF5O3DzwL05KAcHa1W11Ndb5s5VjcjYH176V
ULFXbZVqynXqZ9oi2gD1hxpwpB0ZvDs5MC325RFUqr6/kiJPi8N3Q4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=lhiuHcF/MvgGwj9wC0OkPps2e9M=; b=lznFDJSbW3q79C8/O/LOvUax7tHT
kABP+Vvb3yVfPwEOVf5iNNdws7w+2yAd64WGdmMQev8y4RAiltGMY9CD38s0jZ4z
steVGXMUtf5XsjJQPp4RNqhikngIWaSl47LfkZetFP7YuIY4JVsgyySjEeYJcmdO
XD2LpMp0Zp3nfLs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-94.9 required=5.0 tests=AWL,BAYES_50,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_DYNAMIC autolearn=ham version=3.3.2 spammy=ftok, installer, semget, sk:sblims
X-HELO: calimero.vinschen.de
Date: Wed, 29 Jun 2016 17:14:46 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin IPC - ftok() returns negative values - Bug Report
Message-ID: <20160629151446.GO981@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <AM3PR05MB3399758BC225C8E63BACF0FEB230 AT AM3PR05MB339 DOT eurprd05 DOT prod DOT outlook DOT com>
MIME-Version: 1.0
In-Reply-To: <AM3PR05MB3399758BC225C8E63BACF0FEB230@AM3PR05MB339.eurprd05.prod.outlook.com>
User-Agent: Mutt/1.6.1 (2016-04-27)

--6cMF9JLEeZkfJjkP
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Jun 29 13:14, Stanis=C5=82aw Wawszczak wrote:
> Dear All,
> =C2=A0
> I have had to compile sblim-sfcbd-1.4.10 on Cygwin. It is using IPC semap=
hores.
> Unfortunately it is returning wrong value as the result of complicated bi=
t-wise logical operations.
> I have tried to =E2=80=9Chack the system=E2=80=9D and make multiplication=
 of returned value by -1, but it triggers error in semget()
> Environment:
> Windows 2012 R2 with latest patches
> I have installed Cygwin from official installer couple days ago.
> =C2=A0
> I have attached the gdb session from such invocation. You can see the pat=
h and id in arguments are correct and stat() function returns correct value=
s.
> Finally result in %rax is negative:
> rax=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0xa=
f0b000701cc1d53=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -5833568862233420461

Ok,  but what's the exact problem?  Following a GDB session is kind
of a lot of work.  Simple, very short, self-contained testcase, perhaps?


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--6cMF9JLEeZkfJjkP
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXc+XmAAoJEPU2Bp2uRE+g4AYP+gJRdHcgwcCfzNJ6YAuS4Pz2
6mTX0bwWjR1YAwkIxJkfcxE/8upuffnbCpe0WJTx/+iVZKIXF01bVjI5s5uEHRrw
dLPnliun5SbjhKDuoAOuHgKFXD5HZ7Lavd+unFaV6aJCImDpUkiN25ntCL18NDmO
2nRJD8jHBKTARZW9gkmdoXLbxNC+e1NReZEQf/eHKdvp8XsD7MUgtiWdf8x1NziH
yvgruVm8HJEqam+ln1PjB1KCywD2iEV8u2P/VSi5tTZlDuLQOJveYtBs36OAQehh
4lcROAdqqNUySnpAfWcotGADXBqfYI03MMHIEpV69LUTy/rCyTtsKvbWhGGXCgA8
bC2mMAlRi9S4msBfhQ+vd0IOmzeELuDE/1ocjhYEm+GwmlCJT/IM9tjZE1dO1qr1
ZwMrVtSDoiLEGo5BhdujxvsaviLl4tfV7ICFwBYTcCI0A4Z5ZPZPKpLqIYWSoDpm
UlLjo8XXvbdq9ubLGfe8g1pIv5QFUS31wrBk9SzR2RY4c1TUYE08IW9aQL/5XaJp
gJ45QG7w8dX5eS8h4CIQ8ux5rfZH2/Pyl5/ThlH38QcBESkIJ4dxYwo0kdkYk4nD
/k62wtRKKDNAlTHCU8PR8F6nddfHYveN62b4CpamT9Q0f3l9pWBMpDDv4t0Q6kR1
1qelCbqyCRwUSHCvSIF0
=D4gn
-----END PGP SIGNATURE-----

--6cMF9JLEeZkfJjkP--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019