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=fqBEEecB83GoiyNuUfNcm2p+WVU+f 80o8Etp4DoEaGFnTZpqf9Pmt0qylDLgSlctJ003rWc5XxnHqQfGdHQUjsvWUJG+C AsLAbIqILUQRsn0S8e5Mw2TJlVlPeoMhzGgBo9IYsiTmBFtPVOK6O6UkB/iLQtO2 rp9mjHWB80IvTE= 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=2I08kd5zo56f+jwx6pKgcdLT6u8=; b=gWf dr5yqubyQ2XvL1LA1/RcJcY16aZrsuJMQHnwqL4X9XsqSSUny63dSjHfTragSfxi 6DXH8BlwqJoCeWy845JecejoIhxgbbjHD9ooHJizey2dDYlKKHnzhzxBd7yC3TMB ctmEKi3F4Rq/90candwcxNvwTF8I/p9sGRmqp6Go= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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= X-HELO: NAM12-MW2-obe.outbound.protection.outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=chRvdSBymWNXoLqBUsZ/iXDx+8s4Rv2kH23c608AmoAWpO7MOO5rLJe3Il3JAHP0JbKR/2tqsM0gW72gLjW4f1A/aQ9Gp6KqgpebLnmWh40nFq4xg4xq2IQ/xt9DsMUTl616jHSWPJqcaxE1EHrOwMJAIKqXjjyhp5klkpf94iQfOY2lsXdTCsTU7uSvfZf1+TSHxb4MVgDU4fEmCzD1HHjjheoJWy7kjudQ1xldevkQDlulko8D5167XdVFc8lKQJUs6e4hYvH5uWzYVxl3KflowiTZPInqZSfjK5OTdlV003CwGD9nofVL8Rtk+yLox3KQuvTwmQ67Eok8K1TSMA== 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=Ieh88CPr/vkxdMRWtXbP/dn7A6Xs3OXPGUlyaUx9f4c=; b=KLjOXE7UmqKsWlJJTA4vZQyeTig3gNxlysHPD80p4RMW2I08Pjzm26SGBhcrzEFT22tl0u6AdrjB8I2OC0CaNRi0pZe390utRmJyM6f+bPPfb/1K2RhpVy0kgFiqtCOkxdMChOm5uU+Ef9bfsOhQaLFY08ns9fsBMulrZVcrLtdQcdLr8JtJdDeHaC/D60NwVyapURRF3XofokNj+y5ZLWibv+J5q8fj7MCv5cor4P0JU3UV+elwhaUQTnSH+VsEg/LmuEd1hnzBOQVWyNFVzki9gxvVfGHDELVzg+da+9lX4Ipo1cebMYVxQpfudIYL8IWKPjq3a1l3uq2th4gvSA== 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=Ieh88CPr/vkxdMRWtXbP/dn7A6Xs3OXPGUlyaUx9f4c=; b=SiBwt5393ufLUfrd7CKMgGpPnAFmuHtNzX38Fq2152PIgFajdCrdfZZO7or8+siwihs33Rr2Ry4QdO8zhOEDFlbAdhfKS+Ycd0eFgYHHzjaNBANwBXw2eriQo4zASFAQJIeGaca3jWrGfNOIzbzJR/rrsYfuyH7Q37tc+n5zJjI= From: Ken Brown To: "cygwin AT cygwin DOT com" Subject: Re: MC no longer working with cygwin 3.1.x Date: Wed, 18 Dec 2019 23:09:03 +0000 Message-ID: <1f5d0151-51c4-bd89-4fa9-137b88a543c8@cornell.edu> References: <97c8a719-73b9-e0ec-9651-97c2c684a086 AT gmail DOT com> <20191218193205 DOT GP10310 AT calimero DOT vinschen DOT de> In-Reply-To: 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:4303; 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 Content-Type: text/plain; charset="Windows-1252" Content-ID: <70C3314D720D2F42AA880F35C48E5090 AT namprd04 DOT prod DOT outlook DOT com> MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: HvDq46q9DQoIGpJSpUh40MgRqqghxAlFV5ElHI5hMGymh5xtzn+uDItLUenU+g0UavVrrVI04OTKGD5uxztumA== X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id xBIN9eHN019804 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. >>>>> >>>>> Regards. >>>>> >>>> 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 >>> >>> It looks like there's another problem, this time with the new FIFO >>> code. >>> >>> Ken, care to take a look? >> 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: >> >>           if (mc_global.shell->type == SHELL_TCSH) >>           { >>               g_snprintf (tcsh_fifo, sizeof (tcsh_fifo), "%s/mc.pipe.%d", >>                           mc_tmpdir (), (int) getpid ()); >>               if (mkfifo (tcsh_fifo, 0600) == -1) >>               [...] >>               /* Opening the FIFO as O_RDONLY or O_WRONLY causes deadlock */ >> >>               if ((subshell_pipe[READ] = open (tcsh_fifo, O_RDWR)) == -1 >>                   || (subshell_pipe[WRITE] = open (tcsh_fifo, O_RDWR)) == -1) >>               { >>                   fprintf (stderr, _("Cannot open named pipe %s\n"), tcsh_fifo); >>                   perror (__FILE__ ": open"); >>                   mc_global.tty.use_subshell = FALSE; >>                   [...] >> >> 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. > I've reproduced mc to fail, from bash, in cygwin 3.1.0 and 3.1.1, Windows 1809 > and 1903. That's not related to what I've been talking about, which is the error message "Cannot open named pipe /tmp/mc-corinna/mc.pipe.384" that Corinna reported. The failure you're talking about occurs in all shells and has already been fixed by Takashi. I imagine Corinna will release 3.1.2 with the fix very soon. 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