NetBSD Problem Report #57224

From reinoud@gorilla.13thmonkey.org  Fri Feb 10 12:23:25 2023
Return-Path: <reinoud@gorilla.13thmonkey.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 94D0B1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Feb 2023 12:23:25 +0000 (UTC)
Message-Id: <20230210122325.530122FF0947@gorilla.13thmonkey.org>
Date: Fri, 10 Feb 2023 13:23:25 +0100 (CET)
From: reinoud@13thmonkey.org
Reply-To: reinoud@13thmonkey.org
To: gnats-bugs@NetBSD.org
Subject: NVMM regression, breakpoints no longer work
X-Send-Pr-Version: 3.95

>Number:         57224
>Category:       port-amd64
>Synopsis:       NVMM regression, breakpoints no longer work
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-amd64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 10 12:25:00 +0000 2023
>Originator:     Reinoud Zandijk
>Release:        NetBSD 9.99.107
>Organization:
NetBSD

>Environment:


System: NetBSD gorilla.13thmonkey.org 9.99.107 NetBSD 9.99.107 (GENERIC) #0: Sun Dec 18 17:14:55 CET 2022 reinoud@gorilla.13thmonkey.org:/tmp/obj-bisect/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Without NVMM, Qemu allows for setting breakpoints on a kernel that boots. With
NVMM it allows the breakpoint setting but ignores it on running. IIRC it used to work fine.


>How-To-Repeat:
Running Qemu with :
qemu-system-x86_64 -m 1024
        -drive file=$FS,format=raw
        -smp cores=2 $ACCEL
        -snapshot
        -nographic -s -S
        -serial mon:telnet:127.0.0.1:2223,server,wait
....
and then
sleep 1
xfce4-terminal -e "telnet localhost 2223" &
sleep 1
/usr/bin/gdb
        -ex "target remote localhost:1234"
        -ex "break main"
        -ex "break subr_prf.c:279" -ex "continue"
        $KERNEL/netbsd.gdb


>Fix:
Run without -accell nvmm



>Unformatted:

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.