https://bugs.winehq.org/show_bug.cgi?id=55467
Bug ID: 55467 Summary: MAME 0.257: mame.exe -listxml crashes Product: Wine Version: 8.14 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: pernegger@gmail.com Distribution: ---
Created attachment 75027 --> https://bugs.winehq.org/attachment.cgi?id=75027 wine 8.14 terminal output
Steps to reproduce: Run "wine mame.exe -listxml".
Expected results: Very long XML dump, followed by programme exit.
Actual result: Things crash and burn (see log).
(This affects clrmamepro's ability to import data when being fed the MAME executable.)
MAME's interactive mode, i.e. just "wine mame.exe" seems to work.
I haven't tested any older versions of MAME, just 0.257. WINE-side, I've tried 8.13 and 8.14, both via the official Ubuntu 22.04 packages available via WINEHQ. So this isn't necessarily a regression.
https://bugs.winehq.org/show_bug.cgi?id=55467
pernegger@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://github.com/mamedev/ | |mame/releases/download/mame | |0257/mame0257b_64bit.exe Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=55467
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |bernhardu@mailbox.org
--- Comment #1 from Bernhard Übelacker bernhardu@mailbox.org --- Could still reproduce this crash with wine-8.21.
To avoid having the XML in stdout I used this: wine cmd.exe /C "mame.exe -listxml > ..\xml.xml"
This might be a threading issue because following made the crash go away: taskset -c 0 wine cmd.exe /C "mame.exe -listxml > ..\xml.xml"
Following draft contains a minimal test showing the crash and adds some locking in setlocale to avoid the crash: https://gitlab.winehq.org/wine/wine/-/merge_requests/4654
https://bugs.winehq.org/show_bug.cgi?id=55467
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt CC| |piotr.caban@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=55467
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression
--- Comment #2 from Piotr Caban piotr.caban@gmail.com --- The application works for me in wine 5.0. It updates wrong locale refcounts and possibly writes to just freed memory but it doesn't crash. Marking as regression.
https://bugs.winehq.org/show_bug.cgi?id=55467
Bernhard Übelacker bernhardu@mailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|8.14 |5.22 Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |3481d165d16587101857991a02c | |e169018d9e657 Regression SHA1| |f2482218708e038bf1ccb9491d0 | |da61fea4be34b
--- Comment #3 from Bernhard Übelacker bernhardu@mailbox.org --- For completeness, a regression test brought me to this commit: f2482218708e038bf1ccb9491d0da61fea4be34b
A fix got committed: https://gitlab.winehq.org/wine/wine/-/commit/3481d165d16587101857991a02ce169...
Thanks Piotr for getting it committable.
Resolving fixed, setting version to first broken release.
https://bugs.winehq.org/show_bug.cgi?id=55467
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 9.1.