[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cygwin
Subject:    Cygwin fails to create sockets correctly
From:       "Uwe F. Mayer via Cygwin" <cygwin () cygwin ! com>
Date:       2023-11-22 19:20:59
Message-ID: 239550729.5234119.1700680859793 () mail ! yahoo ! com
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic