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

Crash/Error on bsd #625

Closed
almostalive opened this issue Mar 26, 2014 · 7 comments
Closed

Crash/Error on bsd #625

almostalive opened this issue Mar 26, 2014 · 7 comments

Comments

@almostalive
Copy link

This is the error I'm getting on PC-BSD 10.0 (FreeBSD).
RetroArch [ERROR] :: Assertion failed at file_path.c:673.

RetroArch RGUI runs fine up until I select a game. After I click on whatever I want in Load Content (core name) screen. It Crashes. The same thing happens if I try entering everything in cli. and that error above is the last thing mentioned in the terminal.

I've ran retroarch before in the past on pc-bsd 9.2 like 6 months ago or so. So I'm not sure if it is something that changed in FreeBSD 9 to 10 or something that changed in retroarch during that time.

@Themaister
Copy link
Contributor

That assertion failing makes no sense. What is PATH_MAX defined to on PC-BSD? Do you have a backtrace?

@almostalive
Copy link
Author

I don't know how to find that. But a quick search on google i found this which might be relevant http://lists.freebsd.org/pipermail/freebsd-bugs/2013-November/054530.html

gdb shows me nothing. it just says Program exited with code 02. and bt says No stack.

@almostalive
Copy link
Author

grep PATH_MAX /usr/include/sys/syslimits.h
#define PATH_MAX 1024 /* max bytes in pathname */
is this what you were needing?

@Themaister
Copy link
Contributor

I've pushed a commit which should give you a SIGABRT when the assertion fails. You should be able to generate a backtrace then.

@almostalive
Copy link
Author

thanks maister. got a backtrace now.

this first one is launching a core and game through command line.
#0 0x000000080290726a in thr_kill () from /lib/libc.so.7
#1 0x00000008029ceac9 in abort () from /lib/libc.so.7
#2 0x0000000000417f3c in path_resolve_realpath (buf=0x6e866c "gambatte_libretro.so", size=1024) at file_path.c:673
#3 0x000000000042277b in load_symbols (is_dummy=false) at dynamic.c:297
#4 0x00000000004222c8 in init_libretro_sym (dummy=false) at dynamic.c:400
#5 0x000000000040da9a in rarch_main_init (argc=5, argv=0x7fffffffd7c0) at retroarch.c:2997
#6 0x00000000004096ba in main (argc=5, argv=0x7fffffffd7c0) at frontend/frontend.c:336

this second one is through rgui
#0 0x000000080290726a in thr_kill () from /lib/libc.so.7
#1 0x00000008029ceac9 in abort () from /lib/libc.so.7
#2 0x0000000000417f3c in path_resolve_realpath (buf=0x6e866c "/home/carl/libretro-super/retroarch/gambatte_libretro.so", size=1024) at file_path.c:673
#3 0x000000000042277b in load_symbols (is_dummy=false) at dynamic.c:297
#4 0x00000000004222c8 in init_libretro_sym (dummy=false) at dynamic.c:400
#5 0x000000000040da9a in rarch_main_init (argc=7, argv=0x7fffffffcd40) at retroarch.c:2997
#6 0x000000000041190b in rarch_main_init_wrap (args=0x7fffffffd6b8) at retroarch.c:3357
#7 0x0000000000442a1a in load_menu_game () at frontend/menu/menu_common.c:410
#8 0x0000000000408f0a in main_entry_iterate (argc=3, argv=0x7fffffffd7e8, args=0x0) at frontend/frontend.c:160
#9 0x000000000040975a in main (argc=3, argv=0x7fffffffd7e8) at frontend/frontend.c:357

I hope that helps.

@Themaister
Copy link
Contributor

Ok, I see what can go wrong. Try building latest commit and see if it works now.

@almostalive
Copy link
Author

Yep that fixed it. Thanks for looking in to it and getting it fixed.

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

2 participants