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.