delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/11/22/16:25:09

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F67E3890419
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1700688294;
bh=5Hy4VumfM83nqCrPSB/aEKOesXKupOhS9y6e3cCGTYQ=;
h=Date:To:Subject:References:List-Id:List-Unsubscribe:List-Archive:
List-Post:List-Help:List-Subscribe:From:Reply-To:From;
b=n/mCzTR6uzcvJ9AbZ8nOyhbIdljxoxFYRLwiA+n9s+CvM25O+h470xHf4udIQeNlh
NEpFRngE498M5khHmkqV3QJO35igOYx/7t9Gc2S5evylqTyKyHrayaEvPN1jJPAj2W
HLHtCi6okMGi1fXH5t0yss/lvC6pNkDMWa+s0dYU=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 08D313858437
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 08D313858437
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700688279; cv=none;
b=M+1GysDxM9kFhh+TDrk6di7eZWX56cyuh+yNwWmWRpA6v3WE4W5u860FWmmfuAD7KsfcPAcFjWk/FZKvtU3CBNPwlr0+vdy7Zq2lHfzgfZBoQse83lqI86Nb/XNh6PhCHmPD2BkZkV5VlnjJE1GUzeIzQlEYKEjvIdEwsk/abus=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1700688279; c=relaxed/simple;
bh=h8RQ4I07q3djfQmiKhM5T0H8ztF/D7smuS6SSDZxj5c=;
h=DKIM-Signature:Date:From:To:Message-ID:Subject:MIME-Version;
b=AayVxs1FZT2KT3CDdS0DhBKVFjrNdWIfboFdnUPjpGpdxF9++yXiBGHwi/jcgXlSHfPn4sd4hn9JNSOhts/nk3KFZQ7JNTknE0RcFMIlaHV1dlEJmaD0MOt+5YhtkKa3SMnV6uGzx1gMY99xgEN+sJvgZrQ8Gso+15m9ucD4Zx0=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
t=1700688268; bh=9jM5CTb79AgmIzEsCFf2qYIh0wbhz5veSbFOPuExPgz=;
h=X-Sonic-MF:Date:From:To:Subject:From:Subject;
b=YBS7Oxp3ej3ZUf8gDKHMvVO1uyxNkK+kzA+AZ3H6ZDmFmM+onACE5On9hrgunB1q3bwRAap9y3jF8vpJI++Mi+KFG9Sjp3mOqnDt86zqKONPNVfwvownYQuRqwVf/7WCW0EPHsaZyf4d4S6IC1k8ZEB/KTFrXTGHT+47vIbf4K6LV5+pRwDFXYfgjSu40eB0sX7agR58TsMgKh8f78cBL1VYawP03DYZhgYClaUwsIZW1W5dS0Zadvm1zmPVz9moLbMtyf+qI6Dfe+6aUDvqi4LYyt7uMbcV89mnBEYagXhbrONkMtgXZM7LeXxUCXcXA4E8m7xmI5OVbQ1MlGvumQ==
X-YMail-OSG: yszRlYIVM1kQSIKjRkKozZI6tW1S44r2YcbNgr_1B0Pm3.MPrp3DTRvOIRRqBVx
F7pMJDCmTJte4ilKRM2qUC9hPE0SNTQf06w3ehemtl38s33PF69DxJ2YBpbOxW4pTkKiDnIICLVE
EWZeoLAk2qsFiSKYFq9ZKBhNKlFoPPznwuVTK5PqwFvRt3vYt8GncSGKN1nXArpJxHzOxShlKNyb
2luI4IP7Ctazu214VyV7eZvdmWgNd54oqPfK5Rn9VwkbgHcaPHihu6c2NuZCrS9LlGV7BYqZHA4y
EmfCh.hnckJXC8iMGg_WADlQuZJ1DxvJ414PjdwsX.oDzQGCxwhi.tyr4zwW1YRnf0UWZawgy.OS
56tk.oQRQ1W_YnMc4pnWDT_OyQP6QrXzQCnrpLP0J9aawmflpIkIPs2gjOJgxapQAud23AtDoWUR
f_4UCGNZb0Ps7Ear0yoIDa4R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papqyHVtVcMPNiTUmYRfV_wmI8WgxJrODJj
ZZSEza2eOo_nUfADjFEC95twcad97yUMTOOeAwb6PIORZlP82701sNv5cAh7tTe08V62ghdiU4jg
cdER81AgNGr_eJViIxu88lkkvOoBmhD7QmzGSzWRvfhajyHkfZmNt2rEiTt08hbP6pqReqfeR5Vp
zEFiGurNn.r6C0I0C35QtW9wWit_2fq851l3mkerle1P2M5D6k5gsWLoeWnG6FJXzgMmJcmMKd1q
8MHom1IoHHnGHAp9SzxOQWjqwOCWlZl5G4jkVVHBKHLDofWQsoMoEokNMh3mXl6wL_BVvdnnMCbc
wrdTFSuOjCgkyKUR.X2GztAihQmevXzDs2RluX6CN4uQr6w6RUXg82ybd2w_QJXo1.LdOxtneTqs
ZotyiNsTCoOB3rzmxiWrYRUyP5LYGaAB_2vjp9VHF5hXp_2Z_7J21Vq7ctweXw8G_mIAIaJt0izk
6WCSapkk8JmXiwioDSpJGfh7FWsHBs4cYGIwwisRn4b45gANQ4ZBHMiziLf87cuKzgsinqqVU2p5
kNogktRCQ0dz2BRwQGnr6ClhXSa5nWcwNjPZkdUvICoujFCLlAi_CBz.UiqqMNrPtHhjkY10HUkO
_kKmwNS54A72p_Mtc2mK.mnzrfiiPkGIcWTXkIQhMK4ecVYP5XMYjOA--
X-Sonic-MF: <uwe_f_mayer AT yahoo DOT com>
X-Sonic-ID: 3b883015-dae5-490f-943a-52a5c102ebcd
Date: Wed, 22 Nov 2023 19:20:59 +0000 (UTC)
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <239550729.5234119.1700680859793@mail.yahoo.com>
Subject: Cygwin fails to create sockets correctly
MIME-Version: 1.0
References: <239550729 DOT 5234119 DOT 1700680859793 DOT ref AT mail DOT yahoo DOT com>
X-Mailer: WebService/1.1.21896 YMailNorrin
X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: "Uwe F. Mayer via Cygwin" <cygwin AT cygwin DOT com>
Reply-To: "Uwe F. Mayer" <uwe_f_mayer AT yahoo DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3AMLP9vW010803

