https://bugs.winehq.org/show_bug.cgi?id=56365
Bug ID: 56365 Summary: ntdll-Syscall_Emulation patchset causing xdelta3 process to crash/fail Product: Wine-staging Version: 9.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: madbyte@tuta.io CC: leslie_alistair@hotmail.com, z.figura12@gmail.com Distribution: ---
Created attachment 76104 --> https://bugs.winehq.org/attachment.cgi?id=76104 log winedebug_seh wine-staging-9.2
Me and a bunch of other users encounter an issue while using a delta patcher used to downpatch a specific game to an earlier game version. The delta patcher utilizes xdelta3.
I found that the xdelta3 process seemingly fails at a random file while patching the game data.
I started building wine-staging from source myself and after some testing and excluding seemingly relevant patchsets I found that excluding the patch 'ntdll-Syscall_Emulation' will result in the patcher finishing it's job without issues.
The issue using vanilla wine-staging builds seemed to not be consistent between distros as well: Tests always failed on e.g Pop!_Os, CachyOS, EndeavourOS, Garuda, but on e.g Fedora 39, Mint 21.3, Manjaro, Ubuntu 23.10 the patching worked every time, even with the ntdll-Syscall_Emulation patchset enabled. I guessed it might be because of some kernel option/feature enabled/disabled by default on some distros but didn't want to built kernels from source myself to test this.
In case it helps, here is the patcher src snippet from where the xdelta3 process is invoked: https://dev.sp-tarkov.com/waffle.lord/Patcher/src/branch/main/Patcher/Patche... (the error log of the patcher itself shows the message seen on line 113, "something went wrong during the xdelta3 process")
I've attached a log showing a failed attempt with wine-staging-9.2 including said patchset.
imho the relevant part starts at line 14726 in the file:
0748:trace:seh:sigsys_handler SIGSYS, rax 0xffff, rip 0x600000000005. 0748:trace:seh:install_bpf Seccomp filters already installed. 0748:fixme:ver:GetCurrentPackageId (000000000063FEB0 0000000000000000): stub 02c4:trace:seh:dispatch_exception code=e0434352 flags=1 addr=00006FFFFFC135A7 ip=6fffffc135a7