Subject: port-mac68k/5590: -current kernels panic early on Quadra 700
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hauke@Espresso.Rhein-Neckar.DE>
List: netbsd-bugs
Date: 06/14/1998 18:34:45
>Number:         5590
>Category:       port-mac68k
>Synopsis:       -current kernels panic early on Quadra 700
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 14 09:50:02 1998
>Last-Modified:
>Originator:     Hauke Fath
>Organization:
Einzeln auftretender Radfahrer
>Release:        1.3F of 980611
>Environment:
NetBSD 1.3F (FG54) #2: Thu Jun 11 21:11:27 CEST 1998
    hauke@q700.hf.org:/usr/src/sys/arch/mac68k/compile/FG54


>Description:

[ I sent this out before a few days ago, but it did not show up 
in netbsd-bugs nor in the database (typo in category?). 
I notified Bill "Lord, Not This Again" Studenmund 
<wrstuden@loki.stanford.edu> of the problem but still wanted 
to send-pr it "for the record". ]

-current NetBSD/mac68k kernels die on a Quadra 700
(68040/33, 68MB RAM/2MB VRAM, serial console) with...


NetBSD/mac68k console
[ preserving 300933 bytes of netbsd symbol table ]
Copyright (c) 1996, 1997, 1998
    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 1.3F (FG54) #2: Thu Jun 11 21:11:27 CEST 1998
    hauke@q700.hf.org:/usr/src/sys/arch/mac68k/compile/FG54
