Comment 2 for bug 2040488

Revision history for this message
Martin Pitt (pitti) wrote (last edit ):

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

DEB_BUILD_OPTIONS=nostrip CFLAGS="-g -O0" dpkg-buildpackage -us -uc -b -j4 -Pnodoc

for iterating:

make && sudo G_DEBUG=fatal-criticals LD_LIBRARY_PATH=udisks/.libs/ gdb --args src/.libs/udisksd --debug --force-load-modules