All of lore.kernel.org
 help / color / mirror / Atom feed
From: Roman Kononov <kononov@ftml.net>
To: linux-xfs@oss.sgi.com
Subject: Re: failed assertion related to realtime section
Date: Wed, 15 Jul 2009 19:15:05 -0500	[thread overview]
Message-ID: <4A5E7109.7000808@ftml.net> (raw)
In-Reply-To: <bzyzlb6p239.fsf@fransum.emea.sgi.com>

[-- Attachment #1: Type: text/plain, Size: 447 bytes --]

On 2009-07-15 07:23, Olaf Weber wrote:
> Can you provide:
> 
>  - the options used to create the filesystem
>  - the mount options of the filesystem
>  - (a summary of) the commands run

The attached bash script (xfs-doit) produces the attached output (out.txt). 
The kernel messages are attached as well (rt-assert.txt). The kernel was 
compiled with the attached configuration (config.tar.bz2). The /dev/sda and 
/dev/sdb are 75GB SATA drives.


[-- Attachment #2: out.txt --]
[-- Type: text/plain, Size: 1544 bytes --]

+ uname -a
Linux 10.10.10.102 2.6.30.1.xdi #7 SMP Wed Jul 15 16:04:29 CDT 2009 x86_64 x86_64 x86_64 GNU/Linux
+ cd /tmp
+ fuser -mk /dev/sda
+ umount /dev/sda
umount: /dev/sda: not mounted
+ mkfs.xfs -L test -f -i size=2k -l lazy-count=1 -d size=1g -r size=10g,extsize=32m,rtdev=/dev/sdb /dev/sda
meta-data=/dev/sda               isize=2048   agcount=8, agsize=32768 blks
         =                       sectsz=512   attr=0
data     =                       bsize=4096   blocks=262144, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal log           bsize=4096   blocks=2560, version=1
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =/dev/sdb               extsz=33554432 blocks=2621440, rtextents=320
+ mkdir -p test
+ mount -o noikeep,largeio,noatime,nodiratime,swalloc,nobarrier,rtdev=/dev/sdb /dev/sda test
+ mkdir test/data test/rltm
+ /usr/sbin/xfs_io -c 'chattr +r' -c 'chattr +t' test/rltm
+ for file in '{0..1}'
+ dd if=/dev/zero of=test/rltm/0 bs=1048576 count=100 seek=10
+ for file in '{0..1}'
+ dd if=/dev/zero of=test/rltm/1 bs=1048576 count=100 seek=10
+ wait
tmp/xfs-doit: line 17:   834 Segmentation fault      dd if=/dev/zero of=test/rltm/$file bs=$((1024*1024)) count=100 seek=10
tmp/xfs-doit: line 17:   835 Segmentation fault      dd if=/dev/zero of=test/rltm/$file bs=$((1024*1024)) count=100 seek=10
+ umount test
umount: /tmp/test: device is busy
umount: /tmp/test: device is busy
+ exit

[-- Attachment #3: rt-assert.txt --]
[-- Type: text/plain, Size: 4517 bytes --]

XFS: correcting sb_features alignment problem
XFS mounting filesystem sda
Assertion failed: xfs_trans_get_block_res(tp) > 0, file: /home/stuff/base/linux-2.6.30.1/fs/xfs/xfs_bmap.c, line: 5602
------------[ cut here ]------------
kernel BUG at /home/stuff/base/linux-2.6.30.1/fs/xfs/support/debug.c:109!
invalid opcode: 0000 [#1] SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:08.0/host2/target2:0:0/2:0:0:0/block/sdb/dev
CPU 0
Modules linked in: ib_mthca sata_nv
Pid: 834, comm: dd Not tainted 2.6.30.1.xdi #7
RIP: 0010:[<ffffffff8039f9da>]  [<ffffffff8039f9da>] assfail+0x1a/0x20
RSP: 0018:ffff88013b159ca8  EFLAGS: 00010296
RAX: 000000000000007a RBX: 0000000000007fff RCX: 0000000000000000
RDX: ffff880028022000 RSI: 0000000000000046 RDI: ffffffff8071a854
RBP: 0000000000006e00 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff803cfda0 R12: ffff88013f5772c0
R13: ffff88013f5772f8 R14: ffff88013f577318 R15: ffff88013b015400
FS:  00007fa7409206e0(0000) GS:ffff880028022000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00007fe258d1d000 CR3: 000000013b17b000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process dd (pid: 834, threadinfo ffff88013b158000, task ffff88013e828b20)
Stack:
 0008000000000000 ffffffff80345e9c ffff88013b159d08 ffff88013b159d88
 ffff88013f577570 000000000000000e 0000000000006e00 0000000000001286
 0000000000000000 0000000000000002 0000000000000001 ffff88013b1b2030
Call Trace:
 [<ffffffff80345e9c>] ? xfs_bunmapi+0xc5c/0x11e0
 [<ffffffff8036dd50>] ? xfs_itruncate_finish+0x2b0/0x5d0
 [<ffffffff8038eae1>] ? xfs_free_eofblocks+0x271/0x2c0
 [<ffffffff80396f50>] ? xfs_file_release+0x10/0x20
 [<ffffffff8029ed22>] ? __fput+0xc2/0x210
 [<ffffffff8029b8d6>] ? filp_close+0x56/0x90
 [<ffffffff8029b9a1>] ? sys_close+0x91/0xd0
 [<ffffffff8020bdeb>] ? system_call_fastpath+0x16/0x1b
Code: 08 01 00 00 00 e8 27 19 03 00 48 83 c4 18 c3 66 90 89 d1 48 83 ec 08 48 89 f2 31 c0 48 89 fe 48 c7 c7 e8 d9 5e 80 e8 06 c7 1a 00 <0f> 0b eb fe 66 90 48 83 ec 28 48 89 1c 24 4c 89 6c 24 18 89 fb
RIP  [<ffffffff8039f9da>] assfail+0x1a/0x20
 RSP <ffff88013b159ca8>
---[ end trace 88cf42faf5c1e431 ]---
Assertion failed: xfs_trans_get_block_res(tp) > 0, file: /home/stuff/base/linux-2.6.30.1/fs/xfs/xfs_bmap.c, line: 5602
------------[ cut here ]------------
kernel BUG at /home/stuff/base/linux-2.6.30.1/fs/xfs/support/debug.c:109!
invalid opcode: 0000 [#2] SMP
last sysfs file: /sys/devices/pci0000:00/0000:00:08.0/host2/target2:0:0/2:0:0:0/block/sdb/dev
CPU 0
Modules linked in: ib_mthca sata_nv
Pid: 835, comm: dd Tainted: G      D    2.6.30.1.xdi #7
RIP: 0010:[<ffffffff8039f9da>]  [<ffffffff8039f9da>] assfail+0x1a/0x20
RSP: 0018:ffff88013b131ca8  EFLAGS: 00010296
RAX: 000000000000007a RBX: 0000000000007fff RCX: 0000000000000000
RDX: ffff880028022000 RSI: 0000000000000046 RDI: ffffffff8071a854
RBP: 0000000000006e00 R08: 0000000000000000 R09: 0000000000000002
R10: 0000000000000000 R11: ffffffff803cfda0 R12: ffff88013f577680
R13: ffff88013f5776b8 R14: ffff88013f5776d8 R15: ffff88013b015400
FS:  00007fe258d206e0(0000) GS:ffff880028022000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 00000037f3ed1060 CR3: 000000013b17a000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process dd (pid: 835, threadinfo ffff88013b130000, task ffff88013e82ac80)
Stack:
 0008000000000000 ffffffff80345e9c ffff88013b131d08 ffff88013b131d88
 ffff88013f577930 000000000000000e 0000000000006e00 0000000000001286
 0000000000000000 0000000000000002 0000000000000001 ffff88013b1b2368
Call Trace:
 [<ffffffff80345e9c>] ? xfs_bunmapi+0xc5c/0x11e0
 [<ffffffff8036dd50>] ? xfs_itruncate_finish+0x2b0/0x5d0
 [<ffffffff8038eae1>] ? xfs_free_eofblocks+0x271/0x2c0
 [<ffffffff80396f50>] ? xfs_file_release+0x10/0x20
 [<ffffffff8029ed22>] ? __fput+0xc2/0x210
 [<ffffffff8029b8d6>] ? filp_close+0x56/0x90
 [<ffffffff8029b9a1>] ? sys_close+0x91/0xd0
 [<ffffffff8020bdeb>] ? system_call_fastpath+0x16/0x1b
Code: 08 01 00 00 00 e8 27 19 03 00 48 83 c4 18 c3 66 90 89 d1 48 83 ec 08 48 89 f2 31 c0 48 89 fe 48 c7 c7 e8 d9 5e 80 e8 06 c7 1a 00 <0f> 0b eb fe 66 90 48 83 ec 28 48 89 1c 24 4c 89 6c 24 18 89 fb
RIP  [<ffffffff8039f9da>] assfail+0x1a/0x20
 RSP <ffff88013b131ca8>
---[ end trace 88cf42faf5c1e432 ]---

[-- Attachment #4: xfs-doit --]
[-- Type: text/plain, Size: 632 bytes --]

#!/bin/bash
data_dev=/dev/sda
rltm_dev=/dev/sdb
set -x
uname -a
cd /tmp
fuser -mk $data_dev
umount $data_dev
mkfs.xfs -L test -f -i size=2k -l lazy-count=1 -d size=1g -r size=10g,extsize=32m,rtdev=$rltm_dev $data_dev || exit
mkdir -p test || exit
mount -o noikeep,largeio,noatime,nodiratime,swalloc,nobarrier,rtdev=$rltm_dev $data_dev test || exit
mkdir test/data test/rltm || exit
/usr/sbin/xfs_io -c "chattr +r" -c "chattr +t" test/rltm || exit
for file in {0..1}; do
	dd if=/dev/zero of=test/rltm/$file bs=$((1024*1024)) count=100 seek=10 &
done
wait
umount test || exit
xfs_repair -nv -r $rltm_dev $data_dev || exit
echo "done"

[-- Attachment #5: config.tar.bz2 --]
[-- Type: application/x-bzip, Size: 7570 bytes --]

[-- Attachment #6: Type: text/plain, Size: 121 bytes --]

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2009-07-16  0:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-13 22:42 failed assertion related to realtime section Roman Kononov
2009-07-15 12:23 ` Olaf Weber
2009-07-16  0:15   ` Roman Kononov [this message]
     [not found]     ` <bzyfxcxgd3z.fsf@fransum.emea.sgi.com>
2009-08-04 21:04       ` Roman Kononov
     [not found]         ` <bzyiqh21oab.fsf@fransum.emea.sgi.com>
2009-08-05 23:21           ` Roman Kononov
2009-08-06  0:38           ` Roman Kononov
2009-08-05  3:58 ` Eric Sandeen
2009-08-05 23:07   ` Roman Kononov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A5E7109.7000808@ftml.net \
    --to=kononov@ftml.net \
    --cc=linux-xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.