Skip site navigation (1)Skip section navigation (2)
Date:      01 Jul 2001 15:58:15 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        current@freebsd.org
Subject:   blockable sleep lock panic (and dumps still don't work)
Message-ID:  <xzpels0oio8.fsf@flood.ping.uio.no>

next in thread | raw e-mail | index | archive | help
"microuptime() went backwards" warning caused a "blockable sleep lock"
panic on a June 25 kernel:

panic: blockable sleep lock (sx) allproc @ ../../kern/kern_proc.c:146
Debugger("panic")
Stopped at      Debugger+0x44:  pushl   %ebx
db> trace
Debugger(c02c7cfb) at Debugger+0x44
panic(c02cb140,c02c8500,c02c71a3,c02c7283,92) at panic+0x70
witness_lock(c038ad60,0,c02c7283,92) at witness_lock+0x22e
_sx_slock(c038ad60,c02c7283,92,c2ad1604,c2ad1620) at _sx_slock+0x128
pfind(1ca,c2ad1600,c2ad1620,dc3aeda8,c01d94a7) at pfind+0x1c
selwakeup(c2ad1604,c2ad1620,6d,dc3aeeb4,dc3aedb8) at selwakeup+0x35
ptcwakeup(c2ad1620,1,dc3aedc4,c01d68ac,c2ad1620) at ptcwakeup+0x23
ptsstart(c2ad1620,dc3aede0,c01d7fa5,c2ad1620,6d) at ptsstart+0x26
ttstart(c2ad1620,6d,c2ad1620,7,c2ad1620) at ttstart+0x18
tputchar(6d,c2ad1620) at tputchar+0x35
putchar(6d,dc3aeeb4) at putchar+0x4f
kvprintf(c02c7701,c01c3624,dc3aeeb4,a,dc3aeecc) at kvprintf+0x8e
printf(c02c7700,6949e,93dc1,6949e,d696a092) at printf+0x44
calcru(dc3abc80,dc3adb74,dc3adb7c,0) at calcru+0x12b
getrusage(dc3abc80,dc3aef80,8332e78,84c4000,8505) at getrusage+0x112
syscall(2f,2f,2f,8505,84c4000) at syscall+0x8d5
syscall_with_err_pushed() at syscall_with_err_pushed+0x1b
--- syscall (117, FreeBSD ELF, getrusage), eip = 0x8247269, esp = 0x8517720, ebp = 0x8517730 ---
db> x/s 0xx02c7700
Bad character in number
db> x/s 0xc02c7700
pgrpdump_cmd+0x358:     microuptime() went backwards (%ld.%06ld -> %ld.%06ld)\012
db> panic
panic: from debugger
Uptime: 4d23h47m42s

dumping to dev ad1b, offset 7340064
dump ata1: resetting devices .. ad1: invalidating queued requests
panic: mutex sched lock recursed at ../../kern/kern_synch.c:826
Uptime: 4d23h47m42s
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0xc
fault code              = supervisor read, page not present
instruction pointer     = 0x8:0xc01c7933
stack pointer           = 0x10:0xdc3ae904
frame pointer           = 0x10:0xdc3ae910
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, def32 1, gran 1
processor eflags        = resume, IOPL = 0
current process         = 68314 (cvsup)
kernel: type 12 trap, code=0
Stopped at      Debugger+0x44:  pushl   %ebx
db> trace
Debugger(c02c7cfb) at Debugger+0x44
panic(c02cb140,c02c8500,c02c71a3,c02c7283,92) at panic+0x70
witness_lock(c038ad60,0,c02c7283,92) at witness_lock+0x22e
_sx_slock(c038ad60,c02c7283,92,c2ad1604,c2ad1620) at _sx_slock+0x128
pfind(1ca,c2ad1600,c2ad1620,dc3aeda8,c01d94a7) at pfind+0x1c
selwakeup(c2ad1604,c2ad1620,6d,dc3aeeb4,dc3aedb8) at selwakeup+0x35
ptcwakeup(c2ad1620,1,dc3aedc4,c01d68ac,c2ad1620) at ptcwakeup+0x23
ptsstart(c2ad1620,dc3aede0,c01d7fa5,c2ad1620,6d) at ptsstart+0x26
ttstart(c2ad1620,6d,c2ad1620,7,c2ad1620) at ttstart+0x18
tputchar(6d,c2ad1620) at tputchar+0x35
putchar(6d,dc3aeeb4) at putchar+0x4f
kvprintf(c02c7701,c01c3624,dc3aeeb4,a,dc3aeecc) at kvprintf+0x8e
printf(c02c7700,6949e,93dc1,6949e,d696a092) at printf+0x44
calcru(dc3abc80,dc3adb74,dc3adb7c,0) at calcru+0x12b
getrusage(dc3abc80,dc3aef80,8332e78,84c4000,8505) at getrusage+0x112
syscall(2f,2f,2f,8505,84c4000) at syscall+0x8d5
syscall_with_err_pushed() at syscall_with_err_pushed+0x1b
--- syscall (117, FreeBSD ELF, getrusage), eip = 0x8247269, esp = 0x8517720, ebp = 0x8517730 ---
db> reboot
No such command
db> call boot

syncing disks... 34 34 panic: runq_add: proc 0xdc3abc80 (cvsup) not SRUN
Uptime: 4d23h49m41s
panic: lockmgr: locking against myself
Uptime: 4d23h49m41s
panic: lockmgr: locking against myself
Uptime: 4d23h49m41s
panic: lockmgr: locking against myself
[ad nauseam]

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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