NetBSD Problem Report #57842

From www@netbsd.org  Sat Jan 13 04:46:54 2024
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 D348B1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 13 Jan 2024 04:46:53 +0000 (UTC)
Message-Id: <20240113044653.0826B1A9239@mollari.NetBSD.org>
Date: Sat, 13 Jan 2024 04:46:53 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: ddb kill command is broken when ddb traps via interrupt handler
X-Send-Pr-Version: www-1.0

>Number:         57842
>Category:       kern
>Synopsis:       ddb kill command is broken when ddb traps via interrupt handler
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 13 04:50:01 +0000 2024
>Originator:     Taylor R Campbell
>Release:        10.0_BETA
>Organization:
The NetDDB Foundation
>Environment:
>Description:
db{0}> kill 0t5399
panic: kernel diagnostic assertion "!cpu_intr_p()" failed: file "/home/riastradh/netbsd/10/src/sys/kern/kern_sig.c", line 1315
[ 112646.9118663] cpu0: Begin traceback...
[ 112646.9118663] vpanic() at netbsd:vpanic+0x183
[ 112646.9118663] kern_assert() at netbsd:kern_assert+0x4b
[ 112646.9118663] kpsignal2() at netbsd:kpsignal2+0x51a
[ 112646.9118663] db_kill_proc() at netbsd:db_kill_proc+0xa9
[ 112646.9118663] db_command() at netbsd:db_command+0x123
[ 112646.9118663] db_command_loop() at netbsd:db_command_loop+0xa4
[ 112646.9118663] db_trap() at netbsd:db_trap+0xe9
[ 112646.9118663] kdb_trap() at netbsd:kdb_trap+0x106
[ 112646.9118663] trap() at netbsd:trap+0x2f4
[ 112646.9118663] --- trap (number 1) ---
[ 112646.9118663] breakpoint() at netbsd:breakpoint+0x5
[ 112646.9118663] comintr() at netbsd:comintr+0x7e0
[ 112646.9118663] intr_kdtrace_wrapper() at netbsd:intr_kdtrace_wrapper+0x26
[ 112646.9118663] cpu0: End traceback...

>How-To-Repeat:
enter ddb via cnmagic (i.e., keyboard interrupt handler)
try to kill a process
>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-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.