https://bugs.winehq.org/show_bug.cgi?id=45879
Bug ID: 45879 Summary: Aruba Key crashes on unimplemented function setupapi.dll.CM_Request_Device_EjectA when clicking 'remove' button Product: Wine Version: 3.16 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: setupapi Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says.
BTW the app seems to be a perfect test candidate/suite for Wine's Winscard. Unfortunately Winscard looks pretty much abandoned area ('SCard4Wine' project exists for that).
--- snip --- $ pwd /home/focht/.wine/drive_c/unpacked
$ WINEDEBUG=+seh,+relay,+process,+setupapi wine ./autorun.exe >>log.txt 2>&1 ... 002a:Call KERNEL32.CreateProcessW(00000000,004435b8 L"C:\unpacked\Launcher\launcher.exe",00000000,00000000,00000000,00000020,00000000,004437c8 L"C:\unpacked\Launcher",0033fdc4,0033fdb4) ret=00401104 .... 002a:trace:process:create_process_impl starting L"C:\unpacked\Launcher\launcher.exe" as Win32 binary (400000-493000, arch 014c) ... 002c:Call KERNEL32.__wine_kernel_init() ret=7bc6d62a ... 002a:trace:process:create_process_impl started process pid 002b tid 002c 002a:Ret KERNEL32.CreateProcessW() retval=00000001 ret=00401104 ... 002c:Call KERNEL32.CreateProcessW(00000000,0080797a L"C:\users\focht\Temp\38763tool.exe C: 43 aa_DJ",00000000,00000000,00000000,00000410,00000000,00807fba L"C:\users\focht\Temp",0069c1e8,0069c22c) ret=6a294dd7 ... 002c:trace:process:create_process_impl starting L"C:\users\focht\Temp\38763tool.exe" as Win32 binary (400000-43c000, arch 014c) ... 002c:trace:process:create_process_impl started process pid 0033 tid 0034 ... 002c:Ret KERNEL32.CreateProcessW() retval=00000001 ret=6a294dd7 ... 0034:Call setupapi.SetupDiGetClassDevsA(004279fc,00000000,00000000,00000012) ret=00401bbb 0034:trace:setupapi:SetupDiGetClassDevsExW {53f56307-b6bf-11d0-94f2-00a0c91efb8b} (null) (nil) 0x00000012 (nil) (null) (nil) 0034:trace:setupapi:SetupDiCreateDeviceInfoListExW {53f56307-b6bf-11d0-94f2-00a0c91efb8b} (nil) (null) (nil) ... 0034:Call advapi32.RegOpenKeyExW(80000002,7d8049e0 L"System\CurrentControlSet\Control\DeviceClasses",00000000,00020019,0033ef34) ret=7d7e5db2 0034:Ret advapi32.RegOpenKeyExW() retval=00000002 ret=7d7e5db2 0034:trace:setupapi:SETUPDI_EnumerateInterfaces 0x1694d8, {53f56307-b6bf-11d0-94f2-00a0c91efb8b}, (null), 00000012 ... 0034:Ret setupapi.SetupDiGetClassDevsA() retval=001694d8 ret=00401bbb 0034:Call setupapi.SetupDiEnumDeviceInterfaces(001694d8,00000000,004279fc,00000000,0033f178) ret=00401be4 0034:trace:setupapi:SetupDiEnumDeviceInterfaces 0x1694d8, (nil), {53f56307-b6bf-11d0-94f2-00a0c91efb8b}, 0, 0x33f178 0034:Ret setupapi.SetupDiEnumDeviceInterfaces() retval=00000000 ret=00401be4 0034:Call setupapi.SetupDiDestroyDeviceInfoList(001694d8) ret=00401cf1 0034:trace:setupapi:SetupDiDestroyDeviceInfoList 0x1694d8 0034:Call ntdll.RtlFreeHeap(00110000,00000000,001694d8) ret=7d7e4d5a 0034:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7d7e4d5a 0034:Ret setupapi.SetupDiDestroyDeviceInfoList() retval=00000001 ret=00401cf1 0034:Call setupapi.CM_Get_Parent(0033f5e4,00000000,00000000) ret=0040230d 0034:fixme:setupapi:CM_Get_Parent 0x33f5e4 0x00000000 0x00000000 stub 0034:Ret setupapi.CM_Get_Parent() retval=0000000d ret=0040230d 0034:Call KERNEL32.CloseHandle(00000014) ret=00402314 0034:Ret KERNEL32.CloseHandle() retval=00000001 ret=00402314 0034:Call KERNEL32.RaiseException(80000100,00000001,00000002,0033f56c) ret=7d8021fb 0034:trace:seh:raise_exception code=80000100 flags=1 addr=0x7b447477 ip=7b447477 tid=0034 0034:trace:seh:raise_exception info[0]=7d802240 0034:trace:seh:raise_exception info[1]=7d802e1d wine: Call from 0x7b447477 to unimplemented function setupapi.dll.CM_Request_Device_EjectA, aborting ... wine: Unimplemented function setupapi.dll.CM_Request_Device_EjectA called at address 0x7b447477 (thread 0034), starting debugger... --- snip ---
Wine source:
https://source.winehq.org/git/wine.git/blob/HEAD:/dlls/setupapi/setupapi.spe...
--- snip --- 171 @ stub CM_Request_Device_EjectA 172 @ stub CM_Request_Device_EjectW --- snip ---
$ sha1sum AK* bd0408fa2c72f9f87067aa9f348bb626aa0d503d AK_WIN_VERSION.exe f4a5ce7c902b64c7459f96a08df542dea6cf4a8a AK_WIN_VERSION.zip
$ du -sh AK* 160M AK_WIN_VERSION.exe 159M AK_WIN_VERSION.zip
$ wine --version wine-3.16-149-gb1a3b9e5ce
Regards
https://bugs.winehq.org/show_bug.cgi?id=45879
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://ca.arubapec.it/down | |loads/AK_WIN_VERSION.zip Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=45879
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-sta | |ging/wine-staging/tree/mast | |er/patches/setupapi-CM_Requ | |est_Device_Eject Status|NEW |STAGED CC| |leslie_alistair@hotmail.com
https://bugs.winehq.org/show_bug.cgi?id=45879
--- Comment #1 from Gijs Vermeulen gijsvrm@gmail.com --- A stub was added in https://source.winehq.org/git/wine.git/commit/343e486e83fc9667bfeac22519f1b0c31e29c1f5
https://bugs.winehq.org/show_bug.cgi?id=45879
Zebediah Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |343e486e83fc9667bfeac22519f | |1b0c31e29c1f5 Resolution|--- |FIXED Status|STAGED |RESOLVED CC| |z.figura12@gmail.com
--- Comment #2 from Zebediah Figura z.figura12@gmail.com --- I can't say the application works (and I don't have the hardware to test it with anyway), but it at least reports the device was successfully removed.
https://bugs.winehq.org/show_bug.cgi?id=45879
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.1.
https://bugs.winehq.org/show_bug.cgi?id=45879
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://ca.arubapec.it/down |https://web.archive.org/web |loads/AK_WIN_VERSION.zip |/20190412211227/https://ca. | |arubapec.it/downloads/AK_WI | |N_VERSION.zip