Subject: Re: 4.99.16 (-current) panic
To: Gert Doering <gert@greenie.muc.de>
From: Gert Doering <gert@greenie.muc.de>
List: port-sparc64
Date: 04/09/2007 21:30:43
Hi,

On Mon, Apr 09, 2007 at 07:38:06PM +0200, Juergen Hannken-Illjes wrote:
> > The first couple of crashes were triggered by "uux", the second to last
> > crash was triggered by sending a mail to a uucp-connected host (the
> > offending process being "uustat" this time), and the last crash was
> > triggered by doing:
> > 
> >   cd /var/spool/uucp
> >   ls
> > 
> > - so it looks like "something with the root inode of a NFS-exported
> > file system".  Maybe coupled with "a COMPAT_20 binary"?
> 
> It may be NFS exported, but is not a root inode.

Yes, you're right.  My bad, this was a memory from an older machine - this
machine has a FFS filesystem on /var/spool, and no dedicated "uucp" 
filesystem anymore.

> Which binaries are COMPAT_20? ksh / ls or uu??

All of them.  The complete userland is still 2.0.3, as I want to be sure
that the kernel does the right thing before going a path with no return
(i.e.: upgrade to 4.99.17).

> Whenever `v_usecount' gets decremented there should be a DIAGNOSTIC check.
> 
> Could you add `options DIAGNOSTIC' to your kernel config and try again?

*working*

Hmmm, interesting.

-------- snip --------
...
Adding interface aliases:
Building databases...
Starting syslogd.
Checking for core dump...
savecore: /4netbsd: _time not in namelist
Starting named.
Apr  9 21:07:10 kirk /netbsd: kbd0: reset failed
Apr  9 21:07:09 kirk savecore: /4netbsd: _time not in namelist
Setting date via ntp.
Apr  9 21:07:12 kirk ntpdate[571]: sendto(ns6.dns.space.net): Undefined error: 0
Starting rpcbind.
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Starting mountd.
vput: bad ref count: tag VT_UFS(1) type VDIR(2), usecount -1, writecount 0, refcount 0, flags (0<LOCKSWORK>)
	tag VT_UFS, ino 667648, on dev 12, 4 flags 0x0, effnlink 55, nlink 55
	mode 040755, owner 202, group 0, size 1536 not locked
panic: vput: ref cnt
cpu0: kdb breakpoint at 12f1240
Stopped in pid 623.1 (mountd) at        netbsd:cpu_Debugger+0x4:        nop
db> trace
vput(c87f050, be98480, 0, c823c60, c823ca8, 1c) at netbsd:vput+0xcc
sys_mount(16, 20a0e0, c823e00, 212628, 14c8, 6) at netbsd:sys_mount+0x88
syscall_plain(c823ed0, 4, 40932a34, 40932a38, 2, 40932a34) at netbsd:syscall_pla
in+0x130
?(ffffffffffffcac0, 20a0e0, ffffffff80011000, ffffffffffffc6f0, 214000, 0) at 0x
10092fc
db> show vnode /f 0xc87f050
OBJECT 0xc87f050: locked=0, pgops=0x180fb18, npages=0, refs=-1
  PAGES <pg,offset>:

VNODE flags 80<LOCKSWORK>
mp 0x27f7000 numoutput 0 size 0x600
data 0xc87cf50 usecount -1 writecount 0 holdcnt 0 numoutput 0
tag VT_UFS(1) type VDIR(2) mount 0x27f7000 typedata 0x0
clean bufs:
dirty bufs:
db> sync
syncing disks... hme0: status=30001<GOTFRAME,RXTOHOST,NORXD>
-------- snip --------

"dev 12,4" is /dev/wd0e:

brw-r-----  1 root  operator       12, 4 Mar 12  2003 /dev/wd0e
/dev/wd0e on /home type ffs (soft dependencies, NFS exported, local)

"ino 667648" is /home/pkgsrc, which is the first exported filesystem
in /etc/exports.

gert

-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert@net.informatik.tu-muenchen.de