apk-polkit-rs crashes when Software checks for updates
Describe your issue
What's the expected behaviour?
The Software app preinstalled with Phosh is able to fetch data from software repositories and check for updates.
What's the current behaviour?
Software is unable to fetch any repositories. It shows an error message, "The name dev.Cogitri.apkPolkit2 was not provided by any .service files". Whenever I check for updates, the apk-polkit-server
service crashes with a segmentation fault:
oneplus-fajita:~$ sudo /usr/libexec/apk-polkit/apk-polkit-server
[INFO] Starting server...
### on the phone, go to Software app and check for updates
[INFO] Updating repositories
fetch http://mirror.postmarketos.org/postmarketos/v23.12/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.19/community/aarch64/APKINDEX.tar.gz
Segmentation fault
When I try to run apk-polkit-server
under gdb
, it crashes with a SIGILL
in libcrypto.so.3
immediately, so I'm not able to reproduce the segfault there.
(gdb) run
Starting program: /usr/libexec/apk-polkit/apk-polkit-server
Program received signal SIGILL, Illegal instruction.
0x0000fffff7bae000 in ?? () from /lib/libcrypto.so.3
(gdb) bt
#0 0x0000fffff7bae000 in ?? () from /lib/libcrypto.so.3
#1 0x0000020000000000 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
How to reproduce your issue?
What device are you using?
oneplus-fajita
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v23.12
-
v23.06
(supported until 2024-01-18) -
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
GNOME Shell on Mobile -
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device
What's the build date of the image? (in yyyy-mm-dd format)
20240410 and 20240403
Additional information
I previously reported on the pmOS Matrix chat that the service was initially not running, however I think that's not true. The service is running on startup, but while troubleshooting I tried to check for updates multiple times and I think it crashed every time, supervise-daemon
restarted it five times and then gave up after respawn-max
was reached.
@pabloyoyoista You asked me to tag you when I made this issue :)