- --
Viewing Issue Advanced Details
[ Jump to Notes ]
ID | Category [?] | Severity [?] | Reproducibility | Date Submitted | Last Update |
---|---|---|---|---|---|
07377 | Crash/Freeze | Critical (emulator) | Always | Jul 15, 2019, 07:07 | Jul 20, 2019, 12:07 |
Tester | AmatCoder | View Status | Public | Platform | MAME (Self-compiled) |
Assigned To | AmatCoder | Resolution | Fixed | OS | Linux (64-bit) |
Status [?] | Resolved | Driver | |||
Version | 0.211 | Fixed in Version | 0.212 | Build | 64-bit |
Fixed in Git Commit | Github Pull Request # | ||||
Summary | 07377: Crash/Segfault when removing some slot options | ||||
Description |
MAME leads a segfault when removing one slot option (leaving it empty) which device type are the same and there are more then one. Example: cpc6128 machine has two floppy slot devices ('upd765:0' & 'upd765:1' with default options '3ssdd' & '35ssdd') |
||||
Steps To Reproduce |
Run: 'mame cpc6128' Menu -> Slot Devices -> upd765:1 -> Change from '35ssdd' to '----' -> Reset -> Segmentation fault |
||||
Additional Information |
With debug build an assert is raised: mame64d: ../../../../../src/emu/emuopts.cpp:1044: image_option& emu_options::image_option(const string&): Assertion `iter != m_image_options.end() && "Attempt to access non-existent image option"' failed. Aborted (core dumped) |
||||
Github Commit | |||||
Flags | |||||
Regression Version | 0.188 | ||||
Affected Sets / Systems | |||||
Attached Files
|
|||||
Relationships
Notes
4
No.16658
AmatCoder Tester
Jul 15, 2019, 07:34
|
Problem seems to be that device image names are updated when removing one option. Then the other device that remains goes from 'floppydisk1' to 'floppydisk' (without number) but image_option still trying to access to 'floppydisk1'. |
---|---|
No.16665
Robbbert Senior Tester
Jul 16, 2019, 09:41
edited on: Jul 16, 2019, 09:42 |
Dump from mame.exe (32-bit):----------------------------------------------------- Crash doesn't happen in my mess build (been patched long ago), so it's related to other similar crashes. Relationships added. |
No.16668
AmatCoder Tester
Jul 16, 2019, 16:18
|
I have created a pull request for this issue (and others): https://github.com/mamedev/mame/pull/5352 It just fix the segfault avoiding to access to no-existent image option. Obviously, this does not fix the underlying problem (option names being changed) as discussed here: https://github.com/mamedev/mame/pull/2555 |
No.16677
Robbbert Senior Tester
Jul 20, 2019, 12:07
|
https://github.com/mamedev/mame/commit/a14ec2ca5c5613e032159ee1c854a99e19a8e7d7 |