Subject: kern/16425: mfs /dev does not unmount cleanly
To: None <>
From: Martin Husemann <>
List: netbsd-bugs
Date: 04/20/2002 10:20:49
>Number:         16425
>Category:       kern
>Synopsis:       mfs /dev does not unmount cleanly
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 20 01:21:00 PDT 2002
>Originator:     Martin Husemann
>Release:        NetBSD 1.5ZC
System: NetBSD 1.5ZC NetBSD 1.5ZC (DROWSY) #0: Fri Apr 19 08:42:35 CEST 2002 shark
Architecture: arm
Machine: shark

I moved my shark from aout to ELF by basically nuking everything and installing
from a "make distribution". I forgot to populate /dev though. Stupid me.

Now our glorious emergency fallback kicks in and creates a mfs /dev for me:

root file system type: ffs
warning: no /dev/console

... and later:

drowsy# mount
/dev/wd0a on / type ffs (soft dependencies, local)
mfs:7 on /dev type mfs (local)

Unfortunately on every shutdown it panics:

panic: kernel diagnostic assertion "vp != NULL" failed: file "/usr/src/sys/arch/shark/compile/DROWSY/../../../../ufs/ffs/ffs_softdep.c", line 4664

Stopped in pid 7 (mount_mfs) at 0xf010a16c:     ldmdb   r11, {r11, r13, r15}
db> tr
        scp=0xf010a168 rlv=0xf009e960 (0xf009e960)
        rsp=0xf536eb64 rfp=0xf536eb78
        scp=0xf009e894 rlv=0xf013bb74 (0xf013bb74)
        rsp=0xf536eb8c rfp=0xf536eba0
        scp=0xf013bb54 rlv=0xf005fcfc (0xf005fcfc)
        rsp=0xf536eba4 rfp=0xf536ec08

see above