Raspberry PI - failed to map segment from shared object

Your dynamic linker failed to load sys.so. Does your user have execution permission for that shared library?

See here for more info:
https://unix.stackexchange.com/questions/496292/what-does-a-failed-to-map-segment-from-shared-object-error-mean

I’m not familiar with Raspberry Pis, but this link suggests that only root and the pi user have execution permissions in that directory by default:
How to create the /media/pi folder with correct permissions? - Raspberry Pi Forums