Re: LOR 1) proctree 2) ufs

From: pluknet <pluknet_at_gmail.com>
Date: Mon, 16 Mar 2009 21:34:17 +0300
2009/3/16 pluknet <pluknet_at_gmail.com>:
> Hello.
>
> A yet another of the numerous fs witness warns.
> This one seems not to be reported anywhere else yet.
> It's triggered with ktrace, certainly.
>
>
> lock order reversal:
>  1st 0xc08bbf30 proctree (proctree) _at_ /usr/src/sys/kern/kern_ktrace.c:718
>  2nd 0xc672fc70 ufs (ufs) _at_ /usr/src/sys/kern/vfs_subr.c:2205
> KDB: stack backtrace:
> db_trace_self_wrapper(c08292a7,e80279cc,c0604035,c05f5c2b,c082c14d,...)
> at db_trace_self_wrapper+0x26
> kdb_backtrace(c05f5c2b,c082c14d,c54ef068,c54f6978,e8027a28,...) at
> kdb_backtrace+0x29
> _witness_debugger(c082c14d,c672fc70,c081f7ec,c54f6978,c0832f2c,...) at
> _witness_debugger+0x25
> witness_checkorder(c672fc70,9,c0832f2c,89d,0,...) at witness_checkorder+0x839
> __lockmgr_args(c672fc70,80100,c672fcd8,0,0,...) at __lockmgr_args+0x7a7
> ffs_lock(e8027b34,c0603ddb,c0832f2c,80100,c672fc18,...) at ffs_lock+0xa1
> VOP_LOCK1_APV(c088e5e0,e8027b34,c05b5da3,c08a3d60,c672fc18,...) at
> VOP_LOCK1_APV+0xb5
> _vn_lock(c672fc18,80100,c0832f2c,89d,4,...) at _vn_lock+0x78
> vrele(c672fc18,0,c0822999,36b,c5b1e5d0,...) at vrele+0x15a
> ktrops(1fe,0,c0822999,384,1,...) at ktrops+0x28d
> ktrsetchildren(1fe,0,c0822999,300,0,...) at ktrsetchildren+0x5c
> ktrace(c60f3690,e8027cf8,10,c082d384,c0871298,...) at ktrace+0x622
> syscall(e8027d38) at syscall+0x2b4
> Xint0x80_syscall() at Xint0x80_syscall+0x20
> --- syscall (45, FreeBSD ELF32, ktrace), eip = 0x280d11cf, esp =
> 0xbfbfecbc, ebp = 0xbfbfed68 ---
>

P.S.
If it might be useful in order to reproduce.

The traced process was hald eating 100% cpu.
   921 hald     RET   read 0
   921 hald     CALL  gettimeofday(0xbfbfe9f8,0)
   921 hald     RET   gettimeofday 0
   921 hald     CALL  poll(0x2945a5b0,0xa,0x62)
   921 hald     RET   poll 1
   921 hald     CALL  gettimeofday(0xbfbfea08,0)
   921 hald     RET   gettimeofday 0
   921 hald     CALL  read(0xd,0xbfbfe8ac,0x180)
   921 hald     GIO   fd 13 read 0 bytes
       ""
   921 hald     RET   read 0
   921 hald     CALL  gettimeofday(0xbfbfe9f8,0)
   921 hald     RET   gettimeofday 0
   921 hald     CALL  poll(0x2945a5b0,0xa,0x62)
   921 hald     RET   poll 1
   921 hald     CALL  gettimeofday(0xbfbfea08,0)
   921 hald     RET   gettimeofday 0
   921 hald     CALL  read(0xd,0xbfbfe8ac,0x180)
   921 hald     GIO   fd 13 read 0 bytes
...etc..


-- 
wbr,
pluknet
Received on Mon Mar 16 2009 - 17:34:19 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:44 UTC