https://bugs.winehq.org/show_bug.cgi?id=47083
Bug ID: 47083 Summary: MySQL 8.0.x community installer (.NET 4.5.x app) fails to configure mysql, needs support for WS_AF_INET6 in 'iphlpapi.GetExtendedTcpTable' Product: Wine Version: 4.7 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: iphlpapi Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says. Happens during installation/configuration of mysql server but doesn't seem to be fatal.
Prerequisite: 'winetricks -q dotnet452' (or Wine-Mono).
Download: https://dev.mysql.com/get/Downloads/MySQLInstaller/mysql-installer-community...
Internet Archive snapshot: https://web.archive.org/web/20190427100352/https://cdn.mysql.com//Downloads/...
Managed backtrace (copied from error dialog):
--- snip --- System.Net.NetworkInformation.NetworkInformationException (0x80004005): Request not supported at System.Net.NetworkInformation.SystemIPGlobalProperties.GetAllTcpConnections() at System.Net.NetworkInformation.SystemIPGlobalProperties.GetActiveTcpListeners() at MySql.Installer.Plugins.Server.ServerConfigLocalMachinePage.ValidatePortInUse(UInt32 port, UInt32 oldPort) at MySql.Installer.Plugins.Server.ServerConfigLocalMachinePage.portNumberEdit_TextChanged(Object sender, EventArgs e) at MySql.Installer.Plugins.Server.ServerConfigLocalMachinePage.Activate() at MySql.Installer.Wizards.Wizard.ActivatePage() at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR CodeBase: file:///C:/windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- MySQLInstaller Assembly Version: 1.4.29.0 Win32 Version: 1.4.29.0 CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer%20for%20Windows/MySQLInstaller.exe ---------------------------------------- ... MySQLInstaller.Core Assembly Version: 1.4.29.0 Win32 Version: 1.4.29.0 CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer%20for%20Windows/MySQLInstaller.Core.DLL ---------------------------------------- ... MySQL.Utility Assembly Version: 8.2.3.0 Win32 Version: 8.2.3 CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer%20for%20Windows/MySQL.Utility.DLL ... ---------------------------------------- StandardPlugins Assembly Version: 1.4.29.0 Win32 Version: 1.4.29.0 CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer%20for%20Windows/StandardPlugins.DLL ---------------------------------------- MySql.Data Assembly Version: 8.0.13.0 Win32 Version: 8.0.13.0 CodeBase: file:///C:/Program%20Files%20(x86)/MySQL/MySQL%20Installer%20for%20Windows/MySql.Data.DLL ---------------------------------------- --- snip ---
Microsoft .NET Reference source:
https://github.com/Microsoft/referencesource/blob/4.6.2/System/net/System/Ne...
--- snip --- ... if (Socket.OSSupportsIPv6) {
// IPv6 tcp connections // Get the size of buffer needed size = 0; result = UnsafeNetInfoNativeMethods.GetExtendedTcpTable(SafeLocalFree.Zero, ref size, true,
(uint)AddressFamily.InterNetworkV6,
TcpTableClass.TcpTableOwnerPidAll, 0);
while (result == IpHelperErrors.ErrorInsufficientBuffer) { try { ... } finally { if (buffer != null) buffer.Close(); } }
// If we don't have any ipv6 interfaces detected, just continue if (result != IpHelperErrors.Success && result != IpHelperErrors.ErrorNoData) { throw new NetworkInformationException((int)result); } } ... --- snip ---
Microsoft CoreFX implementation (Windows platform) is pretty much the same :
https://github.com/dotnet/corefx/blob/8c5260061b11323dfd97fbab614d5440240551...
Microsoft docs:
https://docs.microsoft.com/en-us/windows/desktop/api/iphlpapi/nf-iphlpapi-ge...
Wine source:
https://source.winehq.org/git/wine.git/blob/f0db9c4b3be1f44289d2f7e26d4fa354...
--- snip --- 2380 /****************************************************************** 2381 * GetExtendedTcpTable (IPHLPAPI.@) 2382 */ 2383 DWORD WINAPI GetExtendedTcpTable(PVOID pTcpTable, PDWORD pdwSize, BOOL bOrder, 2384 ULONG ulAf, TCP_TABLE_CLASS TableClass, ULONG Reserved) 2385 { 2386 DWORD ret, size; 2387 void *table; 2388 2389 TRACE("pTcpTable %p, pdwSize %p, bOrder %d, ulAf %u, TableClass %u, Reserved %u\n", 2390 pTcpTable, pdwSize, bOrder, ulAf, TableClass, Reserved); 2391 2392 if (!pdwSize) return ERROR_INVALID_PARAMETER; 2393 2394 if (ulAf != WS_AF_INET) 2395 { 2396 FIXME("ulAf = %u not supported\n", ulAf); 2397 return ERROR_NOT_SUPPORTED; 2398 } 2399 if (TableClass >= TCP_TABLE_OWNER_MODULE_LISTENER) 2400 FIXME("module classes not fully supported\n"); 2401 2402 if ((ret = build_tcp_table(TableClass, &table, bOrder, GetProcessHeap(), 0, &size))) 2403 return ret; 2404 2405 if (!pTcpTable || *pdwSize < size) 2406 { 2407 *pdwSize = size; 2408 ret = ERROR_INSUFFICIENT_BUFFER; 2409 } 2410 else 2411 { 2412 *pdwSize = size; 2413 memcpy(pTcpTable, table, size); 2414 } 2415 HeapFree(GetProcessHeap(), 0, table); 2416 return ret; 2417 } --- snip ---
$ sha1sum mysql-installer-community-8.0.16.0.msi 430bdbfa5c1b1bdccfb7cdb3e0b85d1e71696294 mysql-installer-community-8.0.16.0.msi
$ du -sh mysql-installer-community-8.0.16.0.msi 374M mysql-installer-community-8.0.16.0.msi
$ wine --version wine-4.7
Regards
https://bugs.winehq.org/show_bug.cgi?id=47083
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://web.archive.org/web | |/20190427100352/https://cdn | |.mysql.com//Downloads/MySQL | |Installer/mysql-installer-c | |ommunity-8.0.16.0.msi Keywords| |dotnet, download, Installer
https://bugs.winehq.org/show_bug.cgi?id=47083
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #1 from Alex Henrie alexhenrie24@gmail.com --- Does this still happen after https://source.winehq.org/git/wine.git/commitdiff/94588567afc2bed740e10f6594... ?
https://bugs.winehq.org/show_bug.cgi?id=47083
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |94588567afc2bed740e10f65943 | |1ef2305ff3060 Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #2 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/94588567afc2bed740e10f6594... ("iphlpapi: Implement GetTcp6Table on Linux.")
Part of Wine 5.3 release
Thanks Alex.
Prerequisite:
* 'winetricks -q dotnet452' * 'winetricks -q vcrun2015' <-- needed for MySQL server install
--- snip --- $ WINEDEBUG=+seh,+loaddll,+process,+msi,+iphlpapi wine msiexec -i mysql-installer-community-8.0.16.0.msi >>log.txt 2>&1 ... 004f:trace:loaddll:load_so_dll Loaded L"C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\iphlpapi.dll" at 0x7f0693a30000: builtin ... 004f:trace:iphlpapi:GetNetworkParams pFixedInfo (nil), pOutBufLen 0x22d350 004f:trace:iphlpapi:GetNetworkParams pFixedInfo 0x1a7bc3f0, pOutBufLen 0x22d350 004f:trace:iphlpapi:GetNetworkParams returning 0 004f:trace:iphlpapi:GetAdaptersAddresses (0, 000000c0, (nil), (nil), 0x22d800) ... 004f:trace:iphlpapi:AllocateAndGetIpForwardTableFromStack table 0x22d0f8, bOrder 0, heap 0x10000, flags 0x00000000 004f:trace:iphlpapi:AllocateAndGetIpForwardTableFromStack returning ret 0 table 0x1a7bc3f0 004f:trace:iphlpapi:adapterAddressesFromIndex wlp4s0: 1 IPv4 addresses, 2 IPv6 addresses: 004f:trace:iphlpapi:adapterAddressesFromIndex IPv4 1/1: 192.168.178.45 004f:trace:iphlpapi:adapterAddressesFromIndex IPv6 1/2: 2002:4ffd:ea21::cac0:cc53:27c3:f84f 004f:trace:iphlpapi:adapterAddressesFromIndex IPv6 2/2: fe80::cd8d:fb5d:74e1:74fe 004f:trace:iphlpapi:GetAdaptersAddresses num adapters 3 004f:trace:iphlpapi:GetPerAdapterInfo (IfIndex 1, pPerAdapterInfo (nil), pOutBufLen 0x22d018) 004f:trace:iphlpapi:GetPerAdapterInfo (IfIndex 1, pPerAdapterInfo 0x1e159b80, pOutBufLen 0x22d018) 004f:trace:iphlpapi:GetPerAdapterInfo (IfIndex 2, pPerAdapterInfo (nil), pOutBufLen 0x22d018) 004f:trace:iphlpapi:GetPerAdapterInfo (IfIndex 2, pPerAdapterInfo 0x1e11c040, pOutBufLen 0x22d018) 004f:trace:iphlpapi:GetPerAdapterInfo (IfIndex 3, pPerAdapterInfo (nil), pOutBufLen 0x22d018) 004f:trace:iphlpapi:GetPerAdapterInfo (IfIndex 3, pPerAdapterInfo 0x1e11c040, pOutBufLen 0x22d018) ... 004f:trace:iphlpapi:GetTcpTable pTcpTable (nil), pdwSize 0x22dbc8, bOrder 1 004f:trace:iphlpapi:GetExtendedTcpTable pTcpTable (nil), pdwSize 0x22dbc8, bOrder 1, ulAf 2, TableClass 2, Reserved 0 004f:trace:iphlpapi:build_tcp_table returning ret 0 table 0x1e20e990 004f:trace:iphlpapi:GetTcpTable pTcpTable 0x1e20e990, pdwSize 0x22dbc8, bOrder 1 004f:trace:iphlpapi:GetExtendedTcpTable pTcpTable 0x1e20e990, pdwSize 0x22dbc8, bOrder 1, ulAf 2, TableClass 2, Reserved 0 004f:trace:iphlpapi:build_tcp_table returning ret 0 table 0x1e20eeb0 004f:trace:iphlpapi:GetExtendedTcpTable pTcpTable (nil), pdwSize 0x22dbc8, bOrder 1, ulAf 23, TableClass 5, Reserved 0 004f:trace:iphlpapi:build_tcp6_table returning ret 0 table 0x1dec0530 004f:trace:iphlpapi:GetExtendedTcpTable pTcpTable 0x1dec0530, pdwSize 0x22dbc8, bOrder 1, ulAf 23, TableClass 5, Reserved 0 004f:trace:iphlpapi:build_tcp6_table returning ret 0 table 0x1dec0050 ... --- snip ---
$ wine --version wine-5.5
Regards
https://bugs.winehq.org/show_bug.cgi?id=47083
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.6.
https://bugs.winehq.org/show_bug.cgi?id=47083
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0.x
https://bugs.winehq.org/show_bug.cgi?id=47083
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0.x |---
--- Comment #4 from Michael Stefaniuc mstefani@winehq.org --- Removing the 5.0.x milestone from bug fixes that didn't make it into 5.0.x.