https://bugs.winehq.org/show_bug.cgi?id=55522
Bug ID: 55522 Summary: SoftEther VPN Server Manager Product: Wine Version: 8.14 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: lowdog136@gmail.com Distribution: ---
Created attachment 75084 --> https://bugs.winehq.org/attachment.cgi?id=75084 SoftEther VPN Server Manager
Error on startup. Used to work
https://bugs.winehq.org/show_bug.cgi?id=55522
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Tried to reproduce the crash with the zip download from here: https://www.softether-download.com/en.aspx?product=softether
4b69c6e57cb48da23c2ab2a70a7e4cbd softether-vpn_admin_tools-v4.43-9799-beta-2023.08.31-win32.zip
Source code seems available here: https://github.com/SoftEtherVPN/SoftEtherVPN_Stable
Unfortunately could not reproduce a crash on startup with the 8.14 bookworm winehq packages.
Please provide the softether server manager version you could observe the crash. And please start the application from a terminal and put the output to a file and attach it to this bug.
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #2 from DenisKhodarev lowdog136@gmail.com --- Created attachment 75185 --> https://bugs.winehq.org/attachment.cgi?id=75185 backtrace
Backtrace
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #3 from DenisKhodarev lowdog136@gmail.com --- ➜ ~ yay -Ss softethervpn-server-manager aur/softethervpn-server-manager v4.38_9760-1 (+2 0.00) (Orphaned) (Installed)
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #4 from DenisKhodarev lowdog136@gmail.com --- Created attachment 75186 --> https://bugs.winehq.org/attachment.cgi?id=75186 screenshot
I downloaded from the site and tried to run the latest version
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #5 from Bernhard Übelacker bernhardu@mailbox.org --- Thanks for the additional information. But I was looking specifically for the output when you start vpnsmgr from a terminal window.
I could now reproduce this crash inside a minimal Arch Linux VM, with the wine distribution package, and installed softethervpn-server-manager from AUR.
This uses this download: https://www.softether-download.com/files/softether/v4.38-9760-rtm-2021.08.17...
When running vpnsmgr from a terminal it shows these last lines: 0024:err:winediag:ntlm_check_version ntlm_auth was not found. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution. 0024:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems wine: Unhandled page fault on read access to 00000000...
After installing the distructions "samba" package the crash is no longer visible.
(Previous lines show "failed to load libgnutls", but are not related to the crash. But to avoid those one could install packages "gnutls lib32-gnutls" too.)
https://bugs.winehq.org/show_bug.cgi?id=55522
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal CC| |o.dierick@piezo-forte.be
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #6 from Bernhard Übelacker bernhardu@mailbox.org --- Sorry, this should read: After installing the distributions "samba" package the crash is no longer visible.
With a debug information enabled build the crash is here: #0 in RtlCompareString@12 at wine/dlls/ntdll/rtlstr.c:392 #1 in LsaLookupAuthenticationPackage@12 at wine/dlls/secur32/lsa.c:1014 #2 in ?? () from c:/softethervpn/vpnsmgr/vpnsmgr.exe ...
https://gitlab.winehq.org/wine/wine/-/blob/a2c552f723a3aa65eca6e518266c8b9bd...
A simple check of loaded_packages[i].name being not null before feeding it into RtlCompareString would also avoid the crash.
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #7 from DenisKhodarev lowdog136@gmail.com --- Good morning I installed samba and it started immediately apparently it depends on some kind of library since I didn’t install samba before and it worked without Thank you very much for your help Have a good day
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #8 from Bernhard Übelacker bernhardu@mailbox.org --- Great to hear it is working.
Digging further shows this "name" would get set in function ntlm_LsaApInitializePackage. Unfortunately the function is left because ntlm_check_version fails, before the package_name gets set.
Maybe the package_name should get set even when ntlm_check_version fails?
Wine-gdb> bt #0 ntlm_LsaApInitializePackage at wine/dlls/msv1_0/main.c:119 #1 initialize_package at wine/dlls/secur32/lsa.c:897 #2 initialize_package at wine/dlls/secur32/lsa.c:998 #3 load_package at wine/dlls/secur32/lsa.c:932 #4 load_auth_packages () at wine/dlls/secur32/lsa.c:970 #5 SECUR32_initializeProviders () at wine/dlls/secur32/secur32.c:503 ... Wine-gdb> x/hs name 0x9ce52c: u"MSV1_0"
https://gitlab.winehq.org/wine/wine/-/blob/a2c552f723a3aa65eca6e518266c8b9bd...
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #9 from DenisKhodarev lowdog136@gmail.com --- I'll try in the future So far it works and I'm happy :)
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #10 from DenisKhodarev lowdog136@gmail.com --- I'll try it on my home computer this evening it has the same system and doesn't work the same
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #11 from Hans Leidekker hans@meelstraat.net --- Created attachment 75195 --> https://bugs.winehq.org/attachment.cgi?id=75195 patch
The problem is that the package is added to the list even if initialization fails. This patch should fix it.
https://bugs.winehq.org/show_bug.cgi?id=55522
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|ntdll |secur32
https://bugs.winehq.org/show_bug.cgi?id=55522
--- Comment #12 from Bernhard Übelacker bernhardu@mailbox.org --- Thanks, I can confirm this patch avoids the crash with vpnsmgr.exe.
https://bugs.winehq.org/show_bug.cgi?id=55522
Hans Leidekker hans@meelstraat.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |ed71abd1ccfdec44aa487ec6a14 | |fdf4c54f52ad2 Resolution|--- |FIXED
--- Comment #13 from Hans Leidekker hans@meelstraat.net --- Fixed by ed71abd1ccfdec44aa487ec6a14fdf4c54f52ad2.
https://bugs.winehq.org/show_bug.cgi?id=55522
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #14 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 8.17.