Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08119 Interface Critical (emulator) Always Oct 28, 2021, 01:47 Oct 30, 2021, 21:18
Tester kmg View Status Public Platform MAME (Self-compiled)
Assigned To crazyc Resolution Fixed OS MacOS X
Status [?] Resolved Driver
Version 0.237 Fixed in Version 0.238 Build 64-bit
Fixed in Git Commit cee44b0 Github Pull Request #
Summary 08119: Lua console: tab completion causing segmentation fault
Description Tab completion causes segmentation fault when used in conjunction with associative array "key" accessing. This seems to be general but see below for a specific example.
Steps To Reproduce Run anything: mame pacman -w -console
In console type: manager.machine.devices[":maincpu"]. (note you need at least the trailing dot)
Then: hit tab
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems Lua console
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
5
User avatar
No.19397
ozfalcon
Tester
Oct 30, 2021, 09:06
This seems to be present back to Mame 0.228
Mame 0.227 doesn't seem to show this behaviour.
User avatar
No.19400
Tafoid
Administrator
Oct 30, 2021, 11:46
Can't seem to duplicate this in Windows. Can anyone else?
User avatar
No.19401
hap
Developer
Oct 30, 2021, 12:40
Crashes here on Windows 10, both 0.237 and local build.
User avatar
No.19403
Robbbert
Senior Tester
Oct 30, 2021, 13:40
Tried on official release and local git, no crash.

The large list of choices has many things starting with sol. and ending with corrupted characters though.
User avatar
No.19404
cuavas
Administrator
Oct 30, 2021, 13:47
It’s probably because whatever does the tab completion (something in linenoise?) is expecting the thing to be a Lua table when it’s actually a bridged object from sol3.