Cygwin fails to create sockets correctly on some computers. Specifically, this fails on my machines with Windows 10 Enterprise, but works fine on a system with Windows 10 Pro. This was first observed on or about Nov 19, 2023. On one of the Windows 10 Enterprise machines X has been running for several days and has a functioning socket created on Nov 15, but new sockets cannot be successfully created.
Steps to reproduce:1) Run any program that will produce a named socket.2) Do an ls -l on the socket, it will come up as an ordinary file with permissions -rw-rw-rw- instead of srw-rw-rw- (note the missing "s").
All my Windows 10 Enterprise machines are centrally managed by my employer.
The following Microsoft packages seem to have been installed / updated recently:
Microsoft Edge                           Microsoft.Edge                           119.0.2151.72Microsoft Edge Update                    Microsoft Edge Update                    1.3.181.5Microsoft Edge WebView2 Runtime          Microsoft.EdgeWebView2Runtime            119.0.2151.72App Installer                            Microsoft.DesktopAppInstaller_8wekyb3d8??? 1.21.3133.0Microsoft Edge                           Microsoft.MicrosoftEdge.Stable_8wekyb3d??? 119.0.2151.72Feedback Hub                             Microsoft.WindowsFeedbackHub_8wekyb3d8b??? 1.2309.12711.0Phone Link                               Microsoft.YourPhone_8wekyb3d8bbwe        1.23092.158.0Microsoft 365 Apps for enterprise - en-??? Microsoft.Office                         16.0.16924.20150Mail and Calendar                        microsoft.windowscommunicationsapps_8we??? 16005.14326.2174???Microsoft Update Health Tools            {1FC1A6C2-576E-489A-9B4A-92D21F542136}   3.74.0.0
I specifically noticed the socket issue for ssh-add and for X11. The issue can also be shown with nc. Below are logs.
Affected system:----------------Edition         Windows 10 EnterpriseVersion         22H2Installed on    5/12/2022OS build        19045.3693Experience      Windows Feature Experience Pack 1000.19053.1000.0
LAPTOP:~$ uname -aCYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin
LAPTOP:~$ nc -lkU aSocket.sock &[1] 1451LAPTOP:~$ ls -l aSocket.sock-rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:37 aSocket.sock

