This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Regression (last snapshot)
- From: Ken Brown <kbrown at cornell dot edu>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Fri, 26 Jul 2019 22:12:43 +0000
- Subject: Re: Regression (last snapshot)
- 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
- 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=GV/m18OkJqvq3GAbl6gmBwK6lctNsdI+O3RvN0J1dhk=; b=POAqsQP5Q2ozqGb3xH/wGZ4Qenu8te0Q9PHkWFV9CdDpYVwsJmn20F6JZ2sEoQZw9D0g6p0iWgaciDCZouU8CYkTz4oQUkFmBpyCRiJa8dhyIOCbr73T7Z3jMkM9Vm3vnquKaawiyVRnKcd0JrIep5rCsQn5MIlX0Cv+vY0zuWuo2bKFjEChm9a23A7YuJ1WvMs7WRpQBfnHuT8Y3n0M46LHnL+l8GxjzooUo0C/9CUNz7gpOuKKLMk77iU44+U6rtAYpe5Xgy+YYlZuzX6MBph2WiCTSL12hL+W30Cl9GWaaf3pOrLMlQoQHtQk0hnR3bTz2O2IY0aTbBwPPYDKqw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kOEvSk8xDmWM3gLnGUxlJqDacopxdEq/ylaO/gTdKQV97vceXE7CSkqXUCklnTCIy3oM+HNJcl10EhXujpFFOWRRhbjVfGR/ogZW+hvn4v4hwJeNVWlNU49xEgI51QHnwvTk8eEcO8tqVx1tsOOfd2JsAVDXa3SOmh5LtX8PtC4uRh0rm1atL5HV/vnQeVl2jiMyCJGcNt9t6gyanJDafQqpg3apec8z6imURdposO5K0TOH8eVXy/mPsMYiVRIoDX9kWjadCZjShedip4sH7UHNs1TAPBs2wD0pIn1i7UxgT/RLC9Q3OAFBiQmh4v/6hHDgIql/RZPZ9xtJ6zdFSA==
- References: <8f6a87faa9c8130241c026889a01d763@xs4all.nl> <5414d0e1-79d9-cab7-b1bd-4761265bf8bd@cornell.edu> <265a2749-95b6-38aa-a191-7913bfcc98b6@cornell.edu> <20190722152016.GE21169@calimero.vinschen.de> <20190722155340.GF21169@calimero.vinschen.de> <20190722164509.GG21169@calimero.vinschen.de> <eb8007691b20df0eb8032ca3d2fa445f@smtp-cloud8.xs4all.net>
On 7/22/2019 2:47 PM, Houder wrote:
> The specific regression as reported, has gone.
>
> 64-@@ uname -a
> CYGWIN_NT-6.1 Seven 3.1.0s(0.339/5/3) 2019-07-22 16:43 x86_64 Cygwin
> 64-@@ ls -lL <(grep bash .bashrc)
> pr-------- 1 Henri None 0 Jul 22 20:36 /dev/fd/63
It turns out that this isn't completely fixed, but I only see the problem when
working under X11, and the error message is different. Here are the complete
reproduction steps:
1. Start the X server by using the XWin Server shortcut.
2. Use the X Applications Menu -> System Tools to start an xterm window.
3. In that window, execute the above 'ls' command.:
$ ls -lL <(grep bash .bashrc)
pr-------- 1 kbrown None 0 2019-07-26 17:24 /dev/fd/63
grep: write error: Broken pipe
This is with the 2019-07-22 snapshot. With the 2019-07-25 snapshot, it's better
but still broken: I have to run the ls command twice to get the error:
$ ls -lL <(grep bash .bashrc)
pr-------- 1 kbrown None 0 2019-07-26 17:39 /dev/fd/63
$ ls -lL <(grep bash .bashrc)
pr-------- 1 kbrown None 0 2019-07-26 17:39 /dev/fd/63
grep: write error: Broken pipe
Here's one more fact, which may or not provide further clues: When I exited the
X server while testing the 2019-07-22 snapshot, there was a /bin/sh process
still running that I couldn't kill with 'kill -9'. I had to kill it with the
Task Manager.
Finally, here's an excerpt from the strace output for the failing ls command:
24 23441 [main] ls 1033 fhandler_proc::get_proc_fhandler:
get_proc_fhandler(/proc/1033/fd/63)
25 23466 [main] ls 1033 mount_info::conv_to_win32_path: src_path
/proc/1033/fd/63, dst /proc/1033/fd/63, flags 0x0, rc 0
28 23494 [main] ls 1033 build_fh_pc: fh 0x180340098, dev 000000FB
24 23518 [main] ls 1033 fhandler_process::exists: exists (/proc/1033/fd/63)
28 23546 [main] ls 1033 __set_errno: cygheap_fdget::cygheap_fdget(int,
bool, bool):679 setting errno 9
24 23570 [main] ls 1033 __set_errno: off_t format_process_fd(void*,
char*&):394 setting errno 2
I'm in the process of building an unoptimized cygwin1.dll to see if I can get
further information.
Ken