Date: Fri, 21 Dec 2007 00:56:04 -0600 From: "Scot Hetzel" <swhetzel@gmail.com> To: freebsd-current@freebsd.org Cc: bzeeb+freebsd+lor@zabbadoz.net Subject: lock order reversal: devel/dbus causes a lock order reversal when it is started. Message-ID: <790a9fff0712202256u74c2a54q82273fd28ced4758@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
------=_Part_4622_30735173.1198220164701 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm getting the following lock order reversal when the rc.d/dbus script is started: lock order reversal: 1st 0xffffff000b0ae500 kqueue (kqueue) @ kern/kern_event.c:1397 2nd 0xffffffff80e3cac0 sleep mtxpool (sleep mtxpool) @ kern/sys_generic.c:1255 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2a witness_checkorder() at witness_checkorder+0x655 _mtx_lock_flags() at _mtx_lock_flags+0x75 selrecord() at selrecord+0x86 kqueue_poll() at kqueue_poll+0xa5 poll() at poll+0x343 syscall() at syscall+0x1ca Xfast_syscall() at Xfast_syscall+0xab --- syscall (209, FreeBSD ELF64, poll), rip = 0x800822b0c, rsp = 0x7fffffffe658, rbp = 0 --- FreeBSD hp010.hetzel.org 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Dec 19 11:27:48 CST 2007 root@hp010.hetzel.org:/usr/src/8x/sys-orig/amd64/compile/DV8135NR amd64 # ident /sys/kern/{kern_event.c,sys_generic.c} /sys/kern/kern_event.c: $FreeBSD: src/sys/kern/kern_event.c,v 1.114 2007/12/16 06:21:19 jeff Exp $ /sys/kern/sys_generic.c: $FreeBSD: src/sys/kern/sys_generic.c,v 1.160 2007/12/16 06:21:19 jeff Exp $ Scot ------=_Part_4622_30735173.1198220164701 Content-Type: text/plain; name=DV8135NR Content-Transfer-Encoding: base64 X-Attachment-Id: file0 Content-Disposition: attachment; filename=DV8135NR IwojIEdFTkVSSUMgZGVidWdnaW5nIGtlcm5lbAojCiMgVG8gdXNlIHRoa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Ql2cgpub2RldmljZQl3 Ygpub2RldmljZQl4bAoKIyBJU0EgRXRoZXJuZXQgTklDcy4gIHBjY2FyZCBOSUNzIGluY2x1ZGVk Lgpub2RldmljZQljcwpub2RldmljZQllZApub2RldmljZQlleApub2RldmljZQllcApub2Rldmlj ZQlmZQpub2RldmljZQlzbgpub2RldmljZQl4ZQoKIyBXaXJlbGVzcyBOSUMgY2FyZHMKbm9kZXZp Y2UJd2xhbgpub2RldmljZQl3bGFuX3dlcApub2RldmljZQl3bGFuX2NjbXAKbm9kZXZpY2UJd2xh bl90a2lwCm5vZGV2aWNlCXdsYW5fYW1ycgpub2RldmljZQl3bGFuX3NjYW5fYXAKbm9kZXZpY2UJ d2xhbl9zY2FuX3N0YQpub2RldmljZQlhbgpub2RldmljZQlhdGgKbm9kZXZpY2UJYXRoX2hhbApu b2RldmljZQlhdGhfcmF0ZV9zYW1wbGUKbm9kZXZpY2UJYXdpCm5vZGV2aWNlCXJhbApub2Rldmlj ZQl3aQoKIyBQc2V1ZG8gZGV2aWNlcy4KCiMgVVNCIHN1cHBvcnQKCm5vZGV2aWNlCXVyYWwKbm9k ZXZpY2UJcnVtCgojIFVTQiBTZXJpYWwgZGV2aWNlcwoKIyBVU0IgRXRoZXJuZXQsIHJlcXVpcmVz IG1paWJ1cwpub2RldmljZQlhdWUKbm9kZXZpY2UJYXhlCm5vZGV2aWNlCWNkY2UKbm9kZXZpY2UJ Y3VlCm5vZGV2aWNlCWt1ZQpub2RldmljZQlydWUKbm9kZXZpY2UJdWRhdgoKIyBGaXJlV2lyZSBz dXBwb3J0Cgo= ------=_Part_4622_30735173.1198220164701--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?790a9fff0712202256u74c2a54q82273fd28ced4758>