Cygwin IPC - ftok() returns negative values - Bug Report
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Jun 29 16:39:00 GMT 2016
On Jun 29 13:14, Stanisław Wawszczak wrote:
> Dear All,
>
> I have had to compile sblim-sfcbd-1.4.10 on Cygwin. It is using IPC semaphores.
> Unfortunately it is returning wrong value as the result of complicated bit-wise logical operations.
> I have tried to “hack the system” 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.
>
> I have attached the gdb session from such invocation. You can see the path and id in arguments are correct and stat() function returns correct values.
> Finally result in %rax is negative:
> rax 0xaf0b000701cc1d53 -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
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20160629/93bdf0cb/attachment.sig>
More information about the Cygwin
mailing list