Tested in dump file form in ppc64el; working.

ppc64el
-------

vm

        SERIES=noble
        ARCH=ppc64el
        DISK=${SERIES}_${ARCH}.qcow2

        wget 
https://cloud-images.ubuntu.com/$SERIES/current/${SERIES}-server-cloudimg-${ARCH}.img
        qemu-img create -F qcow2 -b ${SERIES}-server-cloudimg-${ARCH}.img -f 
qcow2 $DISK 8G

        sudo apt install -y qemu-system-ppc

        qemu-system-ppc64 \
          -machine pseries -cpu POWER10 \
        \
        -smp cpus=2 -m 2048 \
        -nodefaults -no-user-config \
        -nographic -serial stdio \
        \
        -drive file=$DISK,if=none,id=drive0 \
        -device virtio-blk,drive=drive0 \
        \
        -drive file=test-cidata.iso,media=cdrom \
        \
        -netdev user,hostfwd=::22223-:22,id=net0 \
        -device virtio-net,netdev=net0

        $ ssh ubuntu@127.0.0.1 -p 22223

        $ lsb_release -cs
        No LSB modules are available.
        noble

        $ uname -m
        ppc64le

        $ uname -rv
        6.5.0-9-generic #9-Ubuntu SMP Fri Oct  6 20:21:54 UTC 2023

kdump-tools

        sudo apt update && sudo apt install -y linux-crashdump # No, Yes
        sudo sed 's/crashkernel=[^" ]\+/crashkernel=512M/' -i 
/etc/default/grub.d/kdump-tools.cfg
        sudo update-grub && sudo reboot

        ...

        $ sudo dmesg | grep 'crashkernel.*RAM'
        [    0.000000] Reserving 512MB of memory at 512MB for crashkernel 
(System RAM: 2048MB)


        $ sudo kdump-config status
        current state   : ready to kdump

crashdump

        $ echo c | sudo tee /proc/sysrq-trigger

        $ find /var/crash
        /var/crash
        /var/crash/202401082101
        /var/crash/202401082101/dmesg.202401082101
        /var/crash/202401082101/dump.202401082101
        /var/crash/kexec_cmd
        /var/crash/kdump_lock


debug symbols

        dpkg -l | awk '$2 ~ /linux-image-[0-9.-]+-generic/ { print $2, $3}' \
          | while read pkg version; do \
              dbgpkg="${pkg}-dbgsym"; \
              arch=$(dpkg --print-architecture); \
              wget 
"https://launchpad.net/ubuntu/+archive/primary/+files/${dbgpkg}_${version}_${arch}.ddeb";;
 \
            done

        ar p linux-image-*-dbgsym_*.ddeb data.tar.xz | tar xJ
--wildcards './usr/lib/debug/boot/vmlinux-*-generic'

crash

        sudo add-apt-repository -y ppa:mfo/lp2047861-noble-crash && sudo
apt install -y crash

        $ dpkg -s crash | grep Version:
        Version: 8.0.4-1ubuntu1

        $ crash ./usr/lib/debug/boot/vmlinux-*-generic /var/crash/*/dump.*
        ...
              KERNEL: ./usr/lib/debug/boot/vmlinux-6.6.0-14-generic
            DUMPFILE: /var/crash/202401082101/dump.202401082101  [PARTIAL DUMP]
                CPUS: 2
                DATE: Mon Jan  8 21:00:05 UTC 2024
              UPTIME: 00:20:30
        LOAD AVERAGE: 0.12, 0.15, 0.39
               TASKS: 140
            NODENAME: test
             RELEASE: 6.6.0-14-generic
             VERSION: #14-Ubuntu SMP Thu Nov 30 10:29:25 UTC 2023
             MACHINE: ppc64le  (1000 Mhz)
              MEMORY: 2 GB
               PANIC: "Kernel panic - not syncing: sysrq triggered crash"
                 PID: 1174
             COMMAND: "tee"
                TASK: c000000047f89900  [THREAD_INFO: c000000047f89900]
                 CPU: 1
               STATE: TASK_RUNNING (PANIC)

        crash> bt
        PID: 1174     TASK: c000000047f89900  CPU: 1    COMMAND: "tee"
         R0:  c000000000305af8    R1:  c000000047df7890    R2:  c000000002162b00
         R3:  c000000047df78a8    R4:  0000000000000000    R5:  0000000000000000
         R6:  c000000047df7a58    R7:  0000000000000000    R8:  0000000000000001
         R9:  c00000000ec87000    R10: 0000000000000000    R11: 0000000000000000
         R12: 0000000000000000    R13: c00000007fffee80    R14: 0000000000000000
         R15: ffffffffffffdfc4    R16: 0000182cb62e2458    R17: 0000000000000080
         R18: 0000008100000000    R19: 00007fffe1a2c5d8    R20: 00007fffe1a2c5a0
         R21: 0000000000000000    R22: 0000000000000002    R23: 0000000000000001
         R24: c000000003aa0390    R25: 0000000000000000    R26: 0000000000000004
         R27: c0000000038a4a20    R28: c000000003cbace0    R29: c000000003cbad20
         R30: c000000003d12b00    R31: 0000000000000000
         NIP: c000000000303904    MSR: 8000000000009033    OR3: 0000000000000000
         CTR: 0000000000000000    LR:  c000000000305af8    XER: 0000000020040004
         CCR: 0000000024048200    MQ:  0000000000000001    DAR: 0000000000000000
         DSISR: 0000000000000000     Syscall Result: 0000000000000000
         [NIP  : crash_setup_regs+84]
         [LR   : __crash_kexec+152]
         #0 [c000000047df7890] crash_setup_regs at c000000000303904
        crash> quit

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

Title:
   Merge crash 8.0.4-1 into Noble

Status in crash package in Ubuntu:
  In Progress

Bug description:
  $ rmadison -a source crash | grep noble
   crash | 8.0.3+ds1-3ubuntu1     | noble          | source

  $ rmadison -a source -u debian -s unstable crash
  crash      | 8.0.4-1       | unstable   | source

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/crash/+bug/2047861/+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