NetBSD Problem Report #56485

From www@netbsd.org  Thu Nov  4 06:11:32 2021
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 29F7E1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  4 Nov 2021 06:11:32 +0000 (UTC)
Message-Id: <20211104061130.305FF1A923A@mollari.NetBSD.org>
Date: Thu,  4 Nov 2021 06:11:30 +0000 (UTC)
From: anton.kochkov@gmail.com
Reply-To: anton.kochkov@gmail.com
To: gnats-bugs@NetBSD.org
Subject: SIMH VAX NetBSD 9.2 ISO boot panic: SEGV in kernel mode: pc 0x800144ae addr 0xbedababe
X-Send-Pr-Version: www-1.0

>Number:         56485
>Category:       port-vax
>Synopsis:       SIMH VAX NetBSD 9.2 ISO boot panic: SEGV in kernel mode: pc 0x800144ae addr 0xbedababe
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-vax-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 04 06:15:00 +0000 2021
>Originator:     Anton
>Release:        9.2
>Organization:
>Environment:
VAX simulator V3.11-0 (SIMH)
>Description:

VAX simulator V3.11-0
netbsd-boot-install> at xq0 virbr0
File open error


KA655X-B V5.3, VMB 2.7
Performing normal system tests.
40..39..38..37..36..35..34..33..32..31..30..29..28..27..26..25..
24..23..22..21..20..19..18..17..16..15..14..13..12..11..10..09..
08..07..06..05..04..03..
Tests completed.
>>>boot dua2:
(BOOT/R5:0 DUA2



  2..
-DUA2
  1..0..


>> NetBSD/vax boot [1.12 (Wed May 12 13:15:55 UTC 2021)] <<
>> Press any key to abort autoboot 0
getdisklabel: no disk label
nfs_open: must mount first.
open netbsd.vax: No such file or directory
> boot netbsd
getdisklabel: no disk label
nfs_open: must mount first.
3303776+205216 [239072+227616]=0x3cadd8
[   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
[   1.0000000]     2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017,
[   1.0000000]     2018, 2019, 2020 The NetBSD Foundation, Inc.  All rights reserved.
[   1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[   1.0000000]     The Regents of the University of California.  All rights reserved.

[   1.0000000] NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021
[   1.0000000]  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/vax/compile/GENERIC
[   1.0000000] MicroVAX 3800/3900
[   1.0000000] total memory = 511 MB
[   1.0000000] avail memory = 490 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0: KA655, CVAX microcode rev 6 Firmware rev 83
[   1.0000000] lance at mainbus0 not configured
[   1.0000000] uba0 at mainbus0: Q22
[   1.0000000] dz1 at uba0 csr 160100 vec 304 ipl 17
[   1.0000000] mtc0 at uba0 csr 174500 vec 774 ipl 17
[   1.0000000] mscpbus0 at mtc0: version 5 model 3
[   1.0000000] mscpbus0: DMA burst size set to 4
[   1.0000000] uda0 at uba0 csr 172150 vec 770 ipl 17
[   1.0000000] mscpbus1 at uda0: version 3 model 3
[   1.0000000] mscpbus1: DMA burst size set to 4
[   1.0000000] qe0 at uba0 csr 174440 vec 764 ipl 17: delqa, hardware address 08:00:2b:aa:bb:cc
[   1.0000000] rlc0 at uba0 csr 174400 vec 160 ipl 17
[   1.0000000] rl0 at rlc0 drive 0: RL01, drive not loaded
[   1.0000000] rl1 at rlc0 drive 1: RL01, drive not loaded
[   1.0000000] rl2 at rlc0 drive 2: RL01, drive not loaded
[   1.0000000] rl3 at rlc0 drive 3: RL01, drive not loaded
[   1.0000000] ts0 at uba0 csr 172520 vec 224 ipl 17: TS11
[   1.0000000] ts0: rev 0, extended features enabled, transport offline
[   1.0000080] mt0 at mscpbus0 drive 0: TK50
[   1.0000080] mt1 at mscpbus0 drive 1: TK50
[   1.0000080] mt2 at mscpbus0 drive 2: TK50
[   1.0000080] mt3 at mscpbus0 drive 3: TK50
[   1.0000080] ra0 at mscpbus1 drive 0: RA92
[   1.0000080] ra1 at mscpbus1 drive 1: RA92
[   1.0000080] racd0 at mscpbus1 drive 2: RRD40
[   1.0000080] rx0 at mscpbus1 drive 3: RX50
[   1.0400080] ra0: no disk label: size 2940951 sectors
[   1.0400080] ra1: no disk label: size 2940951 sectors
[   1.0400080] racd0: size 1331200 sectors
[   1.0500080] rx0: attempt to bring on line failed:  unit offline (not mounted) (code 3, subcode 1)
[   1.0500080] WARNING: 1 error while detecting hardware; check system log.
[   1.0500080] boot device: racd0
[   1.0500080] root on racd0a dumps on racd0b
[   1.0500080] root file system type: cd9660
[   1.0500080] kern.module.path=/stand/vax/9.2/modules
[   1.8300080] r0=9fe32580 r1=80356de8 r2=9fe32580 r3=00000000 r4=80ccb160 r5=00000000 r6=8001433c r7=00000001
[   1.8300080] r8=00000b10 r9=00000000 r10=00000000 r11=9fc85d1c
[   1.8300080] ap=a71ec998 fp=a71ec984 sp=7fff96ac pc=800144ae
[   1.8300080] panic: SEGV in kernel mode: pc 0x800144ae addr 0xbedababe
[   1.8300080] cpu0: Begin traceback...
[   1.8300080] panic: SEGV in kernel mode: pc 0x800144ae addr 0xbedababe
[   1.8300080] Stack traceback : 
[   1.8300080]   Process is executing in user space.
[   1.8300080] cpu0: End traceback...
Stopped in pid 3.1 (ls) at      netbsd:vpanic+0x171:    pushl   $0
db>
>How-To-Repeat:
Create `netbsd-boot-install` file with the following contents:

load -r ka655x.bin
set cpu 512m
set cpu idle=netbsd

set rq0 ra92
at rq0 netbsd-root.dsk

set rq1 ra92
at rq1 netbsd-home.dsk

set rq2 cdrom
at rq2 NetBSD-9.2-vax.iso

at xq0 virbr0
boot cpu

Then start `simh-vax netbsd-boot-install`
When command line appears type `boot dua2:` then observe the booting process and the following kernel panic
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.