From owner-freebsd-stable@freebsd.org Wed Nov 7 00:54:04 2018 Return-Path: Delivered-To: freebsd-stable@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 20F651107704 for ; Wed, 7 Nov 2018 00:54:04 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 9B741792AB for ; Wed, 7 Nov 2018 00:54:03 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: by mailman.ysv.freebsd.org (Postfix) id 5FE381107702; Wed, 7 Nov 2018 00:54:03 +0000 (UTC) Delivered-To: stable@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 4E9F01107701 for ; Wed, 7 Nov 2018 00:54:03 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [140.82.23.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.nomadlogic.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AF071792A9 for ; Wed, 7 Nov 2018 00:54:02 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.190] (cpe-23-243-162-239.socal.res.rr.com [23.243.162.239]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 84a67688 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO; Tue, 6 Nov 2018 16:54:01 -0800 (PST) Subject: Re: How do you boot the debug kernel installed from kernel-dbg.txz? To: Rainer Duffner Cc: stable@freebsd.org References: <9f460694-5ce6-132e-e0cc-6b7d01e36f2d@nomadlogic.org> <30B2CF5C-51A6-457E-9192-DC6C4C62A769@ultra-secure.de> From: Pete Wright Message-ID: Date: Tue, 6 Nov 2018 16:54:00 -0800 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <30B2CF5C-51A6-457E-9192-DC6C4C62A769@ultra-secure.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 9B741792AB X-Spamd-Result: default: False [-5.63 / 200.00]; ARC_NA(0.00)[]; R_SPF_FAIL(0.00)[-all]; RCVD_COUNT_FIVE(0.00)[5]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; FORWARDED(0.00)[stable@mailman.ysv.freebsd.org]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[nomadlogic.org]; FORGED_RECIPIENTS_FORWARDING(0.00)[]; SPF_FAIL_FORWARDING(0.00)[]; IP_SCORE(-3.46)[ip: (-9.64), ipnet: 2001:1900:2254::/48(-4.34), asn: 10310(-3.26), country: US(-0.08)]; RCVD_IN_DNSWL_MED(-0.20)[5.0.0.0.0.5.0.0.0.0.0.0.0.0.0.0.a.6.0.2.4.5.2.2.0.0.9.1.1.0.0.2.list.dnswl.org : 127.0.9.2]; RCPT_COUNT_TWO(0.00)[2]; MX_GOOD(-0.01)[cached: mail.nomadlogic.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.96)[-0.961,0]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; FORGED_RECIPIENTS(0.00)[rainer@ultra-secure.de ..,freebsd-stable@freebsd.org]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 00:54:04 -0000 On 11/6/18 4:47 PM, Rainer Duffner wrote: > >> Am 07.11.2018 um 01:40 schrieb Pete Wright : >> >> I may be mistaken, but I don't think you actually need to boot the debug-kernel and modules (in fact I don't think you can), rather those files are intended for being read by kgdb while debugging a core that is generated by savecore(8) so that you have access to full symbol table etc. this page section in the dev handbook debugging kernel core dumps: >> >> https://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html >> >> hope this helps, >> >> -pete > > > Yes, you are right. > > However obvious it may seem, it isn’t for somebody who’s never really done that… > > > I asked the same question in my PR and got an answer immediately - didn’t expect that to go that fast… great, glad i'm not spreading mis-info!  i don't think it's too obvious IMHO, took me a while to grok it a year or so ago when i was debugging some graphics driver issues :) -p -- Pete Wright pete@nomadlogic.org @nomadlogicLA