View Single Post
edp17's Avatar
Posts: 607 | Thanked: 736 times | Joined on Jul 2019 @ UK
#256
Originally Posted by edp17 View Post
Question:
On the "lxc-attach -n Deb" command, I get the following error:

"Operation not permitted - Failed to rexec as memfd
free(): invalid pointer
Aborted"

Sfos 4.4 (On older versions it works.)

Has anybody experienced this?

Edit: strace log
Okay, I've played with this a bit more and found out that sfos updates also install newer version of lxc packages (more precisely: lxc-libs, lxc-templates & lxc).
On sfos 4.2 and 4.3 the lxc version 3.0.1 were installed. However, sfos 4.4 upgrade did install lxc version 4.0.10. This was the point when the lxc-attach started crashing.
It seems my kernel has got some missing elements therefore the newer than 3.0.1 version of lxc-attach has stopped working.

There were two ways to solve this issue.
1. backport all necessary kernel/device changes for supporting that memfd
2. install older version of lxc packages and try how they work on the newer sfos version

The first option would the best and comprehensive as it will ensure compatibility with newer lxc versions. However, it can be challenging and time consuming. Therefore I've chosen the second option.
I downloaded those lxc packages from older sfos version of jolla repositories and tested them.
The latest 3.0.1 version (3.0.1+git4-1.4.3) from this repo works well even on sfos 4.6.:
Code:
https://releases.jolla.com/releases/4.3.0.15/jolla/armv7hl/

Last edited by edp17; 2024-09-25 at 12:11.
 

The Following 3 Users Say Thank You to edp17 For This Useful Post: