Package: crash
Version: 7.2.3+real-2
Severity: normal
Tags: upstream

Dear Maintainer,

I experienced a crash with kdump-tools installed and wanted to
report that crash (#919290).
I tried to have a look at the collected core and found that crash
gives an error message and exits (see below).

This seems to be caused by recent changes in the current 4.19 series.
As it looks like this may get the next stable kernel it would
be nice if crash could analyze cores from that kernel.

Upstream seem to have some fixes for 4.19 kernels [1].

I made a local build with [2] and [3] applied,
and it did not fail anymore.

Kind regards,
Bernhard


[1] https://people.redhat.com/anderson/crash.changelog.html
[2] 
https://github.com/crash-utility/crash/commit/d7eec45d4c2cdd836ce48a81b0ae688a7d2879ba
[3] 
https://github.com/crash-utility/crash/commit/001f77a05585c15ebd14bb72d5fde314a63c06fe


Output of failing "crash":

    $ crash /usr/lib/debug/lib/modules/4.19.0-1-amd64/vmlinux 
/var/crash/201901141532/dump.201901141532

    crash 7.2.3
    Copyright (C) 2002-2017  Red Hat, Inc.
    Copyright (C) 2004, 2005, 2006, 2010  IBM Corporation
    Copyright (C) 1999-2006  Hewlett-Packard Co
    Copyright (C) 2005, 2006, 2011, 2012  Fujitsu Limited
    Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
    Copyright (C) 2005, 2011  NEC Corporation
    Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
    Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
    This program is free software, covered by the GNU General Public License,
    and you are welcome to change it and/or distribute copies of it under
    certain conditions.  Enter "help copying" to see the conditions.
    This program has absolutely no warranty.  Enter "help warranty" for details.
    
    GNU gdb (GDB) 7.6
    Copyright (C) 2013 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later 
<http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-unknown-linux-gnu"...

    WARNING: kernel relocated [126MB]: patching 81344 gdb minimal_symbol values

    please wait... (gathering module symbol data)                          
    crash: invalid kernel virtual address: 68fffffb10  type: "module symbol 
strings"
    buf_1K_used: 466
    buf_2K_used: 1
    buf_4K_used: 1
    buf_8K_used: 0
    buf_32K_used: 3
        buf_1K_ovf: 0
        buf_2K_ovf: 0
        buf_4K_ovf: 0
        buf_8K_ovf: 0
    buf_32K_ovf: 0
    buf_1K_maxuse:  2 of 10
    buf_2K_maxuse:  1 of 10
    buf_4K_maxuse:  1 of 5
    buf_8K_maxuse:  0 of 5
    buf_32K_maxuse:  1 of 1
    buf_inuse[5]: [3][0][0][0][0]
        smallest: 32
        largest: 7483468619598196139
        embedded: 3
    max_embedded: 3
        mallocs: 2
            frees: 2
        reqs/total: 474/7483468636778302464
    average size: 15787908516409920

    crash: cannot allocate any more memory!



Local rebuild:

    mkdir /tmp/source/crash/orig -p
    cd    /tmp/source/crash/orig
    apt source crash
    cd


    cd /tmp/source/crash
    cp orig try1 -a
    cd try1/crash-7.2.3+real/
    wget 
https://github.com/crash-utility/crash/commit/d7eec45d4c2cdd836ce48a81b0ae688a7d2879ba.patch
 -O debian/patches/d7eec45d4c2cdd836ce48a81b0ae688a7d2879ba.patch
    wget 
https://github.com/crash-utility/crash/commit/001f77a05585c15ebd14bb72d5fde314a63c06fe.patch
 -O debian/patches/001f77a05585c15ebd14bb72d5fde314a63c06fe.patch
    echo d7eec45d4c2cdd836ce48a81b0ae688a7d2879ba.patch >> debian/patches/series
    echo 001f77a05585c15ebd14bb72d5fde314a63c06fe.patch >> debian/patches/series
    quilt push -f
    # d7eec45d4c2cdd836ce48a81b0ae688a7d2879ba.patch does not apply cleanly ...
    quilt refresh
    quilt push
    quilt refresh
    dch --local bernhard "+4.19-fixes"

    export PKG="binutils-dev liblzo2-dev libsnappy-dev"; apt install $PKG; 
apt-mark auto $PKG

    dpkg-buildpackage


    dpkg -i crash_7.2.3+real-2bernhard1_amd64.deb




-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/16 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE= 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages crash depends on:
ii  binutils      2.31.1-11
ii  libc6         2.28-4
ii  liblzo2-2     2.10-0.1
ii  libncurses6   6.1+20181013-1
ii  libsnappy1v5  1.1.7-1
ii  libtinfo6     6.1+20181013-1
ii  zlib1g        1:1.2.11.dfsg-1

crash recommends no packages.

Versions of packages crash suggests:
ii  kexec-tools   1:2.0.16-1
ii  makedumpfile  1:1.6.5-1

-- no debconf information

Reply via email to