From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by sourceware.org (Postfix) with ESMTPS id 6D1AE3858284 for ; Thu, 22 Dec 2022 12:15:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6D1AE3858284 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=nifty.ne.jp Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp Received: from HP-Z230 (aj135041.dynamic.ppp.asahi-net.or.jp [220.150.135.41]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2BMCF437016487 for ; Thu, 22 Dec 2022 21:15:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2BMCF437016487 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1671711305; bh=kXTjw/WxREDiFBtyAyyd6kVa5kmUU6FyBVNhjhxBSyE=; h=Date:From:To:Subject:In-Reply-To:References:From; b=SAU7A4dcMI17+sLziwXq6RXwUNCTQZ1tPZ5lTpUPLIsxkzcV1nvhEg0V5D1v3z4G1 HyGq1djHz79D9xeMon9pptnSMhUOGJ9O439g0kozfZBHYeXqyDze9BeidbCysTvKot XW5oEdKU9dI7lOV7/+GgLHUmLFIAFK9kllTM+Ruv6fHXvWoYlmYqpD4N/uaXd6Jg8z kCWPZ3wNYGQ7MotcTsZ1l7IJ01/Vxna4DFuQq4Z5XmUd4MzNNSyqaSPI6chYS+XbFg UQZA+Uy3TqKAWnHSbJHoKmay65owxMYRbRKQrzCGOFCOEivQ6Nuh7Ah6DdkDjWuz7R Fo2m/WfjbITSQ== X-Nifty-SrcIP: [220.150.135.41] Date: Thu, 22 Dec 2022 21:15:04 +0900 From: Takashi Yano To: cygwin-patches@cygwin.com Subject: Re: [PATCH] Cygwin: console: Make the console accessible from other terminals. Message-Id: <20221222211504.2153a5d688181d1d21b8a882@nifty.ne.jp> In-Reply-To: <20221222180603.9a8dedadfee6c59cdf073e36@nifty.ne.jp> References: <20221220124521.499-1-takashi.yano@nifty.ne.jp> <20221221192343.32699d22e6d113ce9195de8f@nifty.ne.jp> <20221222180603.9a8dedadfee6c59cdf073e36@nifty.ne.jp> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Thu, 22 Dec 2022 18:06:03 +0900 Takashi Yano wrote: > On Wed, 21 Dec 2022 13:56:25 +0100 > Corinna Vinschen wrote: > > However, there's something broken with these patches in terms of > > debugging: > > > > With current origin/master: > > > > $ ls -l /dev/cons0 > > crw-rw-rw- 4 corinna vinschen 3, 0 Dec 21 13:46 /dev/cons0 > > $ strace -o xxx /bin/ls /dev/cons0 > > /dev/cons0 > > > > After applying "pinfo: Align CTTY behavior to the statement of POSIX." > > > > $ ls -l /dev/cons0 > > crw-rw-rw- 4 corinna vinschen 3, 0 Dec 21 13:51 /dev/cons0 > > $ strace -o xxx /bin/ls /dev/cons0 > > /usr/bin/ls: cannot access '/dev/cons0': No such device or address > > > > "devices: Make generic console devices invisible from pty." doesn't > > change this, but after applying "console: Make the console accessible > > from other terminals.": > > > > $ ls -l /dev/cons0 > > crw------- 4 corinna vinschen 3, 0 Dec 21 13:55 /dev/cons0 > > $ strace -o xxx /bin/ls /dev/cons0 > > 670400 [main] ls 1630 C:\cygwin64\bin\ls.exe: *** fatal error - MapViewOfFileEx '(null)'(0x54), Win32 error 487. Terminating. > > 674526 [main] ls 1630 cygwin_exception::open_stackdumpfile: Dumping stack trace to ls.exe.stackdump > > > > FWIW: > > > > $ strace -o xxx /bin/ls > > 673796 [main] ls 1633 C:\cygwin64\bin\ls.exe: *** fatal error - MapViewOfFileEx '(null)'(0x54), Win32 error 487. Terminating. > > 676814 [main] ls 1633 cygwin_exception::open_stackdumpfile: Dumping stack trace to ls.exe.stackdump > > Thank you for finding this. I think this can be easily fixed. > Please see v3 patch. > > [PATCH v3] Cygwin: pinfo: Align CTTY behavior to the statement of POSIX. After the commit f6e4e98d3071, the patch [PATCH v2] Cygwin: console: Make the console accessible from other terminals. cannot be applied cleanly. Please review v3 patch. -- Takashi Yano