Test Build 4) All debug symbols disabled

goal: show no zfs debug symbol activity happens either (along w/ other
debug symbol stuff)

- test packaging
- nothing built with debug symbols
- no debug package present
- no .gnu_debuglink section at all
- (no regressions)


Test packaging, debug symbols disabled at all (skipdbg=true).

The dkms-build script doesn't do any debug symbol work at all.

        II: dkms-build installing zfs into 
/home/ubuntu/dbgsym/unstable/debian/linux-modules-5.3.0-8-generic/lib/modules/5.3.0-8-generic/kernel/zfs
        signing zavl.ko
        signing znvpair.ko
        signing zunicode.ko
        signing zcommon.ko
        signing zfs.ko
        signing icp.ko
        signing zlua.ko
        signing spl.ko
        II: dkms-build build zfs complete

No debug sections are present in ZFS modules (as expected):

        $ objdump -h deb-modules/lib/modules/5.3.0-8-generic/kernel/zfs/zfs.ko 
| grep debug
        $

And the check for modules without debug symbols is not exercised (as
expected):

        $ grep WARNING build.log
        $

$ find deb-modules/ -name '*.ko' | wc -l
1000

$ find deb-modules/ -name '*.ko' | while read ko; do objdump -h -j 
.gnu_debuglink $ko >/dev/null 2>&1 || echo "Module without debug link '$ko'"; 
done | wc -l
1000

$ find deb-modules-extra/ -name '*.ko' | wc -l
4508

$ find deb-modules-extra/ -name '*.ko' | while read ko; do objdump -h -j 
.gnu_debuglink $ko >/dev/null 2>&1 || echo "Module without debug link '$ko'"; 
done | wc -l
4508


** Description changed:

  The ZFS kernel modules aren't built with debug symbols,
  which introduces problems/issues for debugging/support.
  
  Patches are required in:
  
  1) linux kernel packaging, to add infrastructure to
     enable/build/strip/package debug symbols on DKMS.
     (this is sufficient with zfs-linux now in Eoan.)
  
  2) zfs-linux and spl-linux, for the stable releases,
-    which need a few patches to enable debug symbols.
+    which need a few patches to enable debug symbols
+    (add option './configure --enable-debuginfo' and
+    '(ZFS|SPL)_DKMS_ENABLE_DEBUGINFO' to dkms.conf.)
  
  Initially submitting the kernel patchset for Unstable,
  for review/feedback.  It backports nicely into B/D/E,
  should it be accepted; for X (doesn't use DKMS builds)
  a simpler patch for the moment (until it does) works.
  
  The zfs/spl-linux patches are ready, to be submitted
  once the approach used by the kernel package settles.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1840704

Title:
  ZFS kernel modules lack debug symbols

Status in linux package in Ubuntu:
  In Progress

Bug description:
  The ZFS kernel modules aren't built with debug symbols,
  which introduces problems/issues for debugging/support.

  Patches are required in:

  1) linux kernel packaging, to add infrastructure to
     enable/build/strip/package debug symbols on DKMS.
     (this is sufficient with zfs-linux now in Eoan.)

  2) zfs-linux and spl-linux, for the stable releases,
     which need a few patches to enable debug symbols
     (add option './configure --enable-debuginfo' and
     '(ZFS|SPL)_DKMS_ENABLE_DEBUGINFO' to dkms.conf.)

  Initially submitting the kernel patchset for Unstable,
  for review/feedback.  It backports nicely into B/D/E,
  should it be accepted; for X (doesn't use DKMS builds)
  a simpler patch for the moment (until it does) works.

  The zfs/spl-linux patches are ready, to be submitted
  once the approach used by the kernel package settles.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1840704/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to