Closed asciibeats closed 3 years ago
I tried building on RPi2 with default make and no crash there. Could you try doing a debug build instead and get a proper trace with gdb?
Edit: Also tried with make platform=armv
and no difference.
Looks like it stops before it will log about vicerc
searchings. Maybe try turning vice_read_vicerc
off by editing the opt file manually and see what happens? And what about starting the core without content?
Setting vice_read_vicerc = "disabled" changes nothing. Starting the core without content gives the same output just without the "...Arg1..." line at the end.
I did gdb retroarch
> run
, loaded and started the core without content, then the segfault happened and the result of bt full
is:
#0 0x0000007fd97752b0 in () at /usr/lib/libretro/vice_x64_libretro.so
#1 0x0000007fd9775aa4 in () at /usr/lib/libretro/vice_x64_libretro.so
#2 0x0000007fd975fc60 in () at /usr/lib/libretro/vice_x64_libretro.so
#3 0x0000007fd977f64c in () at /usr/lib/libretro/vice_x64_libretro.so
#4 0x0000007fd98139a0 in () at /usr/lib/libretro/vice_x64_libretro.so
#5 0x0000007fd95e1f5c in () at /usr/lib/libretro/vice_x64_libretro.so
#6 0x0000007fd95ebdcc in retro_load_game () at /usr/lib/libretro/vice_x64_libretro.so
#7 0x000000555560faa0 in ()
#8 0x00000055556462f4 in ()
#9 0x0000005555649744 in ()
#10 0x0000005555614890 in ()
#11 0x00000055556305a4 in ()
#12 0x0000005555646f3c in ()
#13 0x0000005555648cf8 in ()
#14 0x000000555586d6fc in ()
#15 0x000000555561cb80 in ()
#16 0x000000555561ab50 in ()
#17 0x000000555562acc0 in ()
#18 0x000000555562c070 in ()
#19 0x000000555562d394 in ()
#20 0x0000007ff3eb1538 in __libc_start_main () at /usr/lib/libc.so.6
#21 0x00000055555f0db4 in ()
I also reduced my makefile changes to:
else ifeq ($(platform), rpi4_64)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
LDFLAGS += -shared -Wl,--version-script=$(CORE_DIR)/libretro/link.T
Same result.
Does the trace help you like that? Can i do something to give you more insight?
You goofed the debug build, since there are no symbols. Do make clean
and make DEBUG=1
. It shouldn't matter if RA is built with DEBUG=1, since it seems to explode in some core functions. Could be red herrings of course..
Apologies... I mean i did run make clean and make DEBUG=1, but i did it through Arch's packaging tool, which adds some flags that must have broken things.
I just did what i should have done in the first place. I removed that layer, did a clean clone, added my minimal changes and it works!
Now to finding the culprit. Again, apologies, who could have known :facepalm: and thank you! Have a good night...
Fyi, it was -fno-plt that broke it...
A quick tip for anybody who comes across: You can remove compiler flags like this: CFLAGS=${CFLAGS/ -fno-plt} (at least in bash)
A few days ago i switched from 32 to 64 bit. I got all the cores running, exept this one. I am compiling directly on the device. For that i added
to the Makefile.
When i try to run a game i get the following output:
followed directly by
I tried modifying my changes to the Makefile, but nothing worked and i do not really know what im doing or where to go from here.
Any help is greatly appreciated, Thank you!