All of lore.kernel.org
 help / color / mirror / Atom feed
* [sparc64] mkfs.btrfs bus error / align issue?
@ 2016-07-27 13:59 Anatoly Pugachev
  2016-07-27 19:56 ` David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Anatoly Pugachev @ 2016-07-27 13:59 UTC (permalink / raw)
  To: Btrfs BTRFS

Hello!

Running xfstests suite, got in logs mkfs.btrfs bus error, debugging it
shows the following :

mator@nvg5120:~/btrfs-progs$ git log -1 --oneline
40650bf Btrfs progs v4.6.1

root@nvg5120:/home/mator/xfstests# gdb
GNU gdb (Debian 7.11.1-2) 7.11.1
(gdb) file /opt/btrfs/bin/mkfs.btrfs
Reading symbols from /opt/btrfs/bin/mkfs.btrfs...done.
(gdb) set args -f -draid5 -mraid5 /dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3
(gdb) run
Starting program: /opt/btrfs/bin/mkfs.btrfs -f -draid5 -mraid5
/dev/loop0 /dev/loop1 /dev/loop2 /dev/loop3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/sparc64-linux-gnu/libthread_db.so.1".
btrfs-progs v4.6.1
See http://btrfs.wiki.kernel.org for more information.

ERROR: superblock checksum mismatch
ERROR: superblock checksum mismatch
ERROR: superblock checksum mismatch
Performing full device TRIM (2.00GiB) ...
Performing full device TRIM (2.00GiB) ...
Performing full device TRIM (2.00GiB) ...
Performing full device TRIM (2.00GiB) ...

Program received signal SIGBUS, Bus error.
0x000000000015e160 in write_raid56_with_parity (info=0x2b17b0,
eb=0x2c7fe0, multi=0x2c2870, stripe_len=65536, raid_map=0x2c2570) at
volumes.c:2156
2156                                    *(unsigned long *)(p_eb->data + i) ^=
(gdb) bt
#0  0x000000000015e160 in write_raid56_with_parity (info=0x2b17b0,
eb=0x2c7fe0, multi=0x2c2870, stripe_len=65536, raid_map=0x2c2570)
    at volumes.c:2156
#1  0x0000000000119b30 in write_and_map_eb (trans=0x2cc250,
root=0x2c7d80, eb=0x2c7fe0) at disk-io.c:426
#2  0x0000000000119e74 in write_tree_block (trans=0x2cc250,
root=0x2c7d80, eb=0x2c7fe0) at disk-io.c:459
#3  0x000000000011a4ac in __commit_transaction (trans=0x2cc250,
root=0x2c7d80) at disk-io.c:562
#4  0x000000000011a7b8 in btrfs_commit_transaction (trans=0x2cc250,
root=0x2c7d80) at disk-io.c:598
#5  0x00000000001a2b04 in main (argc=8, argv=0x7fefffff698) at mkfs.c:1786
(gdb)

Can someone help please? Thanks.

PS: /dev/loop is ramdisk devices:

# mount tmpfs -t tmpfs -o size=12g /ramdisk
# fallocate -l 3.9G /ramdisk/testvol
# for i in 1 2 3 4; do fallocate -l 2G /ramdisk/scratch${i} ; done
# ls -lh /ramdisk/
total 12G
-rw-r--r-- 1 root root 2.0G Jul 27 16:16 scratch1
-rw-r--r-- 1 root root 2.0G Jul 27 16:16 scratch2
-rw-r--r-- 1 root root 2.0G Jul 27 16:16 scratch3
-rw-r--r-- 1 root root 2.0G Jul 27 16:16 scratch4
-rw-r--r-- 1 root root 3.9G Jul 27 16:15 testvol

# for i in /ramdisk/*; do echo -n "$i : "; losetup -f --show $i; done
/ramdisk/scratch1 : /dev/loop0
/ramdisk/scratch2 : /dev/loop1
/ramdisk/scratch3 : /dev/loop2
/ramdisk/scratch4 : /dev/loop3
/ramdisk/testvol : /dev/loop4

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2016-07-29 15:03 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-27 13:59 [sparc64] mkfs.btrfs bus error / align issue? Anatoly Pugachev
2016-07-27 19:56 ` David Sterba
2016-07-28  9:44   ` David Sterba
2016-07-28 11:58     ` Anatoly Pugachev
2016-07-28 12:02       ` John Paul Adrian Glaubitz
2016-07-28 12:09       ` John Paul Adrian Glaubitz
2016-07-28 12:24         ` David Sterba
2016-07-28 14:01           ` Anatoly Pugachev
2016-07-28 14:25             ` John Paul Adrian Glaubitz
2016-07-28 14:28               ` John Paul Adrian Glaubitz
2016-07-28 14:32                 ` Patrick Baggett
2016-07-28 18:04                 ` David Sterba
2016-07-28 20:34                   ` Anatoly Pugachev
2016-07-29  9:40                     ` Anatoly Pugachev
2016-07-29 12:41                     ` David Sterba
2016-07-29 15:03                       ` Anatoly Pugachev
2016-07-29 10:20                   ` John Paul Adrian Glaubitz
2016-07-27 20:39 ` Patrick Baggett
2016-07-27 20:41   ` Patrick Baggett
2016-07-27 20:40 ` John Paul Adrian Glaubitz
2016-07-27 20:48   ` Patrick Baggett

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.