https://bugs.winehq.org/show_bug.cgi?id=41618
--- Comment #6 from Kimmo Myllyvirta kimmo.myllyvirta@gmail.com --- Created attachment 56972 --> https://bugs.winehq.org/attachment.cgi?id=56972 hack patch
Possible fix for this bug and bug #38668 attached (possibly fixes some others too). I'm not sure how correct this is, how ASLR affects it etc, but at least this is a start.
Try to reduce the address space to 8TB. 128TB is only for Windows 8.1 and Windows Server 2012 R2 [1]. (and linux) Now, you may ask why xaudio2_7 works on Windows 8.1. Actually it doesn't, and neither does native dsound when using top-down allocations [2]. Native xaudio and dsound try to pack an address and some data into a single variable. 43 bits for the address (8TB), 21 bits for data. Native xaudio2_7 and dsound seems to use similar command queues, based on the pdbs (in this bug the crash happens at XLFQueueRemove, in [2] LFQueuePut).
[1] https://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).a... [2] https://social.msdn.microsoft.com/Forums/silverlight/en-US/1ebe03be-a9fd-45d...