Apple Macintosh Quadra 700  (68040)
cpu: delay factor 352
real mem = 20971520
avail mem = 13635584
using 1000 buffers containing 4096000 bytes of memory
mrg: kernel has no ROM vectors for this machine!
mainbus0 (root)
obio0 at mainbus0
adb0 at obio0 (ADB event device)
adb: using II series hardware support
adb: ADBReInit complete
adb: extended keyboard (ISO layout) at 2
adb: 100 dpi mouse at 3
asc0 at obio0: Apple Sound Chip
intvid0 at obio0: DAFB: Monitor sense 7.
intvid0: 1152 x 870, 256 color
grf0 at intvid0
ite0 at grf0 (minimal console)
sn0 at obio0 address 08:00:07:8c:7d:2d
esp0 at obio0 (quick): address 0x81a000: NCR53C96, 25MHz, SCSI ID 7
scsibus0 at esp0: 8 targets
sd0 at scsibus0 targ 0 lun 0: <IBM, DCAS-34330, S65A> SCSI2 0/direct fixed
sd0: 4134MB, 8205 cyl, 6 head, 171 sec, 512 bytes/sect x 8467200 sectors
zsc0 at obio0 chip type 0
zsc0 channel 0: d_speed   9600 DCD clk 0 CTS clk 0
zstty0 at zsc0 channel 0 (consoletrap type 1, code = 0x0, v = 0x48e7fffe
kernel program counter = 0xcd346
kernel: Address error trap
pid = 0, pc = 000CD346, ps = 2104, sfc = 1, dfc = 1
Registers:
             0        1        2        3        4        5        6        7
dreg: 00537A00 00000001 00000001 00000000 00000065 00000009 00537A00 00000000
areg: 48E7FFFF 00000000 00537A30 00537A00 00000000 0016EB80 0016E9DC FFFFCFFC

Kernel stack (0016E928):
16E928: 000E0066 0016E978 00000080 00000001 00000000 00000065 00000009 00537A00
16E948: 00000000 00537A30 00537A00 00000000 0016EB80 00000000 00000000 0016E9DC
16E968: 00003094 00000001 00000000 48E7FFFE 00537A00 00000001 00000001 00000000
16E988: 00000065 00000009 00537A00 00000000 48E7FFFF 00000000 00537A30 00537A00
16E9A8: 00000000 0016EB80 0016E9DC FFFFCFFC 00000000 2104000C D346200C 48E7FFFE
16E9C8: 00000000 00000000 00000005 00113500 000CD3E0 0016E9EC 000CC8E4 00537A00
16E9E8: 00000000 0016EA28 000E0214 00000000 00002004 00000005 00000065 000F2AFC
16EA08: 00537A00 00000000 000EC5E6 000CD3E0 0016EB7C 0016EB80 00000000 00000000
16EA28: 0016EA90 000035A0 00000009 00000000 00000000 00002704 0000005C 00002004
16EA48: 00000005 00000065 000F2AFC 00537A00 00000000 00000323 00817002 000EC5E6
16EA68: 000CD3E0 0016EB7C 0016EB80 0016EA90 FFFFCFFC 00000000 20000000 3A500064
16EA88: 000CCFB4 00000065 0016EAA0 000CCFDE 00817002 00000065 0016EAB4 000E24B8
16EAA8: 00000C00 00000065 00000000 0016EAD0 0002B72A 00000065 00000008 00000065
16EAC8: 00000000 000EC5E6 0016EB54 0002BAE0 00000065 00000005 00000000 00000001
16EAE8: 00509E00 00000000 000F2AFC 00537A00 000CC7DE 000EC5E6 00509E00 00537A30
16EB08: 000F2AFC 00000001 00000064 0016EB98 0002C52E 00000000 00000000 00000000
panic: Address error
Stopped at      _Debugger+0x6:  unlk    a6
db> t
_Debugger(2104,2b87e,537a00,16e964,e0086) + 6
_panic(dfc1a,1,0,65,9) + 52
_trap(1,0,48e7fffe) + 24e
faultstkadj(537a00) + 0
_zssoft(0) + 30
_trap(9,0,0) + 3dc
rei(?)
_zs_putc(817002,65,16eab4,e24b8,c00) + 98
_zscnputc(c00,65) + e
_cnputc(65) + 22
_putchar(65,5,0) + f2
_kprintf(cd3d8,5,0,0,16eb80) + 66
_printf(cd3d8) + 22
_zstty_attach(537a00,509e00,16ecec,16ecec,0) + 5c
_config_attach(537a00,ec5e6,16ecec,cc7de,0) + 284
_config_found_sm(537a00,16ecec,cc7de,0,cc2ec) + 30
_zsc_attach(507f80,537a00,16ed64,507f80,507f80) + 3ae
_config_attach(507f80,ec5ca,16ed64,b1d4c,0) + 284
_obio_search(507f80,ec5ca,0,ec39e,ec5ca) + 4c
_mapply(16edac,ec5ca) + 4a
_config_search(b1d6e,507f80,0,b1d0a,0) + 54
_obio_attach(507fc0,507f80,0,507fc0,0) + 24
_config_attach(507fc0,ec3d2,0,0,507fc0) + 284
_mainbus_search(507fc0,ec3d2,0,ec3aa,ec3d2) + 2e
_mapply(16ee84,ec3d2) + 4a
_config_search(daf20,507fc0,0,daef2,0) + 54
_mainbus_attach(0,507fc0,d5eed,d5eed,d5eed) + 1e
_config_attach(0,ec3b6,d5eed,0,0) + 284
_config_rootfound(d5eed,d5eed) + 3a
_configure(d77c7,3e8,3e8000,d77b6,d01000) + 18
_cpu_startup(ed1d8,7540,6aa0,80040a5a,ffffcffc) + 440
_main(119198,11,2ae3e,172000,1000) + 44
_db_lbuf_start() + 2
db> x /i _zssoft + 20
_zssoft+0x20:   bgeb    <_zssoft+0x42>  [addr:0xcc8f0 ]
db>
_zssoft+0x22:   moval   _zsc_cd,a0      [addr:0xec2e0 ]
db>
_zssoft+0x28:   movl    a0@(0,d2:l:4),d0
db>
_zssoft+0x2c:   beqb    <_zssoft+0x38>  [addr:0xcc8e6 ]
db>
_zssoft+0x2e:   movl    d0,sp@-
db>
_zssoft+0x30:   bsrl    _zsc_intr_soft  [addr:0xcd31c ]
db>
_zssoft+0x36:   addql   #0x4,sp
db>
_zssoft+0x38:   addql   #0x1,d2
db> c
System halted.

You may turn the machine


The crash is repeatable, and I see exactly the same stack
trace with Steve Allen's

NetBSD 1.3E (HWDIRECT) #70: Sat May 16 16:56:27 PDT 1998
    root2@wormspace:/usr/src/sys/arch/mac68k/compile/HWDIRECT

GENERIC kernel.

>How-To-Repeat:
Boot a -current kernel on a Quadra 700.

>Fix:
	
>Audit-Trail:
>Unformatted: