Subject: Yet another softdep problem?
To: None <current-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 12/11/1999 13:30:26
NetBSD 1.4P (CUSTOM) #8: Fri Dec  3 11:16:25 MET 1999

With soft dependencies enabled I to run the following command:

    ( cd /usr && \
      rm -rf src obj X11R6/src pkgsrc pkgobj && \
      dd if=/dev/rsd2d bs=32k | gunzip | restore rf - )

After restoring some files the disk was 100% active, did not seek
and the machine looked dead.

A `reboot 0x100' from ddb gave `panic: lockmgr: no context'.

From the crashdump `systat buf' gives:

File System  Bufs used   %   kB in use   %  Bufsize kB   %  Util %
/usr               511  60        2622  78        3152  93      83
/                   22   2         160   4         160   4     100

Total:             533  63        2782  82        3312  98      83

The crashdump is available on request. Process stack dumps follow.

-- 
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)

panic: lockmgr: no context
#0  0xf02aef9e in in6mask128 ()

restore  [f4bc750c]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016f444 in getnewbuf ()
#3  0xf016f169 in getblk ()
#4  0xf016e9a5 in bread ()
#5  0xf02090e1 in ffs_alloccg ()
#6  0xf0208b0f in ffs_hashalloc ()
#7  0xf0207a4f in ffs_alloc ()
#8  0xf020c507 in ffs_balloc ()
#9  0xf0210f49 in ffs_write ()
#10 0xf017aac8 in vn_write ()
#11 0xf015e12c in dofilewrite ()
#12 0xf015e08f in sys_write ()
#13 0xf023d0e5 in syscall ()

gunzip  [f4bc73cc]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016ab71 in sbwait ()
#3  0xf0169146 in sosend ()
#4  0xf015f6f5 in soo_write ()
#5  0xf015e12c in dofilewrite ()
#6  0xf015e08f in sys_write ()
#7  0xf023d0e5 in syscall ()

dd  [f4bc728c]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016ab71 in sbwait ()
#3  0xf0169146 in sosend ()
#4  0xf015f6f5 in soo_write ()
#5  0xf015e12c in dofilewrite ()
#6  0xf015e08f in sys_write ()
#7  0xf023d0e5 in syscall ()

sh  [f4bc700c]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d983 in sys_wait4 ()
#3  0xf023d0e5 in syscall ()

egrep  [f4bc714c]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016ab71 in sbwait ()
#3  0xf016990f in soreceive ()
#4  0xf015f6d5 in soo_read ()
#5  0xf015dd53 in dofileread ()
#6  0xf015dcb7 in sys_read ()
#7  0xf023d0e5 in syscall ()

tee  [f4a13640]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016ab71 in sbwait ()
#3  0xf016990f in soreceive ()
#4  0xf015f6d5 in soo_read ()
#5  0xf015dd53 in dofileread ()
#6  0xf015dcb7 in sys_read ()
#7  0xf023d0e5 in syscall ()

sh  [f4a138c0]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d983 in sys_wait4 ()
#3  0xf023d0e5 in syscall ()

sh  [f4a13dc0]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d983 in sys_wait4 ()
#3  0xf023d0e5 in syscall ()

systat  [f4a13780]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016f444 in getnewbuf ()
#3  0xf016f169 in getblk ()
#4  0xf016e9a5 in bread ()
#5  0xf0210c14 in ffs_read ()
#6  0xf017a99e in vn_read ()
#7  0xf015dd53 in dofileread ()
#8  0xf015dcb7 in sys_read ()
#9  0xf023d0e5 in syscall ()

sh  [f4a13a00]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d983 in sys_wait4 ()
#3  0xf023d0e5 in syscall ()

sh  [f4a13b40]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d983 in sys_wait4 ()
#3  0xf023d0e5 in syscall ()

sh  [f4a13c80]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016f444 in getnewbuf ()
#3  0xf016f169 in getblk ()
#4  0xf016e9a5 in bread ()
#5  0xf020e50d in ffs_blkatoff ()
#6  0xf021b5b0 in ufs_lookup ()
#7  0xf017296b in lookup ()
#8  0xf017265f in namei ()
#9  0xf01784d8 in sys___stat13 ()
#10 0xf023d0e5 in syscall ()

usb0  [f4a13500]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf0283cc5 in usb_event_thread ()
#3  0xf0100327 in proc_trampoline ()

ioflush  [f4a133c0]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf016f444 in getnewbuf ()
#3  0xf016f169 in getblk ()
#4  0xf021075c in ffs_sbupdate ()
#5  0xf021082f in ffs_cgupdate ()
#6  0xf02102a0 in ffs_sync ()
#7  0xf0182dbb in sync_fsync ()
#8  0xf01830c5 in sched_sync ()
#9  0xf0100327 in proc_trampoline ()

reaper  [f4a13280]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d641 in reaper ()
#3  0xf0149be4 in start_reaper ()
#4  0xf0100327 in proc_trampoline ()

pagedaemon  [f4a13140]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf0224d7e in uvm_sleep ()
#3  0xf022cb11 in uvm_pageout ()
#4  0xf0149bd8 in start_pagedaemon ()
#5  0xf0100327 in proc_trampoline ()

init  [f4a13000]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf014d983 in sys_wait4 ()
#3  0xf023d0e5 in syscall ()

swapper  [f03182a0]
#0  0xf0156434 in mi_switch ()
#1  0xf0155d8d in bpendtsleep ()
#2  0xf0225149 in uvm_scheduler ()
#3  0xf014998a in main ()