From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id BA17C7543B for ; Sat, 5 Jun 2021 04:19:09 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id A2FF222406 for ; Sat, 5 Jun 2021 04:18:39 +0200 (CEST) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B9061223F1 for ; Sat, 5 Jun 2021 04:18:35 +0200 (CEST) Received: by mail-lf1-x133.google.com with SMTP id i10so16854564lfj.2 for ; Fri, 04 Jun 2021 19:18:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=swJdeRlA+xumf8NQ+ChHDZisDOcIx1Ql5ex3KOTPo4c=; b=sl1tRSUgnV+Bs6KHAyT6qSr/XqvSvDE57Q/yXn6PlrPqC3EmKXrePYKmNIcTRmGQzC gkAvPSXq7sPleqjSZUD5zXhr9JrzyWiCLF67I9b6dp5NeV63NQkIzikOzwfqZ7PHrKt8 Sfri504nL35eflZybGeosfInFCzuNZidHW9azS6V8FH0xWBZZv1M9G+unSvDXowGDfzO ZjNxwI/ohLYVzavkpa3217mwTifcBN23swOTCQEZ2aqvaz9kSszZXvu8j22xK9XDjPYj 0vbNM0kzf3f2fqKaxnJkUz4KCI0liRj0D9MNBZgl/7nm5UsZIfbAQ4rtk4gEeknIugTp daRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=swJdeRlA+xumf8NQ+ChHDZisDOcIx1Ql5ex3KOTPo4c=; b=XTal+kqqL0QjclsmMbAMpZBAi2YwdpY7Cks1CylhQLmHUKUbeNitRmtroaprsj5xcr qxnWtxa9lkT8FOQHjx1SdB51VcT1BOd6siNPDInMRYqQmYyE5UASYM6mkQ3prKy6Olhy eCbB5v2wQ5r2ic0q/DVxPAvHOqW1oKNtlQgWFFIZ3Wcu6xYFeMIoAIaRgCB9IWn1zgQ9 mYv1Y5twqInbLolsUuPJXN4mR3mIqpQzgjUyg4z3XVWdjjTqKCfRoHsGy27KGjbL4x/4 Q5hSR+qnmwflbt6ZAzrEcEfzkRO3IvqZPLj7s87+1a7ECZBvgedJtG50Ec0ru64i2SPP V7EA== X-Gm-Message-State: AOAM530pv0BZ6rLzK+ICSt4FCKJF3O3cvmg5qkPVenqrgtCCyuf+YvmD Hir6FjZb5LA9ELjxWNIkQHciaakKzYySwcC0N/ZoXIjyigY= X-Google-Smtp-Source: ABdhPJwL4oNCJC229+FJrfU+SccZJmU0HnTh/tGt4mEnsgwtfn1jVEPXCopr5/Vh+y86I2s+oNNYGQgtccEzBNuJP3w= X-Received: by 2002:a05:6512:68b:: with SMTP id t11mr4620574lfe.198.1622859508561; Fri, 04 Jun 2021 19:18:28 -0700 (PDT) MIME-Version: 1.0 From: Nathan L Date: Fri, 4 Jun 2021 20:18:15 -0600 Message-ID: To: pve-devel@lists.proxmox.com X-SPAM-LEVEL: Spam detection results: 0 DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain FREEMAIL_ENVFROM_END_DIGIT 0.25 Envelope-from freemail username ends in digit FREEMAIL_FROM 0.001 Sender email is commonly abused enduser mail provider HTML_MESSAGE 0.001 HTML included in message KAM_SHORT 0.001 Use of a URL Shortener for very short URL RCVD_IN_DNSWL_NONE -0.0001 Sender listed at https://www.dnswl.org/, no trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [gnu.org] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: [pve-devel] How to compile pve-kernel with debug info? X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2021 02:19:09 -0000 Hello, I'm trying to open a kdump crash dump using the 'crash' tool but I think I need a version of vmlinux with debug info included in order to do this. It sounds like this isn't published so I believe I need to recompile the same kernel version to get a version that includes the debug info. I'm currently running kernel 5.4.114-1-pve so I've cloned the pve-kernel git repo and checked out the commit ee60bb7ce033f8d44e29ac1f1ec50dee836c6742 for "update ABI file for 5.4.114-1-pve" under the pve-kernel-5.4 branch. With this, I'm able to run 'make' and successfully recompile the kernel and produce 'pve-kernel-5.4.114-1-pve_5.4.114-1_amd64.deb'. root@hostname:~/pve-kernel# file build/debian/pve-kernel-5.4.114-1-pve/boot/vmlinuz-5.4.114-1-pve build/debian/pve-kernel-5.4.114-1-pve/boot/vmlinuz-5.4.114-1-pve: Linux kernel x86 boot executable bzImage, version 5.4.114-1-pve (root@hostname) #1 SMP PVE 5.4.114-1 (Sun, 09 May 2021 17:13:05 +0200), RO-rootFS, swap_dev 0xB, Normal VGA root@hostname:~/pve-kernel# uname -a Linux hostname 5.4.114-1-pve #1 SMP PVE 5.4.114-1 (Sun, 09 May 2021 17:13:05 +0200) x86_64 GNU/Linux My issue is, when I attempt to run crash using the compiled vmlinux file, I receive the following: root@hostname:~/pve-kernel# crash ~/pve-kernel/build/ubuntu-focal/vmlinux /var/crash/202106021922/dump.202106021922 crash 7.2.5 Copyright (C) 2002-2019 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 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 [840MB]: patching 114251 gdb minimal_symbol values WARNING: kernel version inconsistency between vmlinux and dumpfile crash: seek error: kernel virtual address: ffff905a5f606024 type: "tss_struct ist array" Lots of questions that probably all have the same answer: - What am I missing here? - Should I not use the compiled vmlinux file at ./build/ubuntu-focal/vmlinux? - Is there a flag I need to change or add somewhere to properly compile a version of the kernel I can use with crash? - Is there a difference between the vmlinux file in the build/ubuntu-focal directory vs what I could extract from the vmlinuz file in the build/debian directory? The latter had the debug info stripped when I extracted it. Thanks in advance, Nathan