It's a bit easier to investigate with
/usr/libexec/udisks2/udisksd --debug --force-load-modules
There I've1 also seen it fail on the btrfs module, so it's not specific
to the LVM one.
It also happens with rebuilding the udisks source package (so not just
changed ABI)
I tried building upstream git, but it fails due to some missing API,
like
udiskslinuxmodulelvm2.c:438:29: error: implicit declaration of function
'udisks_logical_volume_get_uuid' [-Werror=implicit-function-declaration]
presumably libblockdev or some other build dep which moved along?
Anyway, this doesn't happen on Debian, and it's certainly not related to
the current Ubuntu delta. So something in the stack must be different.
glib2.0 would be the obvious candidate, but both Debian sid and Ubuntu
noble have 2.78.1-4.
For investigating it is helpful to load the modules from the source
tree:
--- src/udisksmodulemanager.c.orig 2023-12-04 10:20:54.571542454 +0000
+++ src/udisksmodulemanager.c 2023-12-04 10:21:01.047569622 +0000
@@ -637,7 +637,7 @@
udisks_module_manager_new (UDisksDaemon *daemon)
{
return UDISKS_MODULE_MANAGER (g_object_new (UDISKS_TYPE_MODULE_MANAGER,
- "daemon", daemon, NULL));
+ "daemon", daemon, "uninstalled",
TRUE, NULL));
}
/**
and then
sudo ./src/udisksd --debug --force-load-modules
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to udisks2 in Ubuntu.
https://bugs.launchpad.net/bugs/2040488
Title:
loading lvm2 module crashes: udisks_module_lvm2_new: assertion
'UDISKS_IS_DAEMON (daemon)' failed
Status in udisks2 package in Ubuntu:
New
Status in udisks2 source package in Mantic:
New
Bug description:
I tried to do this with `apport-cli
/var/crash/_usr_libexec_udisks2_udisksd.0.crash`, but 's'ending
doesn't do anything obvious. I run this from a cloud image over ssh, I
really don't have any GUI. So filing this manually.
Trying to load the lvm2 module crashes udisks immediately:
busctl call org.freedesktop.UDisks2
/org/freedesktop/UDisks2/Manager org.freedesktop.UDisks2.Manager
EnableModule sb lvm2 true
udisksd[5709]: cannot register existing type 'UDisksDaemon'
udisksd[5709]: g_once_init_leave: assertion 'result != 0' failed
udisksd[5709]: udisks_module_lvm2_new: assertion 'UDISKS_IS_DAEMON (daemon)'
failed
systemd[1]: Started [email protected] - Process Core Dump
(PID 5767/UID 0).
Module libudev.so.1 from deb
systemd-253.5-1ubuntu6.amd64
Module libsystemd.so.0 from
deb systemd-253.5-1ubuntu6.amd64
Stack trace of thread 5709:
#0 0x000056079be701ad
udisks_module_manager_load_modules (udisksd + 0x601ad)
#1 0x000056079be5fdf5 n/a
(udisksd + 0x4fdf5)
#2 0x00007f7d5f122a11 n/a
(libglib-2.0.so.0 + 0x5aa11)
#3 0x00007f7d5f17e46f n/a
(libglib-2.0.so.0 + 0xb646f)
#4 0x00007f7d5f12346f
g_main_loop_run (libglib-2.0.so.0 + 0x5b46f)
#5 0x000056079be323d2 main
(udisksd + 0x223d2)
#6 0x00007f7d5ee280d0
__libc_start_call_main (libc.so.6 + 0x280d0)
#7 0x00007f7d5ee28189
__libc_start_main_impl (libc.so.6 + 0x28189)
#8 0x000056079be324f5 _start
(udisksd + 0x224f5)
ProblemType: Crash
Architecture: amd64
Date: Wed Oct 25 12:13:14 2023
DistroRelease: Ubuntu 23.10
ExecutablePath: /usr/libexec/udisks2/udisksd
Package: udisks2 2.10.1-1ubuntu1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/2040488/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp