Subject: kern/12484: Softdep crashes
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@augustsson.net>
List: netbsd-bugs
Date: 03/27/2001 00:49:32
>Number:         12484
>Category:       kern
>Synopsis:       Softdep crashes
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 26 14:50:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Lennart Augustsson
>Release:        NetBSD-current 2001-03-26
>Organization:
>Environment:
System: NetBSD hobbes 1.5T NetBSD 1.5T (HOBBES) #32: Mon Mar 26 19:55:16 MEST 2001 augustss@hobbes:/usr/src/sys/arch/i386/compile/HOBBES i386
Architecture: i386
Machine: i386
>Description:
	I decided to turn on softdep on /usr on my laptop again.
	Well, it took about 30 seconds after logging in until the
	kernel paniced (I didn't really expect softdep to work,
	it's never worked before on my laptop :).
>How-To-Repeat:
	Mount a /usr with softdep, then
	mount -u -o noatime /usr
	(which my /etc/apm/battery script does), then
	edit a file with emacs, when saving the file the system crashes.

	This seems to be perfectly repeatable, and here's the traceback:

	panic: softdep_fsync: pending ops
	Begin traceback...
	softdep_fsync(cb0a9100) at softdep_fsync+0x7a
	sys_fsync(cb1c339c,cb1d5f88,cb1d5f80) at sys_fsync+0x83
	syscall_plain(2b,2b,20,1,bfbfd26c) at syscall_plain+0x98
	End traceback...
	syncing disks... panic: lockmgr: locking against myself
	Begin traceback...
	lockmgr(cb0a9184,10012,cb0a9100,cb1d5e34,c019a3cf) at lockmgr+0x556
	genfs_lock(cb1d5e28,c0342c60,cb0a9100,10012,cb1d5e4c) at genfs_lock+0x18
	VOP_LOCK(cb0a9100,10012) at VOP_LOCK+0x2b
	vn_lock(cb0a9100,10012,cb0a9100,cb0cd570,cb1d5e88) at vn_lock+0x46
	vget(cb0a9100,10012) at vget+0xbe
	ffs_sync(c0729a00,2,c076a200,cb1c339c) at ffs_sync+0x90
	sys_sync(cb1c339c,0,0,100,c03590a9) at sys_sync+0x56
	vfs_shutdown(cb1d5f14,cb1d5f08,c017b5d1,100,0) at vfs_shutdown+0x64
	cpu_reboot(100,0,cb0a9100,0,c076b800) at cpu_reboot+0x3b
	panic(c03590a9,cb0a9100,0,cb1c339c,cb1d5f60) at panic+0xcd
	softdep_fsync(cb0a9100) at softdep_fsync+0x7a
	sys_fsync(cb1c339c,cb1d5f88,cb1d5f80) at sys_fsync+0x83
	syscall_plain(2b,2b,20,1,bfbfd26c) at syscall_plain+0x98
	End traceback...

>Fix:
	Don't use softdep.
>Release-Note:
>Audit-Trail:
>Unformatted: