From nobody  Thu Oct 22 22:08:36 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id WAA21246;
          Thu, 22 Oct 1998 22:08:36 -0700 (PDT)
          (envelope-from nobody)
Message-Id: <199810230508.WAA21246@hub.freebsd.org>
Date: Thu, 22 Oct 1998 22:08:36 -0700 (PDT)
From: N/A
To: freebsd-gnats-submit@freebsd.org
Subject: __getcwd() from an (forcibly) unmounted fs panics.
X-Send-Pr-Version: www-1.0

>Number:         8420
>Category:       kern
>Synopsis:       __getcwd() from an (forcibly) unmounted fs panics.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 22 22:10:00 PDT 1998
>Closed-Date:    Wed May 16 17:32:44 PDT 2001
>Last-Modified:  Wed May 16 17:35:42 PDT 2001
>Originator:     Juha Nurmela
>Release:        3.0-19980831-SNAP
>Organization:
N/A
>Environment:
FreeBSD pena 3.0-19980831-SNAP
FreeBSD 3.0-19980831-SNAP #25:
Thu Oct 22 14:43:39 EEST 1998
junki@pena:/usr/src/sys/compile/PENA  i386
>Description:
Optimization to "pwd" causes a reference to bad current directory,
in kern/vfs_syscalls.c:__getcwd(), when filesystem has been
taken away by force (when changing CD's with simple scripts, for example).

>How-To-Repeat:
mount /cdrom
cd /cdrom/foo

umount -f /cdrom    # typically from another terminal, wm menu etc.

pwd                 # any command that does getcwd(3)
>Fix:
Workaround: sysctl -w debug.disablecwd=1
Probable fix: another loop termination clause to __getcwd() ?

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Wed May 16 17:32:44 PDT 2001 
State-Changed-Why:  

It appears that this issue was fixed some time ago in revision 1.42 
of src/sys/kern/vfs_cache.c. Thanks for the bug report! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=8420 
>Unformatted:
