delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/12/19/14:39:45

X-Recipient: archive-cygwin AT delorie DOT 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-id:content-transfer-encoding
:mime-version; q=dns; s=default; b=AJ0KJWOsSp7DvOC/p6H7G2fa7q64t
Lcw2cKbOk94Hq0CJMsmw+YJr0IF8PNSXP7bZcUuoQMy4lc5x1cigYvxxAT6fXfS8
jL5uJBJV0u5XWHmmmbSERVF5xGAWVPWoMf6HJjrZvvjtX2aGRyVBKMXbpshb2uzc
I3cIMkTrpEmKfE=
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-id:content-transfer-encoding
:mime-version; s=default; bh=abA/jrrPw6El9s4MB83Dj36wXcY=; b=bRN
xZn3CBgq9STzQRyM/nTFEHBNAlSvzYqVcloDAOxyAz7Of5C1P3P+3uxjEsuaOMEz
frrxEdAoqYeu0hQo1BDFbhbRONFLEk39T+VhYGyKl4aEl8PYZRvzBcK6HE+b4WIf
SUXVsRmR56IHHmrF+Y9s8ZIkwJmExYAOWNyHGzOM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=H*r:208
X-HELO: NAM02-CY1-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jqLLksp6a7WkUX25PhRSCkQzrAyGZfRCwN3HWIRSezr3xBJx4fz5kMCe6Nvs2hltLBcf8HCtEhAoo2WxsVhu8WWC3ur/m1ismWamgsubnFuLNj7TzL/r1X7XW/2yUcBtS4VZKmKs+0gi+UYC/4jzp8SIIYwIniPPd45gcRr6OJTkbPRwf+J2N4Zui/GvUE0lgA6b/IxUCgoa0nZhDOkLxWsSne66Er/HZhVPNj0CohvQ4So2143Fvwoshz0vJ/2RSK3MHt7PkXkk2ol1JW2cACCzOu0TEcHxiUR3fzoFTUffD++isII+GV0EK0nbJVyZREg8Lj4CsNtJGMGa8lWvjw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x6AnV9F2OUOgPk+A4l0bjwTcbWC+no84WO2Xqi1Dttc=; b=D5o31CEV46c07uAVD//0RiVZbjXwBZDUp1LxAcQqNzT+d8cxLoK7tKmX2ODtuz95tjyjTl5htA0HzqMyUpPu364/hnY/ej51qhl8JMF7VXMKd/gl8NGJJGrhJG0x+Ycpd9p5Lkrd1j+lXL4VGIwxoIbhY1uP7iT8WxMNTCuFzj6RHn6OsfxNw31DHalz0bWxfYar5lc2bG56bpzoZ94ldbPNj9b8tdkOLwOGFmOveh0mYiNpjKbV9OT062IQVhnmviBqk4JM4DId1fju25PMCXZbxGkw/Lnn6LMrqpYbhr513LBm6cPsdt+EQ4/MeRIuTV0AKQuvJRSzctKqvuEJ/A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu; dkim=pass header.d=cornell.edu; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=x6AnV9F2OUOgPk+A4l0bjwTcbWC+no84WO2Xqi1Dttc=; b=B/eg29tuFC6IgGL8+O45wYbJILKoozlBOCFpPF5wVLpsFgfPBYZvn3uOukHCR7xJsGx6dEAEOORkJPYeZNCIMLXyq0acqB0GeH7ZgpJQWs95PsqNwnVOha/w0Hxvw/7j3LcgBSkHc0Gbw4I/pOZXJvqdRRmJly4OyO9f+gOieaQ=
From: Ken Brown <kbrown AT cornell DOT edu>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: MC no longer working with cygwin 3.1.x
Date: Thu, 19 Dec 2019 19:38:51 +0000
Message-ID: <23cd6c84-cfc2-961f-6553-8476f192fecb@cornell.edu>
References: <DB8PR01MB5996973955794728D12078E6BC530 AT DB8PR01MB5996 DOT eurprd01 DOT prod DOT exchangelabs DOT com> <97c8a719-73b9-e0ec-9651-97c2c684a086 AT gmail DOT com> <20191218193205 DOT GP10310 AT calimero DOT vinschen DOT de> <c3809f52-1842-83d6-6692-53f6caec3491 AT cornell DOT edu> <e79cd247-c573-3c27-6636-c6d9a32447a4 AT towo DOT net> <1f5d0151-51c4-bd89-4fa9-137b88a543c8 AT cornell DOT edu> <20191219092409 DOT GS10310 AT calimero DOT vinschen DOT de>
In-Reply-To: <20191219092409.GS10310@calimero.vinschen.de>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu;
x-ms-oob-tlc-oobclassifiers: OLM:10000;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: pnIWpZp1bp2J8s8gRb4arJSqd7agCuOTubVff4SZm+zZK0lgaa6ZFtMYR6jw5+S8SVoqQR8P3RvVHVlkx1s62Q==
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xBJJdRVg013008

