Re: panic: __lockmgr_args: unknown lockmgr request 0x0

From: Lothar Braun <lothar_at_lobraun.de>
Date: Sun, 20 Jul 2008 15:23:28 +0200
Hi Attilio,


> can you please try this on the top of -CURRENT:
> http://www.freebsd.org/~attilio/xfs2.diff

Thank you for the patch. The panic and the dead lock disappeard, but 
there is a new problem insteed. The commands

mkfs.xfs /dev/ad8s4
mount -t xfs /dev/ad8s4 /home
mkdir /home/lothar
chown lothar:lothar /home/lothar

/var/log/messages showed this debug output for the above commands:

Jul 20 13:24:54 finch kernel: SGI XFS with large block numbers, tracing, 
no debug enabled
Jul 20 13:24:54 finch kernel: fsname '/dev/ad8s4' logname '' rtname ''
Jul 20 13:24:54 finch kernel: flags 0x200000 sunit 0 swidth 0 logbufs -1 
logbufsize -1
Jul 20 13:24:54 finch kernel: xfs_setsize_buftarg NI 0xc694f200
Jul 20 13:24:54 finch kernel: XFS mounting filesystem /dev/ad8s4
Jul 20 13:24:55 finch kernel: Ending clean XFS mount for filesystem: 
/dev/ad8s4
Jul 20 13:25:09 finch kernel: lock order reversal:
Jul 20 13:25:09 finch kernel: 1st 0xc6dc3dc8 xfs (xfs) _at_ 
/usr/src/sys/kern/vfs_lookup.c:432
Jul 20 13:25:09 finch kernel: 2nd 0xc6f40090 xfsino (xfsino) _at_ 
/usr/src/sys/modules/xfs/../../gnu/fs/xfs/xfs_iget.c:881
Jul 20 13:25:09 finch kernel: 3rd 0xc6dc39c0 xfs (xfs) _at_ 
/usr/src/sys/modules/xfs/../../gnu/fs/xfs/FreeBSD/xfs_freebsd_iget.c:393
Jul 20 13:25:09 finch kernel: KDB: stack backtrace:
Jul 20 13:25:09 finch kernel: 
db_trace_self_wrapper(c0b2f902,e9073760,c07ce8ee,c0b32188,c6dc39c0,...) 
at db_trace_self_wrapper+0x26
Jul 20 13:25:09 finch kernel: 
kdb_backtrace(c0b32188,c6dc39c0,c6e7fe19,c6e7fe19,c6e7fd6e,...) at 
kdb_backtrace+0x29
Jul 20 13:25:09 finch kernel: 
witness_checkorder(c6dc39c0,9,c6e7fd6e,189,4,...) at 
witness_checkorder+0x6de
Jul 20 13:25:09 finch kernel: 
__lockmgr_args(c6dc39c0,80400,c6dc3a28,0,0,...) at __lockmgr_args+0x777
Jul 20 13:25:09 finch kernel: 
vop_stdlock(e9073860,c6dc3a5c,c6dc3968,80400,c6dc3968,...) at 
vop_stdlock+0x65
Jul 20 13:25:09 finch kernel: 
VOP_LOCK1_APV(c6e895c0,e9073860,c0c3a2a0,c6dc3968,80400,...) at 
VOP_LOCK1_APV+0xa5
Jul 20 13:25:09 finch kernel: 
_vn_lock(c6dc3968,80400,c6e7fd6e,189,e90738dc,...) at _vn_lock+0x5e
Jul 20 13:25:09 finch kernel: xfs_iget(c6745c00,c6f9c000,83,0,1,...) at 
xfs_iget+0x27b
Jul 20 13:25:09 finch kernel: 
xfs_trans_iget(c6745c00,c6f9c000,83,0,1,...) at xfs_trans_iget+0x256
Jul 20 13:25:09 finch kernel: xfs_ialloc(c6f9c000,c6f40000,41ed,2,0,...) 
at xfs_ialloc+0xda
Jul 20 13:25:09 finch kernel: 
xfs_dir_ialloc(e9073a78,c6f40000,41ed,2,0,...) at xfs_dir_ialloc+0x82
Jul 20 13:25:09 finch kernel: 
xfs_mkdir(c6f40020,e9073c04,e9073ab4,e9073b28,c6cce300,...) at 
xfs_mkdir+0x457
Jul 20 13:25:09 finch kernel: 
_xfs_mkdir(e9073c28,c0b6262e,0,e9073c28,e9073bd8,...) at _xfs_mkdir+0xb0
Jul 20 13:25:09 finch kernel: 
VOP_MKDIR_APV(c6e895c0,e9073c28,e97,e95,1,...) at VOP_MKDIR_APV+0xc5
Jul 20 13:25:09 finch kernel: 
kern_mkdirat(c6d95af0,ffffff9c,bfbfee32,0,1ff,...) at kern_mkdirat+0x276
Jul 20 13:25:09 finch kernel: 
kern_mkdir(c6d95af0,bfbfee32,0,1ff,e9073d2c,...) at kern_mkdir+0x2e
Jul 20 13:25:09 finch kernel: mkdir(c6d95af0,e9073cf8,8,c,c0c003e0,...) 
at mkdir+0x29
Jul 20 13:25:09 finch kernel: syscall(e9073d38) at syscall+0x2a3
Jul 20 13:25:09 finch kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20
Jul 20 13:25:09 finch kernel: --- syscall (136, FreeBSD ELF32, mkdir), 
eip = 0x28159cd3, esp = 0xbfbfec5c, ebp = 0xbfbfed28 ---
Jul 20 13:25:34 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f40000
Jul 20 13:25:34 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fd80
Jul 20 13:25:39 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fd80
Jul 20 13:25:49 finch kernel: xfs_remove: dvp 0xc675b740 vp 0xc67738a0
Jul 20 13:25:49 finch kernel: vn_iowait doing nothing on FreeBSD?
Jul 20 13:26:05 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fd80
Jul 20 13:26:05 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fc00

