On Thu Nov 27 16:27:37 2025 +0000, Ralf Habacker wrote:
https://gitlab.winehq.org/wine/wine/-/merge_requests/7650#note_120480 which looks as if `bind()` does not create a socket file. However, if you run the test case with mingw gdb and pause after calling `bind()`, the socket file is present. Combining synchronized strace and wine trace messages with
#!/bin/bash -x
p=$PWD
cd ~/src/wine-build
WINEDEBUG=+file,+winsock \
WINEDLLOVERRIDES=';ws2_32.dll=b' \
WINETEST_PLATFORM=wine \
stdbuf -o0 -eL strace -tt -f -o strace.log \
./wine dlls/ws2_32/tests/i386-windows/ws2_32_test.exe sock 2>&1 | ts 'WINE %H:%M:%.S' > wine.log
cat wine.log strace.log | grep -v 'write(\|read(\|rt_sigprocmask' | sort -k 2 > $p/trace.log
returns ``` WINE 08:26:07.797561 0024:trace:winsock:bind successfully bound to address { family AF_UNIX, path test_afunix.sock } WINE 08:26:07.797576 0024:trace:file:GetFileAttributesW L"test_afunix.sock" WINE 08:26:07.797591 0024:trace:file:RtlDosPathNameToNtPathName_U_WithStatus (L"test_afunix.sock",0073FB88,00000000,00000000) WINE 08:26:07.797606 0024:trace:file:RtlGetFullPathName_U (L"test_afunix.sock" 520 0073F940 00000000) WINE 08:26:07.797629 0024:trace:file:RtlGetFullPathName_UEx (L"test_afunix.sock" 520 0073F940 00000000 00000000) 28089 08:26:07.797638 statx(AT_FDCWD, "/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", AT_STATX_SYNC_AS_STAT|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFSOCK|0755, stx_size=0, ...}) = 0 WINE 08:26:07.797667 0024:trace:file:get_nt_and_unix_names L"\\??\\Z:\\home\\user\\src\\wine-build\\test_afunix.sock" -> ret 0 nt L"\\??\\Z:\\home\\user\\src\\wine-build\\test_afunix.sock" unix "/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock" 28089 08:26:07.797673 statx(AT_FDCWD, "/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFSOCK|0755, stx_size=0, ...}) = 0 28089 08:26:07.797690 getxattr("/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", "user.WINEREPARSE", 0x21b9e0, 16384) = -1 ENODATA (Keine Daten verfügbar) 28089 08:26:07.797712 getxattr("/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", "user.DOSATTRIB", 0x21b873, 64) = -1 ENODATA (Keine Daten verfügbar) WINE 08:26:07.815242 current directory: 'Z:\home\user\src\wine-build' WINE 08:26:07.815249 sock.c:14624: Test failed: test_afunix.sock: wrong attr ffffffff ``` This line indicates that the socket file is present ``` 28089 08:26:07.797673 statx(AT_FDCWD, "/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW|AT_NO_AUTOMOUNT, STATX_BASIC_STATS, {stx_mask=STATX_BASIC_STATS|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFSOCK|0755, stx_size=0, ...}) = 0 ``` This line may indicate a problem: ``` 28089 08:26:07.797690 getxattr("/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", "user.WINEREPARSE", 0x21b9e0, 16384) = -1 ENODATA (Keine Daten verfügbar) ``` and this too : ``` 28089 08:26:07.797712 getxattr("/home/user/.wine/dosdevices/z:/home/user/src/wine-build/test_afunix.sock", "user.DOSATTRIB", 0x21b873, 64) = -1 ENODATA (Keine Daten verfügbar) ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7650#note_124009