libretro / mame2015-libretro

Late 2014/Early 2015 version of MAME (0.160-ish) for libretro. Compatible with MAME 0.160 sets.
17 stars 36 forks source link

Segfault when opening roms from the command line without a full path #39

Closed orbea closed 7 years ago

orbea commented 7 years ago

OS: Slackware64-current RetroArch-2017.01.05_7d0824420_master-x86_64-1_git mame2014-libretro-2017.01.05_7dc561f73d_master-x86_64-1_git

mame2014-libretro will segfault if opening a rom from the command line without a full path.

Works:

Segfault:

This works in mame2000-libretro, but mame2003-libretro and mame2010-libretro have similar issues. https://github.com/libretro/mame2003-libretro/issues/74 https://github.com/libretro/mame2010-libretro/issues/25

r-type commented 7 years ago

yes we should check if not slash in path then we should add a ./

orbea commented 7 years ago

@r-type Hey, thanks, you just made my day!

I know these issues don't seem like much, but as someone who uses a terminal often its easy to reproduce and I now feel much more comfortable in providing a build script for mame2014 for slackbuilds.org knowing no one else in a similar position will run into it. :)

Also when you have a chance it would be greatly appreciated if you could look at the similar issue for mame2003 linked in the op.

r-type commented 7 years ago

Sorry but for 2003 I'm not admin on this core and the syntax is different so I let other people fix 2003