Please try this and give us a feedback:
https://github.com/lian-bo/crash-gdb10.2-devel-temp

On 7/28/21, 1:23 PM, "Alexey Makhalov" <[email protected]> wrote:

    DWARF-5 support was added in GDB-8.0. There GDB update to version 10.2 is 
going
    on right now. It will solve the issue of kernels built with dwarf-5 
debuginfo.

    Thanks,
    --Alexey

    On 7/28/21, 11:14 AM, "[email protected] on behalf of David 
Wysochanski" <[email protected] on behalf of 
[email protected]> wrote:

        On Wed, Apr 28, 2021 at 8:54 AM lijiang <[email protected]> wrote:
        >
        > 在 2021年04月26日 19:17, [email protected] 写道:
        > > Message: 3
        > > Date: Mon, 26 Apr 2021 11:27:40 +0300
        > > From: Vasily Averin <[email protected]>
        > > To: [email protected]
        > > Subject: [Crash-utility] crash does not work with last fedora 
kernels?
        > > Message-ID: <[email protected]>
        > > Content-Type: text/plain; charset=utf-8
        > >
        > > It looks like Fedora kernels uses gcc11 and generates debuginfo in 
DWARF 5 format.
        > >
        > > [root@localhost ~]# rpm -q crash
        > > crash-7.2.9-5.fc35.x86_64
        > > [root@localhost ~]# uname -a
        > > Linux localhost.localdomain 5.11.12-300.fc34.x86_64 #1 SMP Wed Apr 
7 16:31:13 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
        > >
        > >
        > > [root@localhost ~]# crash -1
        > > Dwarf Error: wrong version in compilation unit header (is 5, should 
be 2, 3, or 4) [in module 
/usr/lib/debug/usr/lib/modules/5.11.12-300.fc34.x86_64/vmlinux]
        > > crash: gdb_session_init: pulling in debug data by accessing 
init_mm.mmap
        > > Dwarf Error: wrong version in compilation unit header (is 5, should 
be 2, 3, or 4) [in module 
/usr/lib/debug/usr/lib/modules/5.11.12-300.fc34.x86_64/vmlinux]
        > >
        > > crash: /usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux: 
no debugging data available
        > >
        > > [root@localhost ~]# ls -al 
/usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux
        > > -rwxr-xr-x. 1 root root 679679112 Apr  7 20:14 
/usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux
        > > [root@localhost ~]# rpm -qf 
/usr/lib/debug/lib/modules/5.11.12-300.fc34.x86_64/vmlinux
        > > kernel-debuginfo-5.11.12-300.fc34.x86_64
        > >
        > > NB: last fc35 does not work too.
        > >
        >
        > Thank you for reporting this issue, Vasily.
        >
        > The DWARF-5 caused this failure. I will have a look and try to handle 
this issue later.
        >
        > Thanks.
        > Lianbo
        >

        What's the status of this issue?  Is this due to needing updated
        embedded gdb or something else?


        --
        Crash-utility mailing list
        [email protected]
        
https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistman.redhat.com%2Fmailman%2Flistinfo%2Fcrash-utility&amp;data=04%7C01%7Camakhalov%40vmware.com%7C8d26f5842b154772d90408d951f382b3%7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C1%7C637630928577967777%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=BVOnPv%2Fv5iR2IS%2BF3Algps7Lg7f%2BMis2MQVa5fgwyr8%3D&amp;reserved=0



--
Crash-utility mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/crash-utility

Reply via email to