Afterwards i copied a tar.bz2 to the created folder and tried to extract 
it with

scp somehost:/some-tarfile.tar.bz2 /home/lothar
tar xjvf some-tarfile.tar.bz2

and got a Input/Output-Error on the device. /var/log/messages contains

ul 20 15:06:15 finch kernel: xfs_buf_iomove NI
Jul 20 15:06:15 finch kernel: xfs_buf_iomove NI
Jul 20 15:06:19 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fd80
Jul 20 15:06:19 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fa80
Jul 20 15:06:19 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6fcc300
Jul 20 15:07:20 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fd80
Jul 20 15:07:33 finch kernel: vn_iowait doing nothing on FreeBSD?
Jul 20 15:07:33 finch kernel: xfs_itruncate_data NI
Jul 20 15:07:44 finch kernel: xfs_buf_iomove NI
Jul 20 15:07:44 finch kernel: xfs_buf_iomove NI
Jul 20 15:07:44 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fc00
Jul 20 15:07:44 finch kernel: xfs_buf_iomove NI
Jul 20 15:07:44 finch kernel: xfs_buf_iomove NI
Jul 20 15:07:44 finch kernel: cmn_err level 1 Filesystem "/dev/ad8s4": 
XFS internal error xfs_iformat(7) at line 493 of file /usr/src/sys/mo
dules/xfs/../../gnu/fs/xfs/xfs_inode.c.  Caller 0x0xc6e2b78c
Jul 20 15:07:44 finch kernel:
Jul 20 15:07:44 finch kernel: KDB: stack backtrace:
Jul 20 15:07:44 finch kernel: 
db_trace_self_wrapper(c0b2f902,e906a880,c6e3d698,c6e81f22,1,...) at 
db_trace_self_wrapper+0x26
Jul 20 15:07:44 finch kernel: 
kdb_backtrace(c6e81f22,1,c6745c00,c6e807b0,1ed,...) at kdb_backtrace+0x29
Jul 20 15:07:44 finch kernel: 
xfs_iread(c6745c00,c6fa9000,6000080,0,e906a8dc,...) at xfs_iread+0x508
Jul 20 15:07:44 finch kernel: 
xfs_iget(c6745c00,c6fa9000,6000080,0,1,...) at xfs_iget+0x1dc
Jul 20 15:07:44 finch kernel: 
xfs_trans_iget(c6745c00,c6fa9000,6000080,0,1,...) at xfs_trans_iget+0x256
Jul 20 15:07:44 finch kernel: xfs_ialloc(c6fa9000,c6f3f900,41ed,2,0,...) 
at xfs_ialloc+0xda
Jul 20 15:07:44 finch kernel: 
xfs_dir_ialloc(e906aa78,c6f3f900,41ed,2,0,...) at xfs_dir_ialloc+0x275
Jul 20 15:07:44 finch kernel: 
xfs_mkdir(c6f3f920,e906ac04,e906aab4,e906ab28,c6a9ae00,...) at 
xfs_mkdir+0x457
Jul 20 15:07:44 finch kernel: 
_xfs_mkdir(e906ac28,c0b6262e,0,e906ac28,e906abd8,...) at _xfs_mkdir+0xb0
Jul 20 15:07:44 finch kernel: 
VOP_MKDIR_APV(c6e895c0,e906ac28,e97,e95,1,...) at VOP_MKDIR_APV+0xc5
Jul 20 15:07:44 finch kernel: 
kern_mkdirat(c6d96230,ffffff9c,8102200,0,1ed,...) at kern_mkdirat+0x276
Jul 20 15:07:44 finch kernel: 
kern_mkdir(c6d96230,8102200,0,1ed,e906ad2c,...) at kern_mkdir+0x2e
Jul 20 15:07:44 finch kernel: 
mkdir(c6d96230,e906acf8,8,c0b328ba,c0c003e0,...) at mkdir+0x29
Jul 20 15:07:44 finch kernel: syscall(e906ad38) at syscall+0x2a3
Jul 20 15:07:44 finch kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20
Jul 20 15:07:44 finch kernel: --- syscall (136, FreeBSD ELF32, mkdir), 
eip = 0x281b2cd3, esp = 0xbfbfe97c, ebp = 0xbfbfe9a8 ---
Jul 20 15:07:44 finch kernel: cmn_err level 1 Filesystem "/dev/ad8s4": 
xfs_iread: xfs_iformat() returned error 990
Jul 20 15:07:44 finch kernel: cmn_err level 1 Filesystem "/dev/ad8s4": 
XFS internal error xfs_trans_cancel at line 1155 of file /usr/src/sys
/modules/xfs/../../gnu/fs/xfs/xfs_trans.c.  Caller 0x0xc6e6018b
Jul 20 15:07:44 finch kernel:
Jul 20 15:07:44 finch kernel: KDB: stack backtrace:
Jul 20 15:07:44 finch kernel: 
db_trace_self_wrapper(c0b2f902,e906a9e0,c6e51deb,c6e84dcf,1,...) at 
db_trace_self_wrapper+0x26
Jul 20 15:07:44 finch kernel: 
kdb_backtrace(c6e84dcf,1,c6745c00,c6e84c1c,483,...) at kdb_backtrace+0x29
Jul 20 15:07:44 finch kernel: xfs_trans_cancel(c6fa9000,c,41ed,2,0,...) 
at xfs_trans_cancel+0x11b
Jul 20 15:07:44 finch kernel: 
xfs_mkdir(c6f3f920,e906ac04,e906aab4,e906ab28,c6a9ae00,...) at 
xfs_mkdir+0x2db
Jul 20 15:07:44 finch kernel: 
_xfs_mkdir(e906ac28,c0b6262e,0,e906ac28,e906abd8,...) at _xfs_mkdir+0xb0
Jul 20 15:07:44 finch kernel: 
VOP_MKDIR_APV(c6e895c0,e906ac28,e97,e95,1,...) at VOP_MKDIR_APV+0xc5
Jul 20 15:07:44 finch kernel: 
kern_mkdirat(c6d96230,ffffff9c,8102200,0,1ed,...) at kern_mkdirat+0x276
Jul 20 15:07:44 finch kernel: 
kern_mkdir(c6d96230,8102200,0,1ed,e906ad2c,...) at kern_mkdir+0x2e
Jul 20 15:07:44 finch kernel: 
mkdir(c6d96230,e906acf8,8,c0b328ba,c0c003e0,...) at mkdir+0x29
Jul 20 15:07:44 finch kernel: syscall(e906ad38) at syscall+0x2a3
Jul 20 15:07:44 finch kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20
Jul 20 15:07:44 finch kernel: --- syscall (136, FreeBSD ELF32, mkdir), 
eip = 0x281b2cd3, esp = 0xbfbfe97c, ebp = 0xbfbfe9a8 ---
Jul 20 15:07:44 finch kernel: xfs_force_shutdown(/dev/ad8s4,0x8) called 
from line 1156 of file /usr/src/sys/modules/xfs/../../gnu/fs/xfs/xfs
_trans.c.  Return address = 0x0xc6e51e22
Jul 20 15:07:45 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3f900
Jul 20 15:07:45 finch kernel: xfs_iunpin: REC RECABLE ip 0xc6f3fd80
Jul 20 15:07:45 finch kernel: XFS: Transforming an alert into a BUG.
Jul 20 15:07:45 finch kernel: cmn_err level 0 Filesystem "/dev/ad8s4": 
Corruption of in-memory data detected.  Shutting down filesystem: /de
v/ad8s4
Jul 20 15:07:45 finch kernel: Please umount the filesystem, and rectify 
the problem(s)

Best regards,
   Lothar
Received on Sun Jul 20 2008 - 11:23:31 UTC

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