Subject: Re: Panic!
To: Rick GC <rickgc@calweb.com>
From: David Brownlee <abs@anim.dreamworks.com>
List: port-sun3
Date: 06/28/1997 14:13:58
	Have you run 'fsck -f' from single user?

		David/abs

- "It was at that point I realised there might be a chance for myself as a
-  caring human being. Unable to decide whether to feel hopeful or disgusted,
-  I chose both and opened a bottle of wine to celebrate"

On Sat, 28 Jun 1997, Rick GC wrote:

> I have been running a Sun 3/150 with NetBSD 1.2 since March and have had no
> problems untill about a week ago when I started up the vi editor and the
> system went into a panic then dropped into the debugger.  I rebooted the
> system and it came up and after trying a few other utilities like ed and
> when I try to shut the system down it would panic as well. An example
> follows showing what happened when I use shutdown -h now which I have used
> many times before with no problems:
> 
>        sapphire# shutdown -h now
>        Shutdown NOW!
>        shutdown: [pid 102]
>        mode = 0100644, inum = 6196, fs = /
>        panic: ffs_valloc: dup alloc
>        Stopped at      _Debugger+0x6:  unlk    a6
>        db>
> 
> I have included the boot up sequence till the time it panics at the end of
> this posting to show some stats if anyone requires it. At this point I am
> with out a clue as to what is the cause, any ideas?
> 
> Rick GC
> 
> ****************************************************************************
> *****
> 
> >b sd()
> Boot: sd(0,0,0)
> >> NetBSD ufsboot [$Revision: 1.2 $]
> 725304+35820+81316+[58320+56227]=0xe9a3f
> Starting program at 0x4000
> sun3_save_symtab:  found 58320 + 56227
> console is zstty0 (ttya)
> [ preserving 114551 bytes of netbsd symbol table ]
> Copyright (c) 1982, 1986, 1989, 1991, 1993
>         The Regents of the University of California.  All rights reserved.
> 
> NetBSD 1.2 (GENERIC) #89: Thu Oct  3 18:08:02 EDT 1996
>     gwr@bach:/play/gwr/netbsd/build/sys/arch/sun3/compile/GENERIC
> Model: Sun 3/160 (hostid 11007dfb)
> fpu: mc68881
> real mem = 16760832
> avail mem = 14589952
> using 115 buffers containing 942080 bytes of memory
> mainbus0 (root)
> obio0 at mainbus0
> zsc0 at obio0 addr 0x0 level 6 (softpri 3)
> kbd0 at zsc0 channel 0
> ms0 at zsc0 channel 1
> zsc1 at obio0 addr 0x20000 level 6 (softpri 3)
> zstty0 at zsc1 channel 0 (console)
> zstty1 at zsc1 channel 1
> eeprom0 at obio0 addr 0x40000
> clock0 at obio0 addr 0x60000 level 5
> memerr0 at obio0 addr 0x80000 (ECC memory)
> intreg0 at obio0 addr 0xa0000
> ie0 at obio0 addr 0xc0000 level 3 hwaddr 08:00:20:08:51:57
> obmem0 at mainbus0
> bwtwo0 at obmem0 addr 0xff000000 (1152x900)
> vmes0 at mainbus0
> si0 at vmes0 addr 0xff200000 level 2 vector 0x40 : options=3
> scsibus0 at si0
> sd0 at scsibus0 targ 0 lun 0: <MAXTOR, XT-4380S, SC07> SCSI1 0/direct fixed
> sd0: 319MB, 1224 cyl, 15 head, 35 sec, 512 bytes/sec
> sd2 at scsibus0 targ 1 lun 0: <MAXTOR, XT-4380S, SC07> SCSI1 0/direct fixed
> sd2: 318MB, 1224 cyl, 15 head, 35 sec, 512 bytes/sec
> vmel0 at mainbus0
> root on sd0a
> swap on sd0b
> dump on sd0b
> Automatic boot in progress: starting file system checks.
> /dev/rsd0a: INCORRECT BLOCK COUNT I=6196 (2 should be 0) (CORRECTED)
> /dev/rsd0a: UNREF FILE I=6196  OWNER=root MODE=100644
> /dev/rsd0a: SIZE=0 MTIME=Jun  2 03:01 1997  (CLEARED)
> /dev/rsd0a: FREE BLK COUNT(S) WRONG IN SUPERBLK (SALVAGED)
> /dev/rsd0a: 674 files, 9200 used, 250366 free (414 frags, 31244 blocks, 0.2% fra
> gmentation)
> /dev/rsd0a: MARKING FILE SYSTEM CLEAN
> /dev/rsd2e: 3787 files, 51189 used, 259004 free (1676 frags, 32166 blocks, 0.5%
> fragmentation)
> /dev/rsd2e: MARKING FILE SYSTEM CLEAN
> /dev/sd0a: file system not clean; please fsck(8)
> setting tty flags
> kbd0: reset failed
> starting network
> ie0: TDR detected a short 4096 clocks away
> add host sapphire.gem.com: gateway localhost
> starting rpc daemons: portmap.
> starting system logger, time daemonJun 28 05:30:35 sapphire /netbsd: kbd0: reset
>  failed
> .
> checking quotas: done.
> building databases...
> clearing /tmp
> standard daemons: update cron.
> starting network daemons: routed printer inetd.
> creating runtime link editor directory cache.
> starting local daemons:.
> Sat Jun 28 05:30:56 PDT 1997
> Jun 28 05:30:57 sapphire init: kernel security level changed from 0 to 1
> 
> NetBSD/sun3 (sapphire.gem.com) (console)
> 
> login: root
> Last login: Fri Jun 27 20:47:24 on console
> Jun 28 05:42:53 sapphire login: ROOT LOGIN (root) ON console
> Jun 28 05:42:53 sapphire login: ROOT LOGIN (root) ON console
> Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
>         The Regents of the University of California.   All rights reserved.
> 
> NetBSD 1.2 (GENERIC) #89: Thu Oct  3 18:08:02 EDT 1996
> 
> Welcome to NetBSD!
> 
> Terminal type? [unknown] vt100
> Don't login as root, use su
> sapphire# cd /etc
> sapphire# shutdown -h now
> Shutdown NOW!
> shutdown: [pid 102]
> mode = 0100644, inum = 6196, fs = /
> panic: ffs_valloc: dup alloc
> Stopped at      _Debugger+0x6:  unlk    a6
> db>
>