From owner-freebsd-hackers@freebsd.org Fri Jun 30 16:36:28 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D4A83D95982 for ; Fri, 30 Jun 2017 16:36:28 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id BB0EE74B73 for ; Fri, 30 Jun 2017 16:36:28 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: by mailman.ysv.freebsd.org (Postfix) id B9D90D95981; Fri, 30 Jun 2017 16:36:28 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8F42D95980 for ; Fri, 30 Jun 2017 16:36:28 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: from mail.michaelwlucas.com (mail.michaelwlucas.com [104.236.197.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7C39D74B72 for ; Fri, 30 Jun 2017 16:36:28 +0000 (UTC) (envelope-from mwlucas@mail.michaelwlucas.com) Received: from mail.michaelwlucas.com (localhost [127.0.0.1]) by mail.michaelwlucas.com (8.15.2/8.15.2) with ESMTP id v5UGaP6o050415; Fri, 30 Jun 2017 12:36:26 -0400 (EDT) (envelope-from mwlucas@mail.michaelwlucas.com) Received: (from mwlucas@localhost) by mail.michaelwlucas.com (8.15.2/8.15.2/Submit) id v5UGaP36050414; Fri, 30 Jun 2017 12:36:25 -0400 (EDT) (envelope-from mwlucas) Date: Fri, 30 Jun 2017 12:36:25 -0400 From: "Michael W. Lucas" To: Mark Millard Cc: hackers@freebsd.org Subject: Re: extract panic message & debugging from vmcore.0 ? Message-ID: <20170630163625.GB50380@mail.michaelwlucas.com> References: <20170630021205.GA43579@mail.michaelwlucas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.0 (2017-02-23) X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.michaelwlucas.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (mail.michaelwlucas.com [127.0.0.1]); Fri, 30 Jun 2017 12:36:26 -0400 (EDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 16:36:28 -0000 On Thu, Jun 29, 2017 at 07:35:02PM -0700, Mark Millard wrote: > Look for /usr/libexec/kgdb . > > But for some, most, or all TARGET_ARCH's the > FreeBSD folks now recommend using kgdb from > ports. (Which you built and installed.) > > /usr/libexec/kgdb is more for means-of-last-resort > use when one can not get to the point of having > the port kgdb around. Thanks for the info! Seriously. ... > > Well, that's not good. I did more searching and found > > /usr/src/tools/debugscripts/README. > > > > # cd /usr/obj/usr/src/sys/GENERIC > > # make gdbinit > > # gdb kernel.debug > > Did you miss a /var/crash/vmcore.0 above? Same error with and without /var/crash/vmcore.0 Looks what I really need is crashinfo(8). Which isn't referenced... anywhere, far as I can tell. (That's ok, someone will read the book and update the Handbook. ;-) > Separately. . . > > I'm no expert but you might need to pick > between the default minidump vs. a full > memory dump depending on purposes and what > information is to be extracted: > > debug.minidump: 1 > vs. > debug.minidump: 0 > > in the sysctl debug.minidump output. I > doubt that they are fully equivalent. > > Of course a full memory dump implies > needing space ready to hold that full > copy. Again, thanks for that info! ==ml -- Michael W. Lucas Twitter @mwlauthor nonfiction: https://www.michaelwlucas.com/ fiction: https://www.michaelwarrenlucas.com/ blog: http://blather.michaelwlucas.com/