It's not related to the configure arguments, but to the linker flags.
The Ubuntu package build sets

  LDFLAGS="-Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects
-Wl,-z,relro -Wl,-z,now"

while Debian uses

  LDFLAGS="-Wl,-z,relro -Wl,-z,now"

lto seems to work, but dropping the "-Wl,-Bsymbolic-functions" makes it
work. But that was already enabled ages ago, at least since intrepid in
2008.

Reproduces with

  ./configure LDFLAGS="-Wl,-Bsymbolic-functions" --disable-gtk-docs 
--enable-lvm2 && make -j4
  sudo src/udisksd --debug --force-load-modules --replace


This is actually similar to bug #1286046 (fixed in 
https://launchpad.net/ubuntu/+source/parole/0.6.1-0ubuntu2) or 
https://github.com/fwupd/fwupd/issues/1077 -- in both cases, 
-Bsymbolic-functions got dropped to fix it.

Adding

  export DEB_LDFLAGS_MAINT_STRIP=-Wl,-Bsymbolic-functions


fixes it. I'm going to commit that to Debian, and upload.


** Bug watch added: github.com/fwupd/fwupd/issues #1077
   https://github.com/fwupd/fwupd/issues/1077

-- 
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

Reply via email to