Subject: Re: pwd returning duplicate directory in path
To: Erik E. Fair <fair@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 02/13/2004 21:56:50
On Fri, Feb 13, 2004 at 12:45:55PM -0800, Erik E. Fair wrote:
> I have seen this bug on my house NFS server (a DigitalServer 3305, 
> nee AlphaServer 800 5/500), which is running:
> 
> NetBSD 1.5ZC (ALPHA-$Revision: 1.161 $) #4: Sun Apr 28 12:22:46 PDT 2002
>     root@digital.clock.org:/usr/obj/sys/arch/alpha/compile/DS3305
> DIGITAL Server 3000 Model 3305 6500A, 500MHz, s/n NI82407HTJ
> 8192 byte page size, 1 processor.
> total memory = 512 MB
> (2096 KB reserved for PROM, 509 MB used by NetBSD)
> avail memory = 364 MB
> using 16300 buffers containing 127 MB of memory
> mainbus0 (root)
> cpu0 at mainbus0: ID 0 (primary), 21164A-2
> cpu0: Architecture extensions: 1<BWX>
> cia0 at mainbus0: DECchip 2117x Core Logic Chipset (ALCOR/ALCOR2), pass 3
> cia0: extended capabilities: 21<DWEN,BWEN>
> cia0: using BWX for PCI config access
> [...]

Mine is a DS20:
NetBSD 1.6.1_STABLE (DISCO) #3: Sun Aug 24 16:17:28 MEST 2003
    bouyer@disco:/home/src/sys/arch/alpha/compile/DISCO
AlphaServer DS20 500 MHz, s/n AY95308082
8192 byte page size, 1 processor.
total memory = 512 MB
(2664 KB reserved for PROM, 509 MB used by NetBSD)
avail memory = 444 MB
using 6520 buffers containing 52160 KB of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21264-4
cpu0: Architecture extensions: 303<PAT,MVI,FIX,BWX>

For now all report of similar problems have been for alpha systems.

> 
> When it shows up, NFS will begin to fail, and the system must be 
> rebooted to make everything happy again. I tend to see it after 

This is why I had to reboot it too. It's because mountd uses getcwd(),
and can't work properly if it returns nonsense.

> running for about six months or so. I also believe it's a namei cache 
> issue of some kind.

It was up since about 50 days when this happened.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--