A kernel built from May 8 sources hangs on reboot while trying to
unmount /kernfs. Maybe this is the same ffs_sync() problem as was
causing the crash with MFS?
(I'm building today's kernel and trying it now....)
historically# reboot
May 11 13:19:48 historically reboot: rebooted by root
May 11 13:19:48 reboot: rebooted by root
May 11 13:19:48 historically init: stopping tty respawning and waiting for
halt/reboot/poweroff (or SIGINT)...
May 11 13:19:49 historically syslogd: Exiting on signal 15
init: stopping tty respawning and waiting for halt/reboot/poweroff (or
SIGINT)...
reboot: Notice: pausing 5 seconds for processes to clean up before the 'kill
-KILL -1'
syncing disks... 2 done
unmounting file systems...
unmounting /kern (kernfs)...[halt sent]
Stopped in pid 156.1 (mount_mfs) at netbsd:breakpoint+0x4: popl %ebp
db{0}> trace
breakpoint(0,3f8,5,0,c0b94d80,c301e50c,c0b94de8,c30b313a,c30b4000,800) at
netbsd:breakpoint+0x4
comintr(c301e400,cde5c99c,deadbeef,1,4449485f,0,0,0,0,0) at netbsd:comintr+0x575
DDB lost frame for netbsd:Xintr_ioapic_edge4+0xa9, trying 0xcd3b0f74
Xintr_ioapic_edge4() at netbsd:Xintr_ioapic_edge4+0xa9
--- interrupt ---
--- switch to interrupt stack ---
Xspllower(0,c040dce7,0,0,8,c05293ea,0,c08103e8,0,ce1115d0) at
netbsd:Xspllower+0xf
mutex_vector_enter(c0bc0388,0,1,0,0,0,0,ce11152c,cdefc000,ce11152c) at
netbsd:mutex_vector_enter+0x202
ffs_sync(cdefc000,1,cc6a5f00,0,0,cdefc000,cde5cb2c,c051ea1d,cdefc000,1) at
netbsd:ffs_sync+0x2a7
VFS_SYNC(cdefc000,1,cc6a5f00,101a,0,c04326b4,1,0,cdda0054,9bbfe000) at
netbsd:VFS_SYNC+0x2c
dounmount(cdefc000,0,cde6c800,0,cdefc044,cdefc000,fffffffd,c0432057,cdefc0d8,c0a5f160)
at netbsd:dounmount+0xfd
mfs_start(cdefc000,0,0,ce111718,ce111718,0,cde5cc9c,c051f782,cdefc000,0) at
netbsd:mfs_start+0xef
VFS_START(cdefc000,0,0,cde5ccc0,0,0,1e5cbcc,c3213a80,0,cdde0e1c) at
netbsd:VFS_START+0x25
do_sys_mount(cde6c800,c0af3980,8076522,bfbfffa2,58,bfbfece0,0,78,cde5ccd8,0) at
netbsd:do_sys_mount+0x932
compat_40_sys_mount(cde6c800,cde5cd00,cde5cd28,bfbfedbc,bfbfe000,cc6bc3d4,2,8076522,bfbfffa2,58)
at netbsd:compat_40_sys_mount+0x48
syscall(cde5cd48,b3,ab,bfbf001f,1f,0,bfbfeedc,bfbfee68,0,bfbfece0) at
netbsd:syscall+0xab
db{0}> reboot
Mutex error: lockdebug_wantlock: acquiring sleep lock from interrupt context
lock address : 0x00000000c0bb6c6c type : sleep/adaptive
shared holds : 0 exclusive: 0
shares wanted: 0 exclusive: 0
current cpu : 0 last held: 1
current lwp : 0x00000000cde6c800 last held: 000000000000000000
last locked : 0x00000000c04c661c unlocked : 0x00000000c04c668e
initialized : 0x00000000c04c7685
owner field : 000000000000000000 wait/spin: 0/0
Turnstile chain at 0xc0bb6600.
=> No active turnstile for this lock.
panic: LOCKDEBUG
Stopped in pid 156.1 (mount_mfs) at netbsd:breakpoint+0x4: popl %ebp
db{0}> x/I 0x00000000c04c7685
netbsd:config_init+0x35: movl $0xc0a6d194,%eax
db{0}> x/I 0x00000000c04c661c
netbsd:config_devlink+0xec: movl netbsd:alldevs_nwrite,%eax
db{0}>
--
Greg A. Woods
H:+1 416 218-0098 W:+1 416 489-5852 x122 VE3TCP RoboHack
<woods%robohack.ca@localhost>
Planix, Inc. <woods%planix.com@localhost> Secrets of the Weird
<woods%weird.com@localhost>
Attachment:
pgpNQe7XAJ2zO.pgp
Description: PGP signature