Subject: Re: Problems with NetBSD 1.4.1+ on Sparc 5
To: Charles M. Hannum <root@ihack.net>
From: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
List: port-sparc
Date: 12/27/1999 13:36:16
	Hello folks.  Well, I struggle on with this Sparc 5 that won't stay 
running for more than a few hours.  I've tried the NetBSD-1.4.2_ALPHA
kernel to no avail.  However, I've captured a traceback through a script
session, and filled in the appropriate function names in the trace.  It
appears that I'm suffering from a double panic, once in the lockmgr, but
another caused by a call to memfault_sun4m from ffs_alloccg.  This probably
isn't a call, but rather some sort of harddware trap.  Might anyone be able
to shed light on what's going on here?  Here's the traceback, along with
the dmesg output for the kernel.  If anyone cares, I also have the kernel
core image from the panic session, which I'd be happy to provide for
analysis.
-thanks
-Brian

Script started on Mon Dec 27 10:56:22 1999
panic: kernel fault
syncing disks... panic: lockmgr: locking against myself
Frame pointer is at 0xf9172440
Call traceback:
  pc = 0xf010cf4c [cpu_reboot] args = (0x40000e6, 0x4000fe6, 0x0, 0x0, 0xf9172558, 0x49000e6, 0xf91724a8) fp = 0xf91724a8
  pc = 0xf003caf8 [panic] args = (0x104, 0x0, 0x0, 0xf91724ec, 0xf070af00, 0x16b6b74, 0xf9172510) fp = 0xf9172510
  pc = 0xf002faec [lockmgr] args = (0xf002f6e0, 0x104, 0xf002faa8, 0x2, 0x0, 0x1000, 0xf9172578) fp = 0xf9172578
  pc = 0xf00c8564 [ufs_rmdir] args = (0xf93b5164, 0x10, 0xf93b45b4, 0x0, 0xf9655a18, 0xf0002000, 0xf91725e0) fp = 0xf91725e0
  pc = 0xf005f9c0 [vn_lock] args = (0xf91726a8, 0xf00c8550, 0x78, 0xf07a2f00, 0xf00d9d18, 0x0, 0xf9172648) fp = 0xf9172648
  pc = 0xf0058b9c [vget] args = (0xf93b4528, 0x10012, 0xf002fc98, 0x6, 0x31, 0x0, 0xf91726c0) fp = 0xf91726c0
  pc = 0xf00c11a0 [ffs_sync] args = (0xf93b4528, 0x10012, 0x0, 0x31, 0x2, 0x1, 0xf9172728) fp = 0xf9172728
  pc = 0xf005b390 [sys_sync] args = (0x0, 0x2, 0xf0790700, 0xf016fbe8, 0xf00c10fc, 0xf0174730, 0xf91727a8) fp = 0xf91727a8
  pc = 0xf005a3f4 [vfs_shutdown] args = (0xf016fbe8, 0x0, 0x0, 0xf8e608c0, 0xf0173c00, 0x31, 0xf9172810) fp = 0xf9172810
  pc = 0xf010cf18 [cpu_reboot] args = (0xf016f800, 0xf0002000, 0xf0142c00, 0x0, 0xf9172928, 0x49000e7, 0xf9172878) fp = 0xf9172878
  pc = 0xf003caf8 [panic] args = (0x100, 0x0, 0x0, 0x0, 0xf917299c, 0x49000e0, 0xf91728e0) fp = 0xf91728e0
  pc = 0xf01186b0 [mem_access_fault4m] args = (0xf0118340, 0x100, 0xef3385d9, 0xf91729a8, 0x1e, 0x9c, 0xf9172948) fp = 0xf9172948
  pc = 0xf0006254 [memfault_sun4m] args = (0x0, 0x226, 0xef3385d9, 0xf9172a50, 0xf9171564, 0xf8e5cd20, 0xf91729f0) fp = 0xf91729f0
  pc = 0xf00bcc60 [ffs_nodealloccg] args = (0xff, 0x1f1ed20, 0xef3385d9, 0x90255, 0xffffffff, 0xf80, 0xf9172aa0) fp = 0xf9172aa0
  pc = 0xf00bb6e4 [ffs_hashalloc] args = (0x1f1ed20, 0xc7, 0x0, 0x81b4, 0x2, 0xf07e3500, 0xf9172b10) fp = 0xf9172b10
  pc = 0xf00bb2c0 [ffs_valloc] args = (0xf93b5130, 0xc7, 0xc0c80, 0x81b4, 0xf00bca94, 0xf80, 0xf9172b78) fp = 0xf9172b78
  pc = 0xf00c8e20 [ufs_makeinode] args = (0xf9172c58, 0xf00bb234, 0x98, 0xf9172c54, 0xf07a2f00, 0xf07bce00, 0xf9172bf0) fp = 0xf9172bf0
  pc = 0xf00c609c [ufs_create] args = (0x81b4, 0xf93b4528, 0xf9172e68, 0xf9172e7c, 0x8000, 0xf9172d58, 0xf9172c78) fp = 0xf9172c78
  pc = 0xf005ecf4 [vn_open] args = (0xf9172d40, 0x10, 0xf00c6070, 0xf07a2f00, 0xf013c400, 0xf93b4528, 0xf9172ce0) fp = 0xf9172ce0
  pc = 0xf005bb84 [sys_mknod] args = (0x0, 0x602, 0x1b4, 0x1b4, 0x208, 0x0, 0xf9172dc8) fp = 0xf9172dc8
  pc = 0xf0118a50 [syscall] args = (0x0, 0xf8e70dc0, 0xf9172f20, 0xf005bb08, 0x68, 0x26848, 0xf9172ec0) fp = 0xf9172ec0
  pc = 0xf00064ec [syscall] args = (0x5, 0xf9172fb0, 0x10098898, 0xa, 0x0, 0x14d7, 0xf9172f50) fp = 0xf9172f50
  pc = 0x36d0  args = (0xeffff3a0, 0x601, 0x1b4, 0xeffff3b9, 0x6, 0xffffffff, 0xefffea50) fp = 0xefffea50

