X-Recipient: archive-cygwin@delorie.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:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; q=dns; s=default; b=lhlQygNmV8aS+y2icD2rcRR6BMFSW
	bgSbli1K73JoemjgcO5NSvjl530eUgvJQztA0v7Bfjd3gOzEo3+hp6TNE9S0iN+V
	4K54expqPFbQyBnFHGYbuFvon7ypURp7pTiFqerVITVr2GdK4Lzev5xHWr8ic25B
	awUqcasqq62fwk=
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:from:to:subject:date:message-id:references
	:in-reply-to:content-type:content-transfer-encoding
	:mime-version; s=default; bh=G499pccFWbxJlJpDkJp3DKonfPY=; b=mtj
	iH8shdBxKg+h0xWDwLsXdWj4ko0bXiBTPPQ3WS4HlOICk3SQjj5aYK45DLIhXuOP
	SPfoGR2H5gsXVicPTpnwkK6qAkDrD4t3W2OqC54MeRzXGSOb1iMrDnGrbJW2QsbI
	2NrXyavPPruI/CIhbEx+K/+iQRygMgwi7f8veXF8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=AWL,BAYES_00,CYGWIN_OWNER_BODY,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2
X-HELO: na01-bn1-obe.outbound.protection.outlook.com
From: Vladimir Sakharuk <vsakharuk@hbk.com>
To: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: RE: bash.exe: *** fatal error - add_item ("\??\C:\cygwin", "/", ...) failed, errno 1
Date: Thu, 5 Mar 2015 21:30:47 +0000
Message-ID: <33B440E9970A984C93230FC4FA9B70ECCF225E@DALIFXMB1.hbk.com>
References: <33B440E9970A984C93230FC4FA9B70ECCF1964@DALIFXMB1.hbk.com> <33B440E9970A984C93230FC4FA9B70ECCF19A0@DALIFXMB1.hbk.com> <20150305170349.GI3213@calimero.vinschen.de>
In-Reply-To: <20150305170349.GI3213@calimero.vinschen.de>
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
X-EOPAttributedMessage: 0
Received-SPF: Pass (protection.outlook.com: domain of hbk.com designates 216.52.181.200 as permitted sender) receiver=protection.outlook.com; client-ip=216.52.181.200; helo=mailhostd.hbk.com;
Authentication-Results: spf=pass (sender IP is 216.52.181.200) smtp.mailfrom=vsakharuk@hbk.com; cygwin.com; dkim=none (message not signed) header.d=none;
X-Forefront-Antispam-Report:	CIP:216.52.181.200;CTRY:US;IPV:NLI;EFV:NLI;BMV:1;SFV:NSPM;SFS:(10009020)(6009001)(438002)(189002)(13464003)(53754006)(199003)(377454003)(51704005)(24454002)(47776003)(6806004)(87936001)(2656002)(62966003)(77156002)(33656002)(450100001)(23676002)(86362001)(54356999)(55846006)(107886001)(53416004)(19580405001)(19580395003)(50466002)(25786006)(92566002)(2920100001)(50986999)(77096005)(46102003)(106466001)(76176999)(110136001)(102836002)(2950100001)(491001)(460985005);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR0801MB1005;H:mailhostd.hbk.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en;
X-OriginatorOrg: hbk.com
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB1005;
X-Microsoft-Antispam-PRVS:	<DM2PR0801MB100583DB213FCFC42344BD8FBE1F0@DM2PR0801MB1005.namprd08.prod.outlook.com>
X-Exchange-Antispam-Report-Test: UriScan:;
X-Exchange-Antispam-Report-CFA-Test:	BCL:0;PCL:0;RULEID:(601004)(5002007)(5005006);SRVR:DM2PR0801MB1005;BCL:0;PCL:0;RULEID:;SRVR:DM2PR0801MB1005;
X-Forefront-PRVS: 05066DEDBB
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2015 21:30:48.4348 (UTC)
X-MS-Exchange-CrossTenant-Id: 56ddf89f-f56a-4580-a618-b3ec65cf64c4
X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=56ddf89f-f56a-4580-a618-b3ec65cf64c4;Ip=[216.52.181.200]
X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0801MB1005
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t25LV7Zm002262

That was helpful! I have stopped trying rebase combinations and looking for something else...

Thank you.

-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Corinna Vinschen
Sent: Thursday, March 05, 2015 12:04 PM
To: cygwin@cygwin.com
Subject: Re: bash.exe: *** fatal error - add_item ("\??\C:\cygwin", "/", ...) failed, errno 1

On Mar  5 15:40, Vladimir Sakharuk wrote:
> Hi All,
> I have found similar issues, but did not find solution that worked for me. Looking for help.
> 
> I am trying to run applications on windows cluster.
> I am getting random crashes like bellow.
> However most of the times it works. I assume around 1% of starts fails. Starting it is again usually succeed.
> I suspected that it was forking issue, but cygwin's rebase did not help.
> I did rebase after server reboot with no Cygwin apps running. (BTW, Is 
> there any way to check if rebase successful?)

That's not a rebase problem.  It's apparently a concurrency problem of sorts.  While pulling up the per-user shared memory region, two or more processes are trying to set up the same mount points.

This is not supposed to happen.  Only the first process actually
*creating* the per-user shared memory is supposed to create the mount points.  The OS tells a process if it created or just opened a shared memory region, but for some reason both processes seem to think they created the shmem region and one of them then stumbles of the EPERM condition trying to create the root mount point twice.

> Thank you for suggestions.

I don't have a sugggestion, in fact.  Again, this error condition was supposed to be impossible, but somehow it isn't in your cluster setup.


Corinna

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

