Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 May 2020 10:08:28 +0100
From:      Grzegorz Junka <list1@gjunka.com>
To:        freebsd-current@freebsd.org
Subject:   lock order reversal and poudriere
Message-ID:  <68514e96-f1a5-0c8d-998f-bf81034ed61d@gjunka.com>

next in thread | raw e-mail | index | archive | help
I am compiling some packages with poudriere on 13-current kernel. I 
noticed some strange messages printed into the terminal and dmesg:

lock order reversal:
  1st 0xfffff8010ca78250 zfs (zfs) @ /usr/src-13/sys/kern/vfs_mount.c:1005
  2nd 0xfffff8010cd37250 devfs (devfs) @ 
/usr/src-13/sys/kern/vfs_mount.c:1016
stack backtrace:
#0 0xffffffff80c2d5f1 at witness_debugger+0x71
#1 0xffffffff80b92f18 at lockmgr_lock_flags+0x188
#2 0xffffffff80cae744 at _vn_lock+0x54
#3 0xffffffff80c90756 at vfs_domount+0xd16
#4 0xffffffff80c8efd1 at vfs_donmount+0x871
#5 0xffffffff80c8e729 at sys_nmount+0x69
#6 0xffffffff81060c40 at amd64_syscall+0x140
#7 0xffffffff810370a0 at fast_syscall_common+0x101
pid 17216 (conftest), jid 6, uid 0: exited on signal 11
pid 51159 (conftest), jid 6, uid 0: exited on signal 11
pid 23833 (conftest), jid 3, uid 0: exited on signal 11
pid 4916 (conftest), jid 3, uid 0: exited on signal 11

(... then there is a bunch of similar ones, then ...)

pid 14504 (conftest), jid 3, uid 0: exited on signal 11
pid 27466 (conftest), jid 6, uid 0: exited on signal 11
pid 43297 (conftest), jid 5, uid 0: exited on signal 11
lock order reversal:
  1st 0xfffffe00bc68c030 filedesc structure (filedesc structure) @ 
/usr/src-13/sys/kern/sys_generic.c:1557
  2nd 0xfffff803baeddbd8 tmpfs (tmpfs) @ 
/usr/src-13/sys/kern/vfs_vnops.c:1553
stack backtrace:
#0 0xffffffff80c2d5f1 at witness_debugger+0x71
#1 0xffffffff80b946b5 at lockmgr_xlock+0x55
#2 0xffffffff80cae744 at _vn_lock+0x54
#3 0xffffffff80cad0da at vn_poll+0x3a
#4 0xffffffff80c33e19 at kern_poll+0x419
#5 0xffffffff80c340df at sys_ppoll+0x6f
#6 0xffffffff81060c40 at amd64_syscall+0x140
#7 0xffffffff810370a0 at fast_syscall_common+0x101
pid 37533 (conftest), jid 5, uid 0: exited on signal 11
pid 43474 (conftest), jid 5, uid 0: exited on signal 11


Poudriere doesn't really report any problems:

# poudriere status
SET  PORTS JAIL BUILD                STATUS         QUEUE BUILT FAIL 
SKIP IGNORE REMAIN TIME     LOGS
kde5 gui   13   2020-05-01_10h17m52s parallel_build  2040   792 0    
0      0   1248 22:48:00 
/usr/local/poudriere/data/logs/bulk/13-gui-kde5/2020-05-01_10h17m52s


Are those the debug messages that aren't visible on non-current kernel 
and should they be reported?

GrzegorzJ




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?68514e96-f1a5-0c8d-998f-bf81034ed61d>