From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56625 invoked by alias); 29 Jun 2016 15:14:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 56616 invoked by uid 89); 29 Jun 2016 15:14:50 -0000 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 Received: from ipbcc0227e.dynamic.kabel-deutschland.de (HELO calimero.vinschen.de) (188.192.34.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 29 Jun 2016 15:14:49 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id E83A3A80375; Wed, 29 Jun 2016 17:14:46 +0200 (CEST) Date: Wed, 29 Jun 2016 16:39:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin IPC - ftok() returns negative values - Bug Report Message-ID: <20160629151446.GO981@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6cMF9JLEeZkfJjkP" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-SW-Source: 2016-06/txt/msg00443.txt.bz2 --6cMF9JLEeZkfJjkP Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1168 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" Content-length: 819 -----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--