NetBSD Problem Report #57328

From www@netbsd.org  Fri Apr  7 12:37:38 2023
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A142D1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  7 Apr 2023 12:37:38 +0000 (UTC)
Message-Id: <20230407123737.76DF41A923A@mollari.NetBSD.org>
Date: Fri,  7 Apr 2023 12:37:37 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: crash(8) doesn't support `show page'
X-Send-Pr-Version: www-1.0

>Number:         57328
>Category:       bin
>Synopsis:       crash(8) doesn't support `show page'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 07 12:40:01 +0000 2023
>Originator:     Taylor R Campbell
>Release:        current
>Organization:
The NetBSD Foundb{0}> 
>Environment:
crashing and burning
>Description:
static void
db_page_print_cmd(db_expr_t addr, bool have_addr,
    db_expr_t count, const char *modif)
{
#ifdef _KERNEL /* XXX CRASH(8) */
	bool full = false;

	if (modif[0] == 'f')
		full = true;

	uvm_page_printit((struct vm_page *)(uintptr_t) addr, full, db_printf);
#else
	db_kernelonly();
#endif
}

>How-To-Repeat:
# crash
...
crash> show page 0x1234
db_page_print_cmd: can only be used in-kernel.
>Fix:
Yes, please!

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.