https://bugs.winehq.org/show_bug.cgi?id=57917
Bug ID: 57917 Summary: HOMM sound related SIGBUS crash within seconds to minutes of startup Product: Wine Version: 10.2 Hardware: x86-64 OS: FreeBSD Status: NEW Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: damjan.jov@gmail.com
"Heroes of Might and Magic" (HOMM, https://appdb.winehq.org/objectManager.php?sClass=application&iId=2500) starts and plays now that bug 3930 is fixed, but gets frequent SIGBUS crashes :-(.
It always crashes within seconds to minutes of starting the game, although at completely random times. Sometimes it happens at certain game events, such as entering a town or starting a battle, but it's not reproducible.
The crashes appears to completely bypass Wine, there's no seh or useful logging, I just get "Bus error (core dumped)" printed in my terminal, and:
pid 3203 (wine), jid 0, uid 1001: exited on signal 10 (core dumped)
logged in `dmesg` ("signal 10" = SIGBUS). The core dump doesn't give a helpful stack trace, and the game gets a huge number of exceptions when run in winedbg.
Since the game heavily uses sound (both sampled sound and either CDDA or MIDI), I tried to see what would happen when sound is completely disabled. And indeed, when all the sound drivers (wineoss.drv, winepulse.drv, etc. and their .so files) are moved or deleted, no sound is played but the SIGBUS crashes completely stop, you can play for long time periods with no issues.
It doesn't seem to matter whether OSS or Pulse is used as the sound driver. It could be a regression, but I still need to confirm that.