LAPTOP:~$ eval `ssh-agent -s`; ssh-add ~/.ssh/id_rsaAgent pid 1365Error connecting to agent: Bad file descriptorLAPTOP:~$ ls -l /tmp/ssh-FRwzveik5MWt/total 1-rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:09 agent.1364
LAPTOP:~$ xinit
Welcome to the XWin X ServerVendor: The Cygwin/X ProjectRelease: 1.21.1.8OS: CYGWIN_NT-10.0-19045 LAPTOP 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64OS: Windows 10  [Windows NT 10.0 build 19045] x64Package: version 21.1.8-1 built 2023-06-19
XWin was started with the following command line:
X :0
(II) xorg.conf is not supported(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more informationwinUpdateDpi - primary monitor native DPI x 96 y 96LoadPreferences: /home/uwe/.XWinrc not foundLoadPreferences: Loading /etc/X11/system.XWinrcLoadPreferences: Done parsing the configuration file...winDetectSupportedEngines - RemoteSession: nowinDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNLwinDetectSupportedEngines - Returning, supported engines 00000005winSetEngine - Using Shadow DirectDraw NonLockingwinScreenInit - Using Windows display depth of 32 bits per pixelwinWindowProc - WM_SIZE - new client area w: 1904 h: 1011winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ffMIT-SHM extension disabled due to lack of kernel supportXFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel(EE) AIGLX: No native OpenGL in modes with a root window(II) IGLX: Loaded and initialized swrast(II) GLX: Initialized DRISWRAST GL provider for screen 0winPointerWarpCursor - Discarding first warp: 952 505(--) 16 mouse buttons found(--) Setting autorepeat to delay=500, rate=31(--) Windows keyboard layout: "00000409" (00000409) "US", type 4(--) Found matching XKB configuration "English (USA)"(--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
waiting for X server to begin accepting connections ...[etc]..
[closing down X externally]
winDeinitMultiWindowWM - Noting shutdown in progress(II) Server terminated successfully (0). Closing log file.xinit: giving upxinit: unable to connect to X server: Connection refusedxinit: server error
# in a separate terminal while X was runningLAPTOP:~$ v /tmp/.X11-unix/total 1-rw-rw-rw-+ 1 uwe Users 54 Nov 22 10:12 X0

Unaffected system-----------------Edition         Windows 10 ProVersion         22H2Installed on    11/2/2020OS build        19045.3693Experience      Windows Feature Experience Pack 1000.19053.1000.0
BLACK:~$ uname -aCYGWIN_NT-10.0-19045 BLACK 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64 Cygwin
BLACK:~$ nc -lkU aSocket.sock &[1] 1374BLACK:~$ ls -l aSocket.socksrw-rw-rw-+ 1 uwe None 0 Nov 22 10:39 aSocket.sock

BLACK:~$ eval `ssh-agent -s`; ssh-add ~/.ssh/id_rsaAgent pid 1298Enter passphrase for /home/uwe/.ssh/id_rsa:Identity added: /home/uwe/.ssh/id_rsa (/home/uwe/.ssh/id_rsa)BLACK:~$ ls -l /tmp/ssh-RgXsP4KvO7yd/total 1srw-rw-rw-+ 1 uwe None 0 Nov 22 10:08 agent.1297
Black:~$ xinit
Welcome to the XWin X ServerVendor: The Cygwin/X ProjectRelease: 1.21.1.8OS: CYGWIN_NT-10.0-19045 BLACK 3.4.9-1.x86_64 2023-09-06 11:19 UTC x86_64OS: Windows 10  [Windows NT 10.0 build 19045] x64Package: version 21.1.8-1 built 2023-06-19
XWin was started with the following command line:
X :0
(II) xorg.conf is not supported(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more informationwinUpdateDpi - primary monitor native DPI x 96 y 96LoadPreferences: /home/uwe/.XWinrc not foundLoadPreferences: Loading /etc/X11/system.XWinrcLoadPreferences: Done parsing the configuration file...winDetectSupportedEngines - RemoteSession: nowinDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNLwinDetectSupportedEngines - Returning, supported engines 00000005winSetEngine - Using Shadow DirectDraw NonLockingwinScreenInit - Using Windows display depth of 32 bits per pixelwinWindowProc - WM_SIZE - new client area w: 1664 h: 981winFinishScreenInitFB - Masks: 00ff0000 0000ff00 000000ffMIT-SHM extension disabled due to lack of kernel supportXFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel(EE) AIGLX: No native OpenGL in modes with a root window(II) IGLX: Loaded and initialized swrast(II) GLX: Initialized DRISWRAST GL provider for screen 0winPointerWarpCursor - Discarding first warp: 832 490(--) 16 mouse buttons found(--) Setting autorepeat to delay=500, rate=31(--) Windows keyboard layout: "00000409" (00000409) "US", type 4(--) Found matching XKB configuration "English (USA)"(--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"winProcEstablishConnection - winInitClipboard returned.winClipboardThreadProc - DISPLAY=:0.0winClipboardProc - xcb_connect () returned and successfully opened the display.
[closing down X externally]
exiting main loop.xterm: fatal IO error 11 (Resource temporarily unavailable) or KillClient on X server ":0"xinit: connection to X server lost
waiting for X server to shut down winDeinitMultiWindowWM - Noting shutdown in progress(II) Server terminated successfully (0). Closing log file.
# in a separate terminal while X was runningBLACK:~$ ls -l /tmp/.X11-unix/total 1srw-rw-rw-+ 1 uwe None 0 Nov 22 10:10 X0


-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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