Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
orbea opened this issue Jan 5, 2017 · 0 comments
Closed

Comments

@orbea
Copy link
Contributor

orbea commented Jan 5, 2017

OS: Slackware64-current
RetroArch-2017.01.04_7ec6dc0bd_master-x86_64-1_git
mame2010-libretro-2016.12.28_81c75bb_master-x86_64-1_git

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

Works:

  • retroarch -L /usr/lib64/libretro/mame2010_libretro.so ./8ball.zip
  • retroarch -L /usr/lib64/libretro/mame2010_libretro.so roms/8ball.zip
  • Starting the game from the menu.

Segfault:

  • retroarch -L /usr/lib64/libretro/mame2003_libretro.so 8ball.zip
Thread 1 "retroarch" received signal SIGSEGV, Segmentation fault.
0x00007fffe64c8f2e in running_machine::retro_loop (this=0x0) at src/emu/machine.c:444
444       if (!m_paused)
(gdb) bt
#0  0x00007fffe64c8f2e in running_machine::retro_loop (this=0x0) at src/emu/machine.c:444
#1  0x00007fffe64c6ea3 in retro_main_loop () at src/emu/mame.c:215
#2  0x00007fffe5d02b1a in retro_run () at src/osd/retro/retromapper.c:230
#3  0x00000000004127b6 in core_run () at core_impl.c:434
#4  0x0000000000426e70 in runloop_iterate (sleep_ms=0x7fffffffdfb0) at runloop.c:1186
#5  0x0000000000411337 in rarch_main (argc=4, argv=0x7fffffffe0c8, data=0x0)
    at frontend/frontend.c:130
#6  0x000000000041139e in main (argc=4, argv=0x7fffffffe0c8) at frontend/frontend.c:148

Full GDB log - http://pastebin.com/0RRPn0jg

This works in mame2000-libretro and mame2003-libretro suffers from a similar issue.
libretro/mame2003-libretro#74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant