Bus error/Aligment trap for .elf on Recalbox 9.1 Pulstar
Just noticed, while attempting to get MakeCode Arcade games running on Recalbox v9, that a compiled ARM Linux .elf game file crashes abruptly with the error: Bus error
Dmesg right afterwards gives:
[ 59.510961] Alignment trap: not handling instruction f4420a1f at [<76cd0284>]
[ 59.510985] 8<--- cut here ---
[ 59.511000] Unhandled fault: alignment exception (0x801) at 0x7ed9793c
[ 59.511014] pgd = fdb2be65
[ 59.511029] [7ed9793c] *pgd=04b61835, *pte=0427e75f, *ppte=0427ec7f
It is a buildroot system running on a RPi Zero 2W inside a GPi Case(no. 1, originally for the first Zero), from uname -a:
Linux RECALBOXGPI 5.15.92-v7 #1 SMP Sat Jun 17 10:39:53 CEST 2023 armv7l GNU/Linux
The file I am attempting to run is an old .elf of Jumpy Platformer which I have used with success on counless other RPi systems before and recently tested OK on other systems:
arcade-jumpy-platformer.elf: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.26, BuildID[sha1]=1345002c7e1eb0f7585105314513524afbaf24dd, stripped
{"compression":"LZMA","headerSize":158,"textSize":278452,"name":"jumpy platformer","eURL":"https://arcade.makecode.com/","eVER":"1.3.20","pxtTarget":"arcade"}]
I am a little at a loss here, thought all RPis were binary compatible, alsa seems to be present at position 0:0. I can’t find anything out of the ordinary, and will of course test the same distribution on other hardware etc.
If any of this rings an immediate bell in the @MakeCode team or for others on this forum, any help or hint on what the problem might be and how to proceed is greatly welcomed!