misc/165479: LOR in Userland Dtrace(fasttrap_provs.fth_table[i].ftb_mtx/dtrace_provider_lock)

Ryan Stone rstone at FreeBSD.org
Sat Feb 25 21:40:07 UTC 2012


>Number:         165479
>Category:       misc
>Synopsis:       LOR in Userland Dtrace(fasttrap_provs.fth_table[i].ftb_mtx/dtrace_provider_lock)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 25 21:40:06 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Stone
>Release:        HEAD
>Organization:
>Environment:
FreeBSD vm-head 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r232049M: Thu Feb 23 15:25:50 EST 2012     rstone at rstone-laptop:/home/rstone/freebsd/obj/usr/home/rstone/freebsd/head/sys/DTRACE  amd64
>Description:
I got the following LOR when enabling a Userland DTrace probe:

lock order reversal:
 1st 0xffffff80022f9680 fasttrap_provs.fth_table[i].ftb_mtx (fasttrap_provs.fth_table[i].ftb_mtx) @ /usr/home/rstone/freebsd/head/sys/modules/dtrace/fasttrap/../../../cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c:1474
 2nd 0xffffffff81a56c40 dtrace_provider_lock (dtrace_provider_lock) @ /usr/home/rstone/freebsd/head/sys/modules/dtrace/dtrace/../../../cddl/contrib/opensolaris/uts/common/dtrace/dtrace.c:7397
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
kdb_backtrace() at kdb_backtrace+0x37
_witness_debugger() at _witness_debugger+0x2c
witness_checkorder() at witness_checkorder+0x853
_sx_xlock() at _sx_xlock+0x61
dtrace_register() at dtrace_register+0x36b
fasttrap_provider_lookup() at fasttrap_provider_lookup+0x5f2
fasttrap_meta_provide() at fasttrap_meta_provide+0x84
dtrace_helper_provide() at dtrace_helper_provide+0x172
dtrace_helper_provider_register() at dtrace_helper_provider_register+0xb8
dtrace_ioctl_helper() at dtrace_ioctl_helper+0xa1d
devfs_ioctl_f() at devfs_ioctl_f+0x7a
kern_ioctl() at kern_ioctl+0xcd
sys_ioctl() at sys_ioctl+0xfd
amd64_syscall() at amd64_syscall+0x3bc
Xfast_syscall() at Xfast_syscall+0xf7
--- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x800b6aebc, rsp = 0x7fffffffda68, rbp = 0x8010070c0 ---

>How-To-Repeat:
Follow instructions here:

Then run the following:
# dtrace -c ./db -n 'database$target:::'
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list