NetBSD Problem Report #43873
From eeh@netbsd.org Mon Sep 13 15:46:59 2010
Return-Path: <eeh@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 42FBD63BC86
for <gnats-bugs@gnats.NetBSD.org>; Mon, 13 Sep 2010 15:46:59 +0000 (UTC)
Message-Id: <20100913154659.08ACB63B100@mail.netbsd.org>
Date: Mon, 13 Sep 2010 15:46:59 +0000 (UTC)
From: eeh@netbsd.org
Reply-To: eeh@netbsd.org
To: gnats-bugs@gnats.NetBSD.org
Subject: wscons borken
X-Send-Pr-Version: 3.95
>Number: 43873
>Category: kern
>Synopsis: wscons borken
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Sep 13 15:50:00 +0000 2010
>Closed-Date: Tue Nov 09 00:35:53 +0000 2010
>Last-Modified: Tue Nov 09 00:35:53 +0000 2010
>Originator: Eduardo Horvath
>Release: NetBSD 5.99.39
>Organization:
>Environment:
NetBSD 5.99.39 (GENERIC) #2: Sun Sep 12 18:18:51 PDT 2010
eh29855@nonplus:/net/10.0.0.101/export/home2/work/origsrc/sys/arch/sparc64/compile/GENERIC
Architecture: sparc64
Machine: sparc64
>Description:
If you are using a serial console and have a display adaper insalled wscons insists on being
the console device and panics:
Resetting ...
Sun Ultra 2 UPA/SBus (2 X UltraSPARC 200MHz), No Keyboard
OpenBoot 3.7, 512 MB memory installed, Serial #8745945.
Ethernet address 8:0:20:85:73:d9, Host ID: 808573d9.
Rebooting with command: boot disk:d /netbsd.test
Boot device: /sbus/SUNW,fas@e,8800000/sd@0,0:d File and args: /netbsd.test
NetBSD IEEE 1275 Multi-FS Bootblock
Version $NetBSD: bootblk.fth,v 1.13 2010/06/24 00:54:12 eeh Exp $
>> NetBSD/sparc64 OpenFirmware Boot, Revision 1.15
=0x858980
Loading /netbsd.test: 7644608+362816+445648 [574680+371215]=0x9acc38
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
2006, 2007, 2008, 2009, 2010
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
NetBSD 5.99.39 (GENERIC) #2: Sun Sep 12 18:18:51 PDT 2010
eh29855@nonplus:/net/10.0.0.101/export/home2/work/origsrc/sys/arch/sparc64/compile/GENERIC
total memory = 512 MB
avail memory = 489 MB
mainbus0 (root): SUNW,Ultra-2 (Sun Ultra 2 UPA/SBus): hostid 808573d9
cpu0 at mainbus0: SUNW,UltraSPARC @ 200 MHz, UPA id 0
cpu0: 16K instruction (32 b/l), 16K data (32 b/l), 1024K external (64 b/l)
cpu1 at mainbus0: SUNW,UltraSPARC @ 200 MHz, UPA id 1
cpu1: 16K instruction (32 b/l), 16K data (32 b/l), 1024K external (64 b/l)
timer0 at mainbus0 addr 0xfffc1c00 irq vectors 7f0
sbus0 at mainbus0 addr 0xfffcc000: clock = 25 MHz
audiocs0 at sbus0 slot 13 offset 0xc000000 vector 24 ipl 8: CS4231A
audio0 at audiocs0: full duplex, playback, capture
auxio0 at sbus0 slot 15 offset 0x1900000
flashprom at sbus0 slot 15 offset 0x0 not configured
fdc0 at sbus0 slot 15 offset 0x1400000 vector 29 ipl 11: no drives attached
clock0 at sbus0 slot 15 offset 0x1200000: mk48t59
zs0 at sbus0 slot 15 offset 0x1100000 vector 28 ipl 12zstty0 at zs0 channel 0 (console i/o)
zstty1 at zs0 channel 1
zs1 at sbus0 slot 15 offset 0x1000000 vector 28 ipl 12zstty2 at zs1 channel 0
kbd0 at zstty2
zstty3 at zs1 channel 1
ms0 at zstty3
wsmouse0 at ms0 mux 0
sc at sbus0 slot 15 offset 0x1300000 not configured
SUNW,pll at sbus0 slot 15 offset 0x1304000 not configured
esp0 at sbus0 slot 14 offset 0x8800000 vector 20 ipl 3: FAS366/HME, 40MHz, SCSI ID 7
scsibus0 at esp0: 16 targets, 8 luns per target
hme0 at sbus0 slot 14 offset 0x8c00000 vector 21 ipl 6: Sun Happy Meal Ethernet (SUNW,hme)
hme0: Ethernet address 08:00:20:85:73:d9
nsphy0 at hme0 phy 1: DP83840 10/100 media interface, rev. 0
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpp0 at sbus0 slot 14 offset 0xc800000 vector 22 ipl 2: DMA rev unknown (0x20000000)
cgsix0 at sbus0 slot 2 offset 0x0 vector 5 ipl 5: SUNW,501-2253, 1152 x 900, rev 11
cgsix0: attached to /dev/fb0
cgsix0: framebuffer size: 2 MB
wsdisplay1 at cgsix0 kbdmux 1
text_access_fault: pc=0 va=0
kernel trap 64: +fast instruction access MMU miss
Stopped in pid 0.1 (system) at 0: undefined
db{0}> tr
wsemul_vt100_attach(2565800, 18153b8, 2565a00, 0, 0, 255b7c0) at netbsd:wsemul_v
t100_attach+0x3c
wsscreen_attach(255b7c0, 255b780, 0, 18153b8, 2565a00, 0) at netbsd:wsscreen_att
ach+0x100
wsdisplay_addscreen(baeb400, 0, 18153b8, 0, 73, 0) at netbsd:wsdisplay_addscreen
+0x9c
wsdisplay_common_attach(baeb400, 0, 1853800, 1815430, 18153e8, baea328) at netbs
d:wsdisplay_common_attach+0xd0
wsdisplay_emul_attach(bae9580, baebc00, 1c05638, 18a1cc0, 18a1c00, 16e3000) at n
etbsd:wsdisplay_emul_attach+0x54
config_attach_loc(baebc00, 1806cd8, 1, 1c05638, 0, 15069e0) at netbsd:config_att
ach_loc+0x188
cg6attach(baea000, 1815000, 0, 2, 0, 1c05720) at netbsd:cg6attach+0x290
cgsixattach(ba4a8d0, bae9580, 1c058c0, 18a1cc0, 18a1c00, 16e3000) at netbsd:cgsi
xattach+0x36c
config_attach_loc(bae9580, 18071b8, 1, 1c058c0, 0, 13c8600) at netbsd:config_att
ach_loc+0x188
sbus_attach(b783b00, ba4a8d0, 18a0c20, 18a1cc0, 18a1c00, 16e3000) at netbsd:sbus
_attach+0x450
config_attach_loc(ba4a8d0, 18071e8, 1, 1c05ab0, 0, 108b300) at netbsd:config_att
ach_loc+0x188
mainbus_attach(0, b783b00, 0, 18a1cc0, 16edc00, 108b000) at netbsd:mainbus_attac
h+0x4a8
config_attach_loc(b783b00, 1806fa8, 1, 0, 0, 7) at netbsd:config_attach_loc+0x18
8
cpu_configure(170a000, 1275e20, 0, b749f80, 100, 800) at netbsd:cpu_configure+0x
20c
main(0, 11fd040, fffb1a90, f005cb68, fffffffff0071ae4, fffb1e80) at netbsd:main+
0x2bc
cpu_initialize(f005cb68, fffb1cf8, 112c00, 111fb8, fffb1df8, 0) at netbsd:cpu_in
itialize+0xe8
Obviously we're trying to jump through an uninitialized jump table. If wscons
is not the console it shouldn't be trying to do that.
>How-To-Repeat:
Install a -current kernel on a machine with a framebuffer, set the input-device
and output-device to a serial port (or just pull the keyboard) and watch the panic.
>Fix:
>Release-Note:
>Audit-Trail:
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/43873: wscons borken
Date: Mon, 13 Sep 2010 18:03:09 +0200
On Mon, Sep 13, 2010 at 03:50:00PM +0000, eeh@netbsd.org wrote:
> cgsix0 at sbus0 slot 2 offset 0x0 vector 5 ipl 5: SUNW,501-2253, 1152 x 900, rev 11
> cgsix0: attached to /dev/fb0
> cgsix0: framebuffer size: 2 MB
> wsdisplay1 at cgsix0 kbdmux 1
it would print out ": console (... emulation)" here, if it would assume to
be console. However:
> wsemul_vt100_attach(2565800, 18153b8, 2565a00, 0, 0, 255b7c0) at netbsd:wsemul_v
> t100_attach+0x3c
The first arg here should be "int console" - so something is wrong somewhere
in between.
Martin
From: Eduardo Horvath <eeh@NetBSD.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/43873: wscons borken
Date: Mon, 13 Sep 2010 16:42:43 +0000 (UTC)
NetBSD 5.99.24 (GENERIC.MP) #1: Thu Feb 18 15:38:37 PST 2010
eh29855@nonplus:/export/home/work/src/sys/arch/sparc64/compile/GENERIC.MP
works fine on the same machine:
nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bpp0 at sbus0 slot 14 offset 0xc800000 vector 22 ipl 2: DMA rev unknown
(0x20000000)
cgsix0 at sbus0 slot 2 offset 0x0 vector 5 ipl 5: SUNW,501-2253, 1152 x
900, rev 11
cgsix0: attached to /dev/fb0
cgsix0: framebuffer size: 2 MB
wsdisplay1 at cgsix0 kbdmux 1
ffb0 at mainbus0 addr 0xffb54000: Creator3D, model SUNW,501-3129, dac 10
ffb0: found old DAC, enabling redraw on unblank
ffb0: attached to /dev/fb1
wsdisplay2 at ffb0 kbdmux 1
pcons at mainbus0 not configured
scsibus0: waiting 2 seconds for devices to settle...
From: Michael <macallan@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/43873: wscons borken
Date: Tue, 14 Sep 2010 13:34:45 -0400
I can't reproduce this on my SS20, neither with the console on a CG14
nor with the keyboard disconnected:
cgsix0 at sbus0 slot 2 offset 0x0 level 9: SUNW,501-2325, 1152 x 900,
rev 11
cgsix0: attached to /dev/fb1
cgsix0: framebuffer size: 1 MB
wsdisplay2 at cgsix0 kbdmux 1
wsmux1: connecting to wsdisplay2
Time to dust off the U1 I guess.
From: Michael Lorenz <macallan@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43873 CVS commit: src/sys/dev/sun
Date: Tue, 14 Sep 2010 18:42:12 +0000
Module Name: src
Committed By: macallan
Date: Tue Sep 14 18:42:12 UTC 2010
Modified Files:
src/sys/dev/sun: cgsix.c
Log Message:
don't muck with the screen description if we're not the console, for some
reason this leads to a NULL jump later on, at least on sparc64
should fix PR43873
To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 src/sys/dev/sun/cgsix.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sun, 10 Oct 2010 02:38:43 +0000
State-Changed-Why:
Did that fix it?
State-Changed-From-To: feedback->closed
State-Changed-By: eeh@NetBSD.org
State-Changed-When: Tue, 09 Nov 2010 00:35:53 +0000
State-Changed-Why:
Verified.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.