public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Lavrentiev, Anton (NIH/NLM/NCBI) [C]" <lavr@ncbi.nlm.nih.gov>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: Possible race in SYSV IPC (semaphores)
Date: Mon, 26 Nov 2012 18:09:00 -0000	[thread overview]
Message-ID: <5F8AAC04F9616747BC4CC0E803D5907D016FEA@MLBXv04.nih.gov> (raw)
In-Reply-To: <20121126125342.GA3800@calimero.vinschen.de>

> I just checked in the change.

Thank you.  I will test it as soon as it's available in a snapshot.

> ...especially since I can't reproduce this.  I tried with cygserver
> before and after my patch and in both cases your semaphore testcase
> worked as expected with -d -l 7.

I see.  Maybe this will help.  My sequence of actions:

In an elevated cmd.exe, from Cygwin's /bin:

cygrunsrv.exe -I cygserver -x /usr/sbin/cygserver.exe -a "-d -l 7"
cygrunsrv.exe -S cygserver

In a regular cmd.exe:

a.exe

(this is my testcase that locks/unlocks the semaphores).
It never gets past iteration 1000.

Also, if I start cygserver just as a regular process (not as a background
thing), so that it logs right to the window, it does not lock up.

Anton Lavrentiev
Contractor NIH/NLM/NCBI


  reply	other threads:[~2012-11-26 18:09 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-19 21:06 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-11-23 11:37 ` Corinna Vinschen
2012-11-23 13:11   ` Corinna Vinschen
2012-11-23 13:34     ` Corinna Vinschen
2012-11-23 16:44       ` Corinna Vinschen
2012-11-23 17:16         ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-11-23 17:29           ` Corinna Vinschen
2012-11-23 17:47             ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-11-23 17:59               ` Corinna Vinschen
2012-11-26 12:54                 ` Corinna Vinschen
2012-11-26 18:09                   ` Lavrentiev, Anton (NIH/NLM/NCBI) [C] [this message]
2012-11-26 18:14                     ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-11-27  7:13                     ` Corinna Vinschen
2012-11-27 14:37                       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-11-28 21:20                       ` Lavrentiev, Anton (NIH/NLM/NCBI) [C]
  -- strict thread matches above, loose matches on Subject: below --
2012-11-19 16:23 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-10-26 18:37 Lavrentiev, Anton (NIH/NLM/NCBI) [C]
2012-10-27 10:24 ` Corinna Vinschen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5F8AAC04F9616747BC4CC0E803D5907D016FEA@MLBXv04.nih.gov \
    --to=lavr@ncbi.nlm.nih.gov \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).