dumping to dev 7,17 offset 296291
dump succeeded
rebooting

Resetting ... 
SPARCstation 5, No Keyboard
ROM Rev. 2.15, 256 MB memory installed, Serial #7788135.
Ethernet address 8:0:20:76:d6:67, Host ID: 8076d667.



Initializing Memory 
Boot device: /iommu/sbus/espdma@5,8400000/esp@5,8800000/sd@3,0  File and args: 
>> NetBSD/sparc Secondary Boot, Revision 1.9
>> (pk@flambard, Tue Oct 19 11:10:24 MEST 1999)
Booting netbsd
entry: 0x4000, bootinfo: 0x198e50
bootinfo[0]=0x199250; bootinfo[1]=0x198e58
nsym=0x1044c, ssym=0x175cc0, esym=0x198e50
OBP version 3, revision 2.15 (plugin rev 2)
console is ttya
Copyright (c) 1996, 1997, 1998, 1999
    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.4.1 (NEWS_ZOCALO) #1: Sat Nov 20 13:14:26 PST 1999
    buhrow@news:/usr/src/sys/arch/sparc/compile/NEWS_ZOCALO
real mem = 268029952
avail mem = 252669952
using 1792 buffers containing 7340032 bytes of memory
bootpath: /iommu@0,10000000/sbus@0,10001000/espdma@5,8400000/esp@5,8800000/sd@3,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 slot 0 offset 0x200000: mk48t08 (eeprom)
timer0 at obio0 slot 0 offset 0xd00000 delay constant 40
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6
zstty0 at zs0 channel 0 (console)
zstty1 at zs0 channel 1
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0
ms0 at zs1 channel 1
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000
power0 at obio0 slot 0 offset 0x910000 level 2
fdc0 at obio0 slot 0 offset 0x400000 level 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 slot 5 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target
probe(esp0:1:0): max sync rate 10.00Mb/s
sd1 at scsibus0 targ 1 lun 0: <SEAGATE, ST39102LCSUN9.0G, 0828> SCSI2 0/direct fixed
sd1: 8637MB, 4926 cyl, 27 head, 133 sec, 512 bytes/sect x 17689267 sectors
probe(esp0:2:0): max sync rate 10.00Mb/s
sd2 at scsibus0 targ 2 lun 0: <QUANTUM, FIREBALL_TM2110S, 300X> SCSI2 0/direct fixed
sd2: 2014MB, 6810 cyl, 4 head, 151 sec, 512 bytes/sect x 4124736 sectors
probe(esp0:3:0): max sync rate 10.00Mb/s
sd0 at scsibus0 targ 3 lun 0: <SEAGATE, ST5660N  SUN0535, 0522> SCSI2 0/direct fixed
sd0: 520MB, 3002 cyl, 4 head, 88 sec, 512 bytes/sect x 1065664 sectors
SUNW,bpp at sbus0 slot 5 offset 0xc800000 level 2 (ipl 3) not configured
ledma0 at sbus0 slot 5 offset 0x8400010: rev 2
le0 at ledma0 slot 5 offset 0x8c00000 level 6: address 08:00:20:76:d6:67
le0: 8 receive buffers, 2 transmit buffers
audiocs0 at sbus0 slot 4 offset 0xc000000 level 9: CS4231A
audio0 at audiocs0: full duplex
power-management at sbus0 slot 4 offset 0xa000000 not configured
dma1 at sbus0 slot 1 offset 0x100000: rev 1+
esp1 at sbus0 slot 1 offset 0x200000 level 5: ESP100A, 25MHz, SCSI ID 7
scsibus1 at esp1: 8 targets, 8 luns per target
probe(esp1:0:0): max sync rate 5.00Mb/s
sd3 at scsibus1 targ 0 lun 0: <SEAGATE, ST15150N, 0020> SCSI2 0/direct fixed
sd3: 4101MB, 3712 cyl, 21 head, 107 sec, 512 bytes/sect x 8399448 sectors
dma2 at sbus0 slot 2 offset 0x100000: rev 1+
esp2 at sbus0 slot 2 offset 0x200000 level 5: ESP100A, 25MHz, SCSI ID 7
scsibus2 at esp2: 8 targets, 8 luns per target
probe(esp2:3:0): max sync rate 5.00Mb/s
sd4 at scsibus2 targ 3 lun 0: <SEAGATE, ST19171N, 0024> SCSI2 0/direct fixed
sd4: 8683MB, 5268 cyl, 20 head, 168 sec, 512 bytes/sect x 17783112 sectors
root on sd0a dumps on sd2b
root file system type: ffs
WARNING: ccd0: end of partition `a' exceeds the size of ccd (35320320)
swapctl: adding /dev/sd0b as swap device at priority 0
swapctl: adding /dev/sd2b as swap device at priority 0
Automatic boot in progress: starting file system checks.
/dev/rsd0a: 2888 files, 97467 used, 154788 free (2708 frags, 19010 blocks, 1.1% fragmentation)
/dev/rsd0a: MARKING FILE SYSTEM CLEAN
WARNING: ccd0: end of partition `a' exceeds the size of ccd (35320320)
/dev/rsd2a: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/rsd2a: SUMMARY INFORMATION BAD (SALVAGED)
/dev/rsd2a: 37891 files, 389739 used, 1159577 free (48953 frags, 138828 blocks, 3.2% fragmentation)
/dev/rsd2a: MARKING FILE SYSTEM CLEAN
/dev/rsd3c: 46534 files, 426322 used, 3638816 free (94328 frags, 443061 blocks, 2.3% fragmentation)
/dev/rsd3c: MARKING FILE SYSTEM CLEAN
/dev/rccd0c: DIRECTORY /alt/tv/melrose-place: LENGTH 1040 NOT MULTIPLE OF 512 (ADJUSTED)
/dev/rccd0c: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
/dev/rccd0c: BLK(S) MISSING IN BIT MAPS (SALVAGED)
/dev/rccd0c: SUMMARY INFORMATION BAD (SALVAGED)
/dev/rccd0c: 1001419 files, 10697167 used, 6411024 free (235408 frags, 771952 blocks, 1.4% fragmentation)
/dev/rccd0c: MARKING FILE SYSTEM CLEAN
setting tty flags
starting network
hostname: news
configuring network interfaces: le0.
WARNING: ccd0: end of partition `a' exceeds the size of ccd (35320320)
starting system logger
checking for core dump...
savecore: reboot after panic: kernel fault
savecore: system went down at Mon Dec 27 11:01:35 1999
savecore: writing core to /var/crash/netbsd.101.core
starting rpc daemons: portmap.
starting nfs daemons:.
creating runtime link editor directory cache.
checking quotas: done.
building databases...
clearing /tmp
updating motd.
turning on accounting
standard daemons: update cron.
starting network daemons: inetd.
starting local daemons:Setting autonicetime to 0
Setting kern.maxvnodes to 10832
Starting news services
INND:  PID file exists -- unclean shutdown!
send-mail: mailwrapper: can't open /etc/mailer.conf: No such file or directory
Starting innd.
.
Mon Dec 27 11:19:09 PST 1999
Dec 27 11:19:10 news init: kernel security level changed from 0 to 1
%
%exit
%exit

Script done on Mon Dec 27 12:01:53 1999