NetBSD Problem Report #57720
From www@netbsd.org Thu Nov 23 19:17:13 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 A53961A9238
for <gnats-bugs@gnats.NetBSD.org>; Thu, 23 Nov 2023 19:17:13 +0000 (UTC)
Message-Id: <20231123191712.54D471A9239@mollari.NetBSD.org>
Date: Thu, 23 Nov 2023 19:17:12 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: kernel doesn't get symbol table when booted from qemu
X-Send-Pr-Version: www-1.0
>Number: 57720
>Category: port-alpha
>Synopsis: kernel doesn't get symbol table when booted from qemu
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-alpha-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 23 19:20:00 +0000 2023
>Originator: Taylor R Campbell
>Release: current
>Organization:
The AlphaBSD Foundation
>Environment:
(qemu-system-alpha, qemu 8.1.0)
NetBSD 10.99.10 NetBSD 10.99.10 (GENERIC-$Revision: 1.418 $) #7: Wed Nov 22 17:20:45 UTC 2023 root@singbulli.local:/home/riastradh/netbsd/current/obj.alpha/sys/arch/alpha/compile/GENERIC.QEMU alpha
>Description:
1. qemu doesn't pass the same bootinfo records through to alpha_init that the NetBSD bootloader does, so the kernel is unable to find the symbol table.
2. The message that is supposed to be printed explaining this, including the text `boot program did not pass bootinfo', doesn't come through at this point, presumably because the bootstrap console doesn't work for some reason: https://nxr.netbsd.org/xref/src/sys/arch/alpha/alpha/machdep.c?r=1.376#435
>How-To-Repeat:
crash the kernel in qemu and try to print a stack trace in ddb
>Fix:
Yes, please!
Workaround: Use the GENERIC.QEMU kernel. (But we should find a way to make this unnecessary -- and, until then, make the failure mode more obvious if you use GENERIC instead of GENERIC.QEMU.)
(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.