https://bugs.winehq.org/show_bug.cgi?id=54251
--- Comment #1 from Michael J Evans mjevans1983@gmail.com --- While running:
# Console 0 mknod "${XDG_RUNTIME_DIR}/winedbg" p cat "${XDG_RUNTIME_DIR}/winedbg" >/dev/null & printf "%s\n" "${!}" > "${XDG_RUNTIME_DIR}/winedbg_pid.cat"
# Console 1 WINEDEBUG=trace+relay,trace+seh wine cmd 2> "${XDG_RUNTIME_DIR}/winedbg"
# Console 0 when ready to open a file kill -9 $(<"${XDG_RUNTIME_DIR}/winedbg_pid.cat") ; cat "${XDG_RUNTIME_DIR}/winedbg" | tee "${XDG_RUNTIME_DIR}/winedbg_log"
Then beginning stderr output collection just prior to invoking:
ipconfig /all
The log file is _massive_, quickly growing to over 1GB in size.
The most interesting call just before that fitful loop appears to be...
0114:Ret KERNEL32.GetComputerNameExA() retval=00000001 ret=646c6c8e
$ grep -n GetComputerNameExA .../winedbg_log
416198:0114:Call KERNEL32.GetComputerNameExA(00000001,00749968,0061f9c8) ret=646c6c67 416237:0114:Ret KERNEL32.GetComputerNameExA() retval=00000001 ret=646c6c67 416238:0114:Call KERNEL32.GetComputerNameExA(00000002,007499ec,0061f9c8) ret=646c6c8e 416277:0114:Ret KERNEL32.GetComputerNameExA() retval=00000001 ret=646c6c8e
$ wc .../winedbg_log 18522370 64877723 1316392777 .../winedbg_log
ipconfig /all ; does this fail because there is not a 'computer name' associated with enp8s0 nor enp9s0 ?
https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi...
Given the context GetComputerNameExA's being provided: a static string?, dynamic return buffer, and a 'DNS domain name of the cluster' sring.
String 2 is likely to be either ComputerNameDnsFullyQualified ComputerNameDnsHostname.
$ hostname -d (none) $ hostname -f AHOSTNAME $ hostname -s AHOSTNAME
I'll double-check if my 'FQDN' hostname is setup correctly; though ipconfig /all should still not _hang_ but rather behave in a more sensible way.
I've added an IPv4, IPv6 (fd00::/8) and IPv6 (2000::/4) static entries with local lan info to my /etc/hosts file.
$ hostname -d lan $ hostname -f AHOSTNAME.lan $ hostname -s AHOSTNAME
Sadly, updating /etc/hosts / hostname results doesn't seem to help wine.
0114:Ret KERNEL32.GetComputerNameExA() retval=00000001 ret=646c6c67 0114:Call KERNEL32.GetComputerNameExA(00000002,007499ec,0061f9c8) ret=646c6c8e 0114:Call ntdll.RtlInitUnicodeString(0061f630,7b092ebc L"System\CurrentControlSet\Services\Tcpip\Parameters") ret=7b05e5a2 0114:Ret ntdll.RtlInitUnicodeString() retval=00000066 ret=7b05e5a2 0114:Call ntdll.NtOpenKeyEx(0061f6bc,00020019,0061f638,00000000) ret=7b05e5d5 0114:Ret ntdll.NtOpenKeyEx() retval=00000000 ret=7b05e5d5 0114:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b05e5ec 0114:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b05e5ec 0114:Call ntdll.RtlInitUnicodeString(0061f548,7b092f22 L"Domain") ret=7b064942 0114:Ret ntdll.RtlInitUnicodeString() retval=0000000e ret=7b064942 0114:Call ntdll.NtQueryValueKey(00000060,0061f548,00000002,0061f550,0000000c,0061f544) ret=7b064c07 0114:Ret ntdll.NtQueryValueKey() retval=80000005 ret=7b064c07 0114:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b0649c1 0114:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b0649c1 0114:Call ntdll.NtClose(00000060) ret=7b0638b7 0114:Ret ntdll.NtClose() retval=00000000 ret=7b0638b7 0114:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b0638c3 0114:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b0638c3 0114:Call ntdll.RtlAllocateHeap(00720000,00000000,00000002) ret=7b067510 0114:Ret ntdll.RtlAllocateHeap() retval=00749520 ret=7b067510 0114:Call ntdll.RtlInitUnicodeString(0061f630,7b092ebc L"System\CurrentControlSet\Services\Tcpip\Parameters") ret=7b05e5a2 0114:Ret ntdll.RtlInitUnicodeString() retval=00000066 ret=7b05e5a2 0114:Call ntdll.NtOpenKeyEx(0061f6bc,00020019,0061f638,00000000) ret=7b05e5d5 0114:Ret ntdll.NtOpenKeyEx() retval=00000000 ret=7b05e5d5 0114:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b05e5ec 0114:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b05e5ec 0114:Call ntdll.RtlInitUnicodeString(0061f548,7b092f22 L"Domain") ret=7b064942 0114:Ret ntdll.RtlInitUnicodeString() retval=0000000e ret=7b064942 0114:Call ntdll.NtQueryValueKey(00000060,0061f548,00000002,0061f550,0000000e,0061f544) ret=7b0649aa 0114:Ret ntdll.NtQueryValueKey() retval=00000000 ret=7b0649aa 0114:Call ntdll.memcpy(00749520,0061f55c,00000002) ret=7b064ca2 0114:Ret ntdll.memcpy() retval=00749520 ret=7b064ca2 0114:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b0649c1 0114:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b0649c1 0114:Call ntdll.NtClose(00000060) ret=7b0638b7 0114:Ret ntdll.NtClose() retval=00000000 ret=7b0638b7 0114:Call ntdll.RtlNtStatusToDosError(00000000) ret=7b0638c3 0114:Ret ntdll.RtlNtStatusToDosError() retval=00000000 ret=7b0638c3 0114:Call ntdll.RtlFreeHeap(00720000,00000000,00749520) ret=7b06755b 0114:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7b06755b 0114:Ret KERNEL32.GetComputerNameExA() retval=00000001 ret=646c6c8e 0114:Call dnsapi.DnsQueryConfig(00000006,00000000,00000000,00000000,0061f960,0061f95c) ret=646c51e6 0114:Ret dnsapi.DnsQueryConfig() retval=0000267c ret=646c51e6 0114:Call ntdll.RtlAllocateHeap(00720000,00000000,00000010) ret=646c51aa 0114:Ret ntdll.RtlAllocateHeap() retval=00749520 ret=646c51aa 0114:Call dnsapi.DnsQueryConfig(00000006,00000000,00000000,00000000,00749520,0061f95c) ret=646c51e6 0114:Ret dnsapi.DnsQueryConfig() retval=0000267c ret=646c51e6 0114:Call KERNEL32.HeapFree(00720000,00000000,00749520) ret=646c5183 ... Around a gigabyte of looped: ... 0114:Call dnsapi.DnsQueryConfig(00000006,00000000,00000000,00000000,00749520,0061f95c) ret=646c51e6 0114:Ret dnsapi.DnsQueryConfig() retval=0000267c ret=646c51e6 0114:Call KERNEL32.HeapFree(00720000,00000000,00749520) ret=646c5183 0114:Ret KERNEL32.HeapFree() retval=00000001 ret=646c5183 0114:Call ntdll.RtlAllocateHeap(00720000,00000000,00000010) ret=646c51aa 0114:Ret ntdll.RtlAllocateHeap() retval=00749520 ret=646c51aa 0114:Call dnsapi.DnsQueryConfig(00000006,00000000,00000000,00000000,00749520,0061f95c) ret=646c51e6 0114:Ret dnsapi.DnsQueryConfig() retval=0000267c ret=646c51e6 0114:Call KERNEL32.HeapFree(00720000,00000000,00749520) ret=646c5183 0114:Ret KERNEL32.HeapFree() retval=00000001 ret=646c5183 0114:Call ntdll.RtlAllocateHeap(00720000,00000000,00000010) ret=646c51aa 0114:Ret ntdll.RtlAllocateHeap() retval=00749520 ret=646c51aa 0114:Call dnsapi.DnsQueryConfig(00000006,00000000,00000000,00000000,00749520,0061f95c) ret=646c51e6 0114:Ret dnsapi.DnsQueryConfig() retval=0000267c ret=646c51e6 0114:Call KERNEL32.HeapFree(00720000,00000000,00749520) ret=646c5183 0114:Ret KERNEL32.HeapFree() retval=00000001 ret=646c5183 0114:Call ntdll.RtlAllocateHeap(00720000,00000000,00000010) ret=646c51aa 0114:Ret ntdll.RtlAllocateHeap() retval=00749520 ret=646c51aa