Subject: kern/10831: panic: bawrite LFS buffer
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jarle@runit.no>
List: netbsd-bugs
Date: 08/14/2000 09:25:15
>Number:         10831
>Category:       kern
>Synopsis:       panic: bawrite LFS buffer
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 14 09:26:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jarle Greipsland
>Release:        NetBSD-current 2000-08-13
>Organization:
RUNIT as
>Environment:
	
System: NetBSD honey.runit.no 1.5E NetBSD 1.5E (HONEY) #0: Mon Aug 14 14:18:04 CEST 2000     jarle@honey.runit.no:/usr/src/sys/arch/alpha/compile/HONEY alpha

>Description:
This crash occurred while the system was doing a 'make build'.  The build
uses objdirs in /usr/obj, nullfs+LFS on a CCD.

panic: bawrite LFS buffer
Stopped in ranlib at    cpu_Debugger+0x4:       ret     zero,(ra)
db> trace
cpu_Debugger() at cpu_Debugger+0x4
panic() at panic+0xfc
lfs_bwrite() at lfs_bwrite+0x44
bawrite() at bawrite+0x48
getnewbuf() at getnewbuf+0x160
getblk() at getblk+0x1c8
cluster_rbuild() at cluster_rbuild+0x1e0
cluster_read() at cluster_read+0x400
lfs_read() at lfs_read+0x1f0
layer_bypass() at layer_bypass+0x138
vn_read() at vn_read+0x118
dofileread() at dofileread+0xd0
sys_read() at sys_read+0xa0
syscall() at syscall+0x1c8
XentSys() at XentSys+0x50
--- syscall (3, netbsd.sys_read) ---
--- user mode ---

Unfortunately I didn't manage to get a core dump this time.

honey# df -l
Filesystem       1K-blocks     Used    Avail Capacity  Mounted on
/dev/wd0a            49711    35253    11972    74%    /
/dev/wd0d          1485749   314528  1096933    22%    /usr
/dev/wd0f           507750   239491   242871    49%    /var
/dev/wd0g          6059635        3  5756650     0%    /local
kernfs                   1        1        0   100%    /kern
mfs:121              62383        3    59260     0%    /tmp
/dev/sd0a          8644911  5824672  2387993    70%    /home
/home/usr/src      8644911  5824672  2387993    70%    /usr/src
/home/usr/xsrc     8644911  5824672  2387993    70%    /usr/xsrc
/home/usr/pkg      8644911  5824672  2387993    70%    /usr/pkg
/home/usr/pkgsrc   8644911  5824672  2387993    70%    /usr/pkgsrc
/dev/ccd0a        10691192   102624  9519449     1%    /spare
/spare/usr/obj    10691192   102624  9519449     1%    /usr/obj

honey# cat /etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0d /usr ffs rw 1 2
/dev/wd0f /var ffs rw 1 2
/dev/wd0g /local ffs rw 1 2
/kern /kern kernfs rw
/dev/wd0b /tmp mfs rw,-s=129024 0 0
/dev/sd0a /home ffs rw 1 2
/dev/ccd0a /spare lfs rw,noauto 0 0
/home/usr/src /usr/src null rw 0 0
/home/usr/xsrc /usr/xsrc null rw 0 0
/home/usr/pkg /usr/pkg null rw 0 0
/home/usr/pkgsrc /usr/pkgsrc null rw 0 0
/spare/usr/obj /usr/obj null rw,noauto 0 0

I'm not really sure if this is a generic LFS error, or whether it has
anything to do with multi-layered file system stuff.

	
>How-To-Repeat:

	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: