http://bugs.winehq.org/show_bug.cgi?id=28291
Summary: Heroes III: sound stops and program hangs at exit Product: Wine Version: 1.3.27 Platform: x86 OS/Version: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: jobstz@yahoo.de
Created an attachment (id=36255) --> (http://bugs.winehq.org/attachment.cgi?id=36255) runtime log
This bug has been present since 1.3.25 and is probably due to the rewrite of the sound drivers.
When starting up the game one sees a short intro (which i click to skip) and then the default 'home' screen with options 'new game' etc. In the background music is playing but after a while it suddenly stops. This silence persists throughout the whole game. In pre-1.3.25 versions the game worked perfectly well. When trying to quit the game it hangs and does not respond.
AFAICT the important error messages are the 'err:ntdll:RtlpWaitForCriticalSection' messages that begin to appear after the sound stops and probably state that the sound thread is 'deadlocked' in a way. The hang upon shutdown is probably also just the same thread that simply doesn't want to exit. (The 'err:ntdll:RtlpWaitForCriticalSection' stuff still continues to show repeatedly when that point is reached)
For completeness I attach a full log up until the hang.
My guess would be that the very source is the 'err:dplay:DPLAYX_ConstructData' message which is followed by a buffer overflow or smth like that since the "static data couldn't be mapped to memory space". Data on the stack tends to overflow whenever a limit is reached.