From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55071 invoked by alias); 11 Mar 2016 11:41:39 -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 55051 invoked by uid 89); 11 Mar 2016 11:41:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=65536, 0Semaphore, 0semaphore, viewed X-HELO: mail-qk0-f175.google.com Received: from mail-qk0-f175.google.com (HELO mail-qk0-f175.google.com) (209.85.220.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 11 Mar 2016 11:41:28 +0000 Received: by mail-qk0-f175.google.com with SMTP id s5so46383908qkd.0 for ; Fri, 11 Mar 2016 03:41:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=aJsc0nb9BSknHqX1e0K2/SWxdJkNKcfTXTKM+UyHDHE=; b=mksvBCAlJZ2KhmmDWxYvVF0JeTV3o83vQwBmgu3Sv7DN/bGA3ShZnYUA+IuP3+FYLD UpNxDjmW8Fk+66UR3eU5hb6lqCzPlIqxi88BDZg8zOXi3qeraMc9ha5+7kNQGb9UqmqK atkb9+MZTq+SHEe7fHFALBYC+Qv/IxM+J+H3pMfP6UpHDUxOsqrrvstEdEAPESq9maqI tpg0T2fiELfFzgqlTjzQFLX66x57yI1DoAY1QyZpkkloBs0VbPEB/phgzLX3DJ9OMrQr NSqNydnxOCOPTQoscNR6Z+zwLy3NSmDubLFzM37HK4EpPZBlxhVTliCuVZehIbHecdaS 5xRw== X-Gm-Message-State: AD7BkJKgnY0WECqtdiq+IAHiWGWpbDGmsvYWiDiEbJHePbXjpoWERDSGhs5mDmg+566FlA== X-Received: by 10.55.24.87 with SMTP id j84mr10798262qkh.92.1457696486513; Fri, 11 Mar 2016 03:41:26 -0800 (PST) Received: from [192.168.106.108] ([24.97.227.121]) by smtp.googlemail.com with ESMTPSA id o67sm3762469qho.12.2016.03.11.03.41.25 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Mar 2016 03:41:25 -0800 (PST) Subject: Re: SEMCTL fails with error 22 To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <56E2AEE1.7000703@gmail.com> Date: Fri, 11 Mar 2016 11:41:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-03/txt/msg00151.txt.bz2 On 11/03/2016 11:52, Meenakshi Pant wrote: > For me the out put is when cygserver is up. > > Semaphore Test > Semaphore created successfully 196608 > Value before errno = 0 > Cannot set semaphore value.errno = 22 > > When cygserver is down the output is > > Semaphore Test > Unable to obtain semaphore 88 > > > After bringing up cygserver the command 'cygcheck -c' shows the below output. > As mentioned https://cygwin.com/problems.html "Run cygcheck -s -v -r > cygcheck.out and include that file as an attachment in your report. Please do not compress or otherwise encode the output. Just attach it as a straight text file so that it can be easily viewed." I have exactly the same results as Achim ./semtest.exe Semaphore Test Semaphore created successfully 65536 Value before errno = 0Semaphore 1492 initialized. On both 32 and 64 bit. So it seems a specific issue on your system side. What software are you running ? Any potential Bloda ? https://cygwin.com/faq/faq.html#faq.using.bloda Looks also on "detect_bloda" at https://cygwin.com/cygwin-ug-net/using-cygwinenv.html Regards Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple