From owner-svn-src-head@freebsd.org Wed Jun 6 07:35:17 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FEB4FEAE97 for ; Wed, 6 Jun 2018 07:35:17 +0000 (UTC) (envelope-from eadler@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 12FE968A12 for ; Wed, 6 Jun 2018 07:35:17 +0000 (UTC) (envelope-from eadler@freebsd.org) Received: from mail-yw0-f181.google.com (mail-yw0-f181.google.com [209.85.161.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) (Authenticated sender: eadler) by smtp.freebsd.org (Postfix) with ESMTPSA id D007123EBE for ; Wed, 6 Jun 2018 07:35:16 +0000 (UTC) (envelope-from eadler@freebsd.org) Received: by mail-yw0-f181.google.com with SMTP id 81-v6so1583102ywb.6 for ; Wed, 06 Jun 2018 00:35:16 -0700 (PDT) X-Gm-Message-State: APt69E1tbKVapmZfLeVqXnUYLN3dkmFn+JLAXNTCKqWkL+ToXY2DuI5J ELMZwbSXkVMbi5/rKJpNjAfxw/MAbeQGLTK4NPTCmA== X-Google-Smtp-Source: ADUXVKJTrUlvIdsRAPYXKzPIpA5r9nzAbGDQn7dAFT2USeNuUDx7PLtthWwOWa48rzU/QrX0MiSQUkZh3m+4DiRxf4c= X-Received: by 2002:a81:b70b:: with SMTP id v11-v6mr844859ywh.182.1528270516245; Wed, 06 Jun 2018 00:35:16 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:ef50:0:0:0:0:0 with HTTP; Wed, 6 Jun 2018 00:34:45 -0700 (PDT) In-Reply-To: <2256597.yrYJmMiYOr@ralph.baldwin.cx> References: <201805231045.w4NAjWsv059104@repo.freebsd.org> <2256597.yrYJmMiYOr@ralph.baldwin.cx> From: Eitan Adler Date: Wed, 6 Jun 2018 00:34:45 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r334089 - head/sbin/dumpon To: John Baldwin Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jun 2018 07:35:17 -0000 On 23 May 2018 at 09:30, John Baldwin wrote: > On Wednesday, May 23, 2018 10:45:32 AM Eitan Adler wrote: >> Author: eadler >> Date: Wed May 23 10:45:32 2018 >> New Revision: 334089 >> URL: https://svnweb.freebsd.org/changeset/base/334089 >> >> Log: >> dumpon: point to better kernel debug symbols. >> >> The objdir is temporary, and the current example points to GENERIC. >> Instead point to the installed location of the debug symbols that are >> supposed to match the kernel you are using. >> >> PR: 223993 >> Submitted by: Trond.Endrestol@ximalas.info ... What do y'all think of something like: diff --git i/sbin/dumpon/dumpon.8 w/sbin/dumpon/dumpon.8 index fd271b5..28162af 100644 --- i/sbin/dumpon/dumpon.8 +++ w/sbin/dumpon/dumpon.8 @@ -311,15 +311,17 @@ The can be now examined using .Xr kgdb 1 : .Pp -.Dl # kgdb /usr/lib/debug/boot/kernel/kernel.debug vmcore.# +.Dl # kgdb /boot/kernel/kernel vmcore.# .Pp or shorter: .Pp -.Dl # kgdb -n # /usr/lib/debug/boot/kernel/kernel.debug +.Dl # kgdb -n # /boot/kernel/kernel .Pp The core was decrypted properly if .Xr kgdb 1 does not print any errors. +Note that the live kernel might be at a different path +which can be examined by looking at the kern.bootfile sysctl. .Sh SEE ALSO .Xr gzip 1 , .Xr kgdb 1 , -- Eitan Adler Source, Ports, Doc committer Bugmeister, Ports Security teams