https://bugs.winehq.org/show_bug.cgi?id=48256
Bug ID: 48256 Summary: pwsh.exe (powershell) crashes after 20~50 sec: System.EntryPointNotFoundException: Unable to find an entry point named 'FreeAddrInfoEx' in DLL 'ws2_32.dll'. Product: Wine Version: 4.21 Hardware: x86 URL: https://github.com/PowerShell/PowerShell/releases/down load/v6.1.6/PowerShell-6.1.6-win-x64.zip OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: winsock Assignee: wine-bugs@winehq.org Reporter: xerox.xerox2000x@gmail.com Distribution: Debian
See below. Just start pswh.exe and wait a while (or type anything)
I don`t know if FreeAddrInfoEx is exactly same as FreeAddrInfoExW so if it can just be forwarded, so if anyone who knows more about winsock could fix this bug that would be nice (note: FreeAddrInfoEx entry is present in win7 ws2_32)
Error in console:
An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Unhandled Exception: System.EntryPointNotFoundException: Unable to find an entry point named 'FreeAddrInfoEx' in DLL 'ws2_32.dll'. at Interop.Winsock.FreeAddrInfoEx(AddressInfoEx* pAddrInfo) at System.Net.NameResolutionPal.GetAddrInfoExContext.FreeContext(GetAddrInfoExContext* context) at System.Net.NameResolutionPal.ProcessResult(SocketError errorCode, GetAddrInfoExContext* context) at System.Net.NameResolutionPal.GetAddressInfoExCallback(Int32 error, Int32 bytes, NativeOverlapped* overlapped) 003c:fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub 003c:fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000402,(nil),0x0001,0x00000000,0x1ba0d600,(nil)): stub 003c:err:eventlog:ReportEventW L"Application: pwsh.exe\nCoreCLR Version: 4.6.28008.1\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.EntryPointNotFoundException: Unable to find an entry point named 'FreeAddrInfoEx' in DLL 'ws2_32.dll'.\r\n at Interop.Winsock.FreeAddrInfoE"...
https://bugs.winehq.org/show_bug.cgi?id=48256
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #1 from Vijay Kamuju infyquest@gmail.com --- According to msdn (https://docs.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-free...)
When UNICODE or _UNICODE is defined, FreeAddrInfoEx is defined to FreeAddrInfoExW, the Unicode version of the function. When UNICODE or _UNICODE is not defined, FreeAddrInfoEx is defined to FreeAddrInfoExA
https://bugs.winehq.org/show_bug.cgi?id=48256
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- Looks like valid issue, we should provide this export. FreeAddrInfoEx() is A-version of FreeAddrInfoExW().
https://bugs.winehq.org/show_bug.cgi?id=48256
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 65974 --> https://bugs.winehq.org/attachment.cgi?id=65974 winetricks script to easily reproce the error
To easily reproduce the error winetricks script is attached. After installation just select "Launch powershell" in last window.
https://bugs.winehq.org/show_bug.cgi?id=48256
--- Comment #4 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 65975 --> https://bugs.winehq.org/attachment.cgi?id=65975 stub pwrshplugin.dll
For manual installation, attached stub pwrshplugin patch can be used.
Otherwise the installer complains about missing WMF and aborts
https://bugs.winehq.org/show_bug.cgi?id=48256
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- Created attachment 66000 --> https://bugs.winehq.org/attachment.cgi?id=66000 patch, enough to avoid pwsh.exe from crashing
Attached patch fixes the crash for me. Hopefully correct (enough)
https://bugs.winehq.org/show_bug.cgi?id=48256
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |dotnet, patch
https://bugs.winehq.org/show_bug.cgi?id=48256
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|pwsh.exe (powershell) |pwsh.exe (from |crashes after 20~50 sec: |Powershell-6.*) crashes |System.EntryPointNotFoundEx |after 20~50 sec: |ception: Unable to find an |System.EntryPointNotFoundEx |entry point named |ception: Unable to find an |'FreeAddrInfoEx' in DLL |entry point named |'ws2_32.dll'. |'FreeAddrInfoEx' in DLL | |'ws2_32.dll'.
--- Comment #6 from Louis Lenders xerox.xerox2000x@gmail.com --- Still present in wine-5.10
I think my patch from comment #5 is not quite correct, if anyone else who knows more about winsock (than me ;)) could solve this that`d be nice
https://bugs.winehq.org/show_bug.cgi?id=48256
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED URL|https://github.com/PowerShe |https://github.com/PowerShe |ll/PowerShell/releases/down |ll/PowerShell/releases/down |load/v6.1.6/PowerShell-6.1. |load/v6.1.6/PowerShell-6.1. |6-win-x64.zip |6-win-x64.msi Fixed by SHA1| |6d1fea9711d5062fdcfe5043091 | |451c8aec56023 Status|NEW |RESOLVED
--- Comment #7 from Louis Lenders xerox.xerox2000x@gmail.com --- fixed by 6d1fea9711d5062fdcfe5043091451c8aec56023
https://bugs.winehq.org/show_bug.cgi?id=48256
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.11.
https://bugs.winehq.org/show_bug.cgi?id=48256
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0.x
https://bugs.winehq.org/show_bug.cgi?id=48256
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0.x |---
--- Comment #9 from Michael Stefaniuc mstefani@winehq.org --- Removing the 5.0.x milestone from bug fixes included in 5.0.3.
https://bugs.winehq.org/show_bug.cgi?id=48256
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |focht@gmx.net URL|https://github.com/PowerShe |https://web.archive.org/web |ll/PowerShell/releases/down |/20210702121923/https://git |load/v6.1.6/PowerShell-6.1. |hub.com/PowerShell/PowerShe |6-win-x64.msi |ll/releases/download/v6.1.6 | |/PowerShell-6.1.6-win-x64.m | |si