[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sparc/2212: SS5 accessing MAGMA LC2+1Sp panics kernel w/data fault
- To: gnats@openbsd.org
- Subject: sparc/2212: SS5 accessing MAGMA LC2+1Sp panics kernel w/data fault
- From: "John D. Baker" <jdbaker@blkbox.com>
- Date: Wed, 28 Nov 2001 01:27:03 -0600 (CST)
- Resent-Date: Wed, 28 Nov 2001 00:20:02 -0700 (MST)
- Resent-From: gnats@cvs.openbsd.org (GNATS Management)
- Resent-Message-Id: <200111280720.fAS7K2I2023000@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org,Received: "from openbsd.cs.colorado.edu (openbsd.cs.colorado.edu [128.138.192.83]) by cvs.openbsd.org (8.12.1/8.10.1) with ESMTP id fAS7Ir5t007277 for" <gnats@cvs.openbsd.org>;,Wed@naughty.monkey.org, 28@naughty.monkey.org,Nov@naughty.monkey.org, 2001@naughty.monkey.org,00:18:53.-0700@cvs.openbsd.org (MST)
- Resent-To: bugs@cvs.openbsd.org
>Number: 2212
>Category: sparc
>Synopsis: SS5 accessing MAGMA LC2+1Sp panics kernel w/data fault
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bugs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Nov 28 00:20:01 MST 2001
>Last-Modified:
>Originator: John D. Baker
>Organization:
net
>Release: 3.0
>Environment:
System : OpenBSD 3.0
Architecture: OpenBSD.sparc
Machine : sparc
>Description:
SPARCstation 5, serial console, no framebuffer. MAGMA LC2+1Sp in sbus
slot 3.
ok boot
Resetting ...
SPARCstation 5, No Keyboard
ROM Rev. 2.15, 64 MB memory installed, Serial #7552960.
Ethernet address 8:0:20:73:3f:c0, Host ID: 80733fc0.
Rebooting with command:
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@1,0 File and args:
>How-To-Repeat:
On freshly-installed system, do:
# cd /dev
# ./MAKEDEV magma0
Then use 'cu' as follows:
# cu -l /dev/ttym0 -s 38400
Connected
At this point, a single printable character is typed at the console,
giving the results that follow:
data fault: pc=0xf81d38ec sfva=0x8 sfsr=326<FAV>
panic: kernel fault
Stopped at _Debugger+0x4: jmpl [%o7 + 0x8], %g0
RUN AT LEAST 'trace' AND 'ps' AND INCLUDE OUTPUT WHEN REPORTING THIS PANIC!
DO NOT EVEN BOTHER REPORTING THIS WITHOUT INCLUDING THAT INFORMATION!
ddb> trace
_mem_access_fault4m(0xfac313e8, 0x326, 0x8, 0xf8225e98, 0x1, 0xfac44860) at _me
m_access_fault4m+0x2fc
_kernel_text(0x0, 0x0, 0x0, 0xfe028000, 0x0, 0xf81fd514) at _kernel_text+0x4518
_syscall(0xf83e1500, 0xf81d3860, 0x0, 0x4, 0x0, 0x0) at _syscall+0x1f4
_sparc_interrupt44c(0x1, 0xf7fff787, 0x1, 0xf7fff787, 0x0, 0xfac409d8) at _spar
c_interrupt44c+0x108
ddb> ps
PID PPID PGRP UID S FLAGS WAIT COMMAND
17289 21359 21359 0 3 0x86 ttyin cu
*21359 25412 21359 0 2 0x4006 cu
15132 1 15132 0 3 0x40184 select sendmail
25412 1 25412 0 3 0x4086 pause csh
12932 1 12932 0 3 0x84 select sshd
19041 1 19041 0 3 0x184 select inetd
30354 1 30354 0 3 0x84 select portmap
19876 1 19876 0 2 0x84 syslogd
7 0 0 0 3 0x100204 crypto_wa crypto
6 0 0 0 3 0x100204 aiodoned aiodoned
5 0 0 0 3 0x100204 syncer update
4 0 0 0 3 0x100204 cleaner cleaner
3 0 0 0 3 0x100204 reaper reaper
2 0 0 0 3 0x100204 pgdaemon pagedaemon
1 0 1 0 3 0x4084 wait init
0 -1 0 0 3 0x80204 scheduler swapper
ddb>
Also, upon reboot, after the filesystem checks, the system will
crash again when 'ttyflags -a' finds the entries for "ttym?" in
/etc/ttys at attempts to operate on the now-present devices in
/dev/ttym?.
The only way out is to reboot in single-user mode, fix the filesystems,
then either comment out the entries in /etc/ttys or remove the
magma device files.
This has been tested on OpenBSD 2.8, 2.9 and 3.0 plus NetBSD 1.5 and
the 20011111 snapshot of NetBSD (1.5Y?). All fail in exactly the same
fashion.
Operating under Solaris 8 works correctly and the magma serial ports
can be operated normally.
>Fix:
--
John D. Baker OpenBSD NetBSD
j d b a k e r @ b l k b o x . c o m FreeBSD BSD/OS
h t t p : / / w w w . b l k b o x . c o m / ~ j d b a k e r /
BSD -- The Operating System for the Third Millenium and Beyond!
>Audit-Trail:
>Unformatted:
X-sendbug-version: 3.97
>> OpenBSD BOOT 2.1
Booting bsd @ 0x4000
2220032+161448+198732+[76368+89496]=0x2a26e4
[ using 165868 bytes of bsd a.out symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2001 OpenBSD. All rights reserved. http://www.OpenBSD.org
OpenBSD 3.0-current (GENERIC) #52: Mon Nov 19 14:52:41 MST 2001
deraadt@sparc.openbsd.org:/usr/src/sys/arch/sparc/compile/GENERIC
real mem = 66797568
avail mem = 58990592
using 200 buffers containing 3338240 bytes of memory
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@1,0
mainbus0 (root): SUNW,SPARCstation-5
cpu0 at mainbus0: MB86904 @ 85 MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 8K data (16 b/l) cache enabled
obio0 at mainbus0
clock0 at obio0 addr 0x71200000: mk48t08 (eeprom)
timer0 at obio0 addr 0x71d00000 delay constant 40
zs0 at obio0 addr 0x71100000 pri 12, softpri 6
zs0a: console i/o
zs1 at obio0 addr 0x71000000 pri 12, softpri 6
slavioconfig at obio0 addr 0x71800000 not configured
auxreg0 at obio0 addr 0x71900000
power0 at obio0 addr 0x71910000
fdc0 at obio0 addr 0x71400000 pri 11, softpri 4: chip 82077
iommu0 at mainbus0 addr 0x10000000: version 0x4/0x0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 21.250 MHz
dma0 at sbus0 slot 5 offset 0x8400000: rev 2
esp0 at dma0 offset 0x8800000 pri 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets
sd0 at scsibus0 targ 1 lun 0: <SEAGATE, ST5660N SUN0535, 0644> SCSI2 0/direct fixed
sd0: 520MB, 3002 cyl, 4 head, 88 sec, 512 bytes/sec, 1065664 sec total
sd1 at scsibus0 targ 2 lun 0: <SEAGATE, ST32550W SUN2.1G, 0416> SCSI2 0/direct fixed
sd1: 2048MB, 3511 cyl, 11 head, 108 sec, 512 bytes/sec, 4194995 sec total
cd0 at scsibus0 targ 6 lun 0: <SONY, CD-ROM CDU-541, 2.6a> SCSI2 5/cdrom removable
bpp0 at sbus0 slot 5 offset 0xc800000: DMA2
ledma0 at sbus0 slot 5 offset 0x8400010: rev 2
le0 at ledma0 offset 0x8c00000 pri 6: address 08:00:20:73:3f:c0
le0: 16 receive buffers, 4 transmit buffers
audiocs0 at sbus0 slot 4 offset 0xc000000 pri 9, softpri 4
audio0 at audiocs0
power-management at sbus0 slot 4 offset 0xa000000 not configured
magma0 at sbus0 slot 3 offset 0x0 pri 9 softpri 6: Magma LC 2+1 Sp
mtty0 at magma0: 2 ttys
mbpp0 at magma0: 1 port
root on sd0a
rootdev=0x700 rrootdev=0x1100 rawdev=0x1102
setting tty flags
starting network
add net default: gateway 192.168.17.254
starting system logger
starting rpc daemons: portmap.
savecore: no core dump
checking quotas: done.
building ps databases: kvm dev.
clearing /tmp
starting pre-securelevel daemons:.
setting kernel security level: kern.securelevel: 0 -> 1
preserving editor files
creating runtime link editor directory cache.
starting network daemons: sendmail inetd sshd.
starting local daemons:.
standard daemons: screenblank cron.
Sat Nov 24 22:59:13 CST 2001
OpenBSD/sparc (pizza) (console)
login: