From owner-freebsd-bugs Thu Oct 22 22:10:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA21383 for freebsd-bugs-outgoing; Thu, 22 Oct 1998 22:10:10 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA21357 for ; Thu, 22 Oct 1998 22:10:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id WAA19139; Thu, 22 Oct 1998 22:10:01 -0700 (PDT) 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@FreeBSD.ORG To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: kern/8420: __getcwd() from an (forcibly) unmounted fs panics. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8420 >Category: kern >Synopsis: __getcwd() from an (forcibly) unmounted fs panics. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 22 22:10:00 PDT 1998 >Last-Modified: >Originator: Juha Nurmela >Organization: N/A >Release: 3.0-19980831-SNAP >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() ? >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message