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

Snap fails on ARM64 architecture (Error: bad light userdata pointer) #6

Open
dstan82 opened this issue Feb 4, 2020 · 12 comments
Open

Comments

@dstan82
Copy link

dstan82 commented Feb 4, 2020

EDIT: Refer #6 (comment) for the exact problem.

I'm trying to run it from Raspberry Pi 3 with Ubuntu Mate:

Linux rp3b2-inc 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l armv7l armv7l GNU/Linux

snap run mari0
cannot apply seccomp profile: Invalid argument

any idea ?

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 4, 2020

Please run the snap version command in a terminal and paste the output.

@dstan82
Copy link
Author

dstan82 commented Feb 4, 2020

dragos@rp3b2-inc:~$ snap version
snap    2.42.5
snapd   2.42.5
series  16
ubuntu  16.04
kernel  4.4.38-v7+

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 4, 2020

kernel 4.4.38-v7+

This kernel distribution lacks features required for snap apps to function, refer: Cannot apply seccomp profile using hello-world - other - snapcraft.io, according to the discussion thread you should use the kernel shipped by the linux-raspi2 package instead.

@dstan82
Copy link
Author

dstan82 commented Feb 5, 2020

Well, i changed to latest Ubuntu for Pi 3, still no luck :| :

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 5.3.0-1017-raspi2 #19-Ubuntu SMP Thu Jan 16 18:25:50 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu:~$ snap version 
snap    2.42.5
snapd   2.42.5
series  16
ubuntu  19.10
kernel  5.3.0-1017-raspi2
ubuntu@ubuntu:~$ mari0 
Error: bad light userdata pointer
stack traceback:
	[string "boot.lua"]:637: in function <[string "boot.lua"]:633>
	[C]: at 0xffff947060d4
	[C]: in function 'require'
	[string "boot.lua"]:416: in function <[string "boot.lua"]:311>
	[C]: in function 'xpcall'
	[string "boot.lua"]:645: in function <[string "boot.lua"]:639>
	[C]: in function 'xpcall'
ubuntu@ubuntu:~$ 

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 5, 2020

The problem seems to be in LuaJIT: fix lightud for 48bit virtual address by zhongweiy · Pull Request #230 · LuaJIT/LuaJIT, I'll check if there's anything can be done to deal this.

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 5, 2020

The fix in the corresponding LOVE game engine:
rude / love / commit / 7bbb7c17ad28 — Bitbucket, which is landed in version 11.3.

I can try to build a version for it, however the new version may not be compatible with Mari0 thus no guarantees.

@dstan82
Copy link
Author

dstan82 commented Feb 5, 2020

Thanks, i think i'll try another distro, maybe Ubuntu Mate with raspi2 kernel.
Ubuntu server + xubuntu-desktop moves incredibly slow on Raspberry 3...

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 5, 2020

This is a bug in the snap's dependencies, I doubt it will be resolved by switching a distro. Feel free to try though.

@brlin-tw brlin-tw changed the title Raspberry Pi 3 Snap fails on ARM64 architecture (Error: bad light userdata pointer) Feb 5, 2020
@dstan82
Copy link
Author

dstan82 commented Feb 5, 2020

Ok, i changed to Ubuntu Mate 18.04.2 (Bionic)

delivery@delivery-desktop:~$ uname -a
Linux delivery-desktop 4.15.0-1032-raspi2 #34-Ubuntu SMP PREEMPT Wed Feb 6 11:50:42 UTC 2019 armv7l armv7l armv7l GNU/Linux
delivery@delivery-desktop:~$ snap version 
snap    2.42.5
snapd   2.42.5
series  16
ubuntu  18.04
kernel  4.15.0-1032-raspi2

Now it's working.

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 5, 2020

👍 Cheers!

@brlin-tw
Copy link
Owner

brlin-tw commented Feb 5, 2020

armv7l armv7l armv7l

I noticed that you've switched to a 32 bit distro, that explains why the snap is functional after the switch.

@dstan82
Copy link
Author

dstan82 commented Feb 5, 2020

yes i did. cheers!

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