On 12/19/2019 4:24 AM, Corinna Vinschen wrote:
> On Dec 18 23:09, Ken Brown wrote:
>> On 12/18/2019 5:55 PM, Thomas Wolff wrote:
>>> Am 18.12.2019 um 22:14 schrieb Ken Brown:
>>>> On 12/18/2019 2:32 PM, Corinna Vinschen wrote:
>>>>> On Dec 18 17:23, Marco Atzeri wrote:
>>>>>> Am 18.12.2019 um 15:42 schrieb Laurent R:
>>>>>>> Dear all,
>>>>>>>
>>>>>>> After the update to cygwin-3.1.1, mc (aka Midnight Commander) no longer
>>>>>>> starts. It goes into an infinite loop, if I go back to cygwin-3.0.7, mc
>>>>>>> works perfectly.
>>>>>>>
>>>>>>> I tested with cygwin-3.1.0, same problem.
>>>>>>>
>>>>>>> The MC version is 4.8.23 and the operating system is Windows 10 Pro x64 1903.
>>>>>> confirmed
>>>>>>
>>>>>> there must be a race somewhere as running /usr/bin/mc.exe from strace
>>>>>> works fine.
>>>>> But that's not the only problem running mc AFAICS.  I'm seeing an
>>>>> error message in the background:
>>>>>
>>>>> Cannot open named pipe /tmp/mc-corinna/mc.pipe.384
>>>>>      
>>>>> /cygdrive/d/cyg_pub/devel/mc/mc-4.8.23-1.x86_64/src/mc-4.8.23/src/subshell/common.c:
>>>>> open: Permission denied
>>>>> [...]
>>>> I've just looked at the mc source code, and it seems that (under tcsh only), mc
>>>> creates a fifo and tries to open it twice as O_RDWR.  This is not supported on
>>>> Cygwin, so the second attempt fails.
>>>>
>>>> Here's the relevant code from src/subshell/common.c:
>>>> [...]
>>>> Under bash, zsh, and some other shells, mc uses ordinary pipes rather than
>>>> FIFOs.  I have no idea why tcsh is treated differently.
>>>>
>>>> Until someone[*] gets around to making it possible to open a FIFO twice for
>>>> reading, I don't think there's anything we can do about it.  I also don't know
>>>> how important this is for mc.  I don't use tcsh or mc, so I can't judge.
> 
> Not using mc either here.  I see the STATUS_ACCESS_DENIED in the strace
> output when calling NtCreateNamedPipeFile, but I wonder why that is.

This happens on the second call to NtCreateNamedPipeFile on the same FIFO, both 
times with FILE_CREATE, as a result of mc trying to open it twice for reading. 
I recall seeing that error before under these circumstances when I was 
developing the new FIFO code.

> Ken, btw., we should add a PIPE_REJECT_REMOTE_CLIENTS flag, just for
> paranoia.

Will do.

Ken

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019