NetBSD Problem Report #48915

From gson@gson.org  Mon Jun 16 12:38:51 2014
Return-Path: <gson@gson.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 3E1DBA653D
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 16 Jun 2014 12:38:51 +0000 (UTC)
Message-Id: <20140616123844.1770475E40@guava.gson.org>
Date: Mon, 16 Jun 2014 15:38:44 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@gnats.NetBSD.org
Subject: Kernels saved by savecore are not usable with gdb
X-Send-Pr-Version: 3.95

>Number:         48915
>Category:       bin
>Synopsis:       Kernels saved by savecore are not usable with gdb
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 16 12:40:00 +0000 2014
>Closed-Date:    Mon Jul 10 20:52:13 +0000 2017
>Last-Modified:  Mon Jul 10 20:52:13 +0000 2017
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current, source date 2014.06.16.09.55.49
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

The kernel files saved in /var/crash by savecore are not usable with
gdb.  Attempting to get a stack trace from a kernel core dump using
the saved kernel only results in:

  (gdb) where
  #0  <unavailable> in ?? ()
  Backtrace stopped: not enough registers or memory available to unwind further

If gdb is run against /netbsd rather than /var/crash/netbsd.N,
you do get a stack trace.

>How-To-Repeat:

  (drop into ddb)
  db{0}> reboot 0x100
  (wait for reboot, log in as root)
  # cd /var/crash
  # gunzip *.gz
  (assuming netbsd.0.core is the newest one, adjust as needed)
  # gdb netbsd.0
  # target kvm netbsd.0.core
  # where

>Fix:

>Release-Note:

>Audit-Trail:
From: Alexander Nasonov <alnsn@yandex.ru>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/48915: Kernels saved by savecore are not usable with gdb
Date: Mon, 16 Jun 2014 16:33:49 +0100

 I find it more annoying that objdump -d doesn't work with netbsd.N.core.
 Alex

From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/48915: Kernels saved by savecore are not usable with gdb
Date: Tue, 20 Jun 2017 00:53:26 +0000

 This is no longer true.
 OK to close?

From: Andreas Gustafsson <gson@gson.org>
To: gnats-bugs@NetBSD.org
Cc: coypu@sdf.org
Subject: Re: bin/48915: Kernels saved by savecore are not usable with gdb
Date: Mon, 10 Jul 2017 23:07:29 +0300

 coypu@sdf.org wrote:
 >  This is no longer true.
 >  OK to close?

 I retested with a release built from 2017.07.08.14.35.33 sourcess, and
 was now able to get a backtrace.  I will close the PR.
 -- 
 Andreas Gustafsson, gson@gson.org

State-Changed-From-To: open->closed
State-Changed-By: gson@NetBSD.org
State-Changed-When: Mon, 10 Jul 2017 20:52:13 +0000
State-Changed-Why:
Confirmed fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.