Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 1996 12:49:11 +0300 (EET DST)
From:      Heikki Suonsivu <hsu@clinet.fi>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/1856: read-only nfs mount: panic leaf should be empty
Message-ID:  <199610210949.MAA15373@katiska.clinet.fi>
Resent-Message-ID: <199610210950.CAA04198@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1856
>Category:       kern
>Synopsis:       read-only nfs mount: panic leaf should be empty
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 21 02:50:01 PDT 1996
>Last-Modified:
>Originator:     Heikki Suonsivu
>Organization:
Clinet, Espoo, Finland
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

-current from about three weeks back

>Description:

I tried to upgrade current from about three weeks back in one of our
modem servers:

mount -o ro master:/usr /master/usr
cd /usr/src (/usr/src and /usr/obj are links to /master/usr/{src,obj})
make reinstall |& tee /var/tmp/reinstall.log |& mail hsu@clinet.fi

It always crashed after doing mtrees.

This probably is because of read-only mount, though there is a possibility
that root and usr being async mounted also contribute to this.  I have
installed several systems with / and /usr async mounted so I think
read-only mount is more probable cause.

osku# gdb -k kernel.58 vmcore.58
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.13 (i386-unknown-freebsd), 
Copyright 1994 Free Software Foundation, Inc...
IdlePTD 24b000
current pcb at 1f7e5c
panic: leaf should be empty
#0  boot (howto=256) at ../../kern/kern_shutdown.c:237
237                                     dumppcb.pcb_cr3 = rcr3();
(kgdb) bt
#0  boot (howto=256) at ../../kern/kern_shutdown.c:237
#1  0xf010ea62 in panic (fmt=0xf0129cf2 "leaf should be empty")
    at ../../kern/kern_shutdown.c:361
#2  0xf012a007 in lookup (ndp=0xefbfff0c) at ../../kern/vfs_lookup.c:405
#3  0xf0129b00 in namei (ndp=0xefbfff0c) at ../../kern/vfs_lookup.c:149
#4  0xf012d7a5 in unlink (p=0xf2d7d800, uap=0xefbfff94, retval=0xefbfff84)
    at ../../kern/vfs_syscalls.c:986
#5  0xf01c6427 in syscall (frame={tf_es = 39, tf_ds = 39, tf_edi = -272639680, 
      tf_esi = -272639512, tf_ebp = -272639584, tf_isp = -272629788, 
      tf_ebx = -272639442, tf_edx = 0, tf_ecx = -272639697, tf_eax = 10, 
      tf_trapno = 7, tf_err = 7, tf_eip = 103509, tf_cs = 31, tf_eflags = 582, 
      tf_esp = -272639704, tf_ss = 39}) at ../../i386/i386/trap.c:891
#6  0xf01be615 in Xsyscall ()
#7  0x1266 in ?? ()
#8  0x107f in ?? ()
(kgdb) 

ftp://ftp.clinet.fi/pub/FreeBSD/crashdumps/ts/*.{57,58}.gz

>How-To-Repeat:

Above description worked; probably any load might do it ?

>Fix:
	


>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610210949.MAA15373>