[Bug 59913] New: msvcrt: _aligned_offset_realloc alignment validation failure crashes PCSX2 nightly
http://bugs.winehq.org/show_bug.cgi?id=59913 Bug ID: 59913 Summary: msvcrt: _aligned_offset_realloc alignment validation failure crashes PCSX2 nightly Product: Wine Version: 11.11 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@list.winehq.org Reporter: brandowlucas@gmail.com Distribution: --- Created attachment 81242 --> http://bugs.winehq.org/attachment.cgi?id=81242 Removing this check from _aligned_offset_realloc prevents the function from returning NULL when alignment/offset parameters are evaluated, which resolves the crash completely. When emulating games on PCSX2 nightly, the emulator crashes with the following assertion failure: "Assertion failed in function HashBucket::add... Failed to allocate HashBucket Chain". The crash is triggered by _aligned_offset_realloc returning NULL and setting errno to EINVAL in dlls/msvcrt/heap.c. Specifically, the following sanity check fails: if (memblock != ALIGN_PTR(*saved, alignment, offset)) { *_errno() = EINVAL; return NULL; } The application (or one of its libraries like Qt/TBB) reallocates aligned memory, but this strict verification fails, causing memory allocation functions to fail and abort the process. Steps to reproduce: 1. Run a modern Qt build of PCSX2 (e.g., v2.7.419). 2. Launch any game. 3. The emulator crashes immediately or shortly after starting due to the HashBucket allocation failure. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59913 Bartosz <gang65@poczta.onet.pl> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gang65@poczta.onet.pl -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59913 Austin English <austinenglish@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, patch -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59913 brandow <brandowlucas@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED --- Comment #1 from brandow <brandowlucas@gmail.com> --- Following merge request https://gitlab.winehq.org/wine/wine/-/merge_requests/11442, the issue affecting both the BIOS and games has been resolved. The BIOS now boots successfully, and games run without errors. Marking as RESOLVED FIXED. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=59913 Alexandre Julliard <julliard@winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #2 from Alexandre Julliard <julliard@winehq.org> --- Closing bugs fixed in 11.14. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla