[Bug 2018128] Re: Apport does not collect all logs when the package is HWE kernel (or any derivative)
Juerg Haefliger
2018128 at bugs.launchpad.net
Wed Mar 5 11:00:04 UTC 2025
I cannot possible test all newly added kernel source packages. Focus on
linux-latency and verify that additional kernel data (dmesg) is
collected.
1) Test current behavior
Oracular with current linux-base/4.5ubuntu9:
$ sudo ubuntu-bug linux-lowlatency
<snip>
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.linux-lowlatency.4q4_bmtk.apport
$ sudo grep -A 10 -i dmesg /tmp/apport.linux-lowlatency.4q4_bmtk.apport
$
Kernel log is *not* collected.
2) Install linux-base/4.5ubuntu9.1 from oracular-proposed
$ apt-cache policy linux-base
linux-base:
Installed: 4.5ubuntu9.1
Candidate: 4.5ubuntu9.1
Version table:
*** 4.5ubuntu9.1 100
100 http://archive.ubuntu.com/ubuntu oracular-proposed/main amd64 Packages
100 /var/lib/dpkg/status
4.5ubuntu9 500
500 http://archive.ubuntu.com/ubuntu oracular/main amd64 Packages
3) Test new behavior
$ sudo ubuntu-bug linux-lowlatency
<snip>
*** Collecting problem information
Please choose (S/V/K/I/C): k
Problem report file: /tmp/apport.linux-lowlatency.gjzw1v0t.apport
$ sudo grep -A 10 -i dmesg /tmp/apport.linux-lowlatency.gjzw1v0t.apport
CurrentDmesg:
[ 0.000000] Linux version 6.11.0-1008-lowlatency (buildd at lcy02-amd64-008) (x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2) 14.2.0, GNU ld (GNU Binutils for Ubuntu) 2.43.1) #8-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 21 08:52:50 UTC 2025 (Ubuntu 6.11.0-1008.8-lowlatency 6.11.0)
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-6.11.0-1008-lowlatency root=UUID=5fb8ff06-3d27-4b96-ae3f-6928bcb96416 ro console=tty1 console=ttyS0
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
Kernel log is now collected.
** Tags added: verification-done-oracular
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/2018128
Title:
Apport does not collect all logs when the package is HWE kernel (or
any derivative)
Status in apport package in Ubuntu:
Fix Released
Status in linux package in Ubuntu:
Invalid
Status in linux-base package in Ubuntu:
Fix Released
Status in linux-base source package in Jammy:
New
Status in linux-base source package in Noble:
New
Status in linux-base source package in Oracular:
Fix Committed
Bug description:
[ Impact ]
Ubuntu 22.04 LTS with kernel 5.19.0-41-generic
When filing bugs against the package 'linux' apport collects all the logs needed
to the kernel
But in case the user is not on stock kernel anymore and has the HWE kernel
apport only imports 2 logs Dependencies.txt + ProcCpuInfoMinimal.txt
and forwards the package 'linux' towards linux-signed-hwe-5.19 (in my
case)
would it be possible to make apport collect all the logs needed in all
kernel cases?
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: apport 2.20.11-0ubuntu82.4
ProcVersionSignature: Ubuntu 5.19.0-41.42~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-41-generic x86_64
ApportLog:
ApportVersion: 2.20.11-0ubuntu82.4
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 29 05:25:30 2023
PackageArchitecture: all
SourcePackage: apport
UpgradeStatus: No upgrade log present (probably fresh install)
[ Test Plan ]
Install a derivative kernel, run 'ubuntu-bug linux-<foo>' and check
that all necessary logs are collected.
[ Where Problems Could Occur ]
The fix adds additional source package hooks and removes some stale
ones. Potential issue are log collection/upload problems.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2018128/+subscriptions
More information about the foundations-bugs
mailing list