All of lore.kernel.org
 help / color / mirror / Atom feed
* error report: misc-test 006 sometimes fails in current devel branch
@ 2018-03-28  1:55 Misono Tomohiro
  2018-03-28 14:48 ` David Sterba
  2018-03-28 14:50 ` David Sterba
  0 siblings, 2 replies; 4+ messages in thread
From: Misono Tomohiro @ 2018-03-28  1:55 UTC (permalink / raw)
  To: linux-btrfs, dsterba

current devel branch of btrfs-progs (github) occasionally fails at misc-test 006:
(kernel is 4.16.0-rc7)

======
$ sudo make test-misc TEST=006\*
    [LD]     fssum
    [TEST]   misc-tests.sh
    [TEST/misc]   006-image-on-missing-device
/usr/data/src/btrfs-progs/tests//common: line 177: 10819 Aborted
                 (core dumped) $INSTRUMENT "$@" >> "$RESULTS" 2>&1
mayfail: returned code 134 (SIGABRT), not ignored
test failed for case 006-image-on-missing-device
make: *** [Makefile:329: test-misc] Error 1
======

git bisect points the commit fa754dddc204 "btrfs-progs: mkfs: precreate the uuid tree"
and after reverting this, it seems that the test always runs correctly.

Full log of misc-tests-resut.txt when the test fails is below:
----------
=== Entering /usr/data/src/btrfs-progs/tests//misc-tests/006-image-on-missing-device
############### losetup --find --show img1
/dev/loop0
############### losetup --find --show img2
/dev/loop1
############### /usr/data/src/btrfs-progs/mkfs.btrfs -f -d raid1 -m raid1 /dev/loop0 /dev/loop1
btrfs-progs v4.15.1
See http://btrfs.wiki.kernel.org for more information.

Performing full device TRIM /dev/loop0 (2.00GiB) ...
Performing full device TRIM /dev/loop1 (2.00GiB) ...
Label:              (null)
UUID:               220272d0-2454-429c-a198-83eaf954aceb
Node size:          16384
Sector size:        4096
Filesystem size:    4.00GiB
Block group profiles:
  Data:             RAID1           204.75MiB
  Metadata:         RAID1           204.75MiB
  System:           RAID1             8.00MiB
SSD detected:       no
Incompat features:  extref, skinny-metadata
Number of devices:  2
Devices:
   ID        SIZE  PATH
    1     2.00GiB  /dev/loop0
    2     2.00GiB  /dev/loop1

############### mount /dev/loop0 /usr/data/src/btrfs-progs/tests//mnt
############### dd if=/dev/zero of=/usr/data/src/btrfs-progs/tests//mnt/a bs=1M count=10
10+0 records in
10+0 records out
10485760 bytes (10 MB, 10 MiB) copied, 0.00643606 s, 1.6 GB/s
############### dd if=/dev/zero of=/usr/data/src/btrfs-progs/tests//mnt/b bs=4k count=1000 conv=sync
1000+0 records in
1000+0 records out
4096000 bytes (4.1 MB, 3.9 MiB) copied, 0.0056388 s, 726 MB/s
############### umount /usr/data/src/btrfs-progs/tests//mnt
############### /usr/data/src/btrfs-progs/btrfs check /dev/loop0
checking extents
checking free space cache
checking fs roots
checking csums
checking root refs
Checking filesystem on /dev/loop0
UUID: 220272d0-2454-429c-a198-83eaf954aceb
found 14843904 bytes used, no error found
total csum bytes: 14240
total tree bytes: 131072
total fs tree bytes: 32768
total extent tree bytes: 16384
btree space waste bytes: 108171
file data blocks allocated: 14712832
 referenced 14712832
############### /usr/data/src/btrfs-progs/btrfs-image /dev/loop0 /tmp/test-img.dump
############### /usr/data/src/btrfs-progs/btrfs filesystem show /dev/loop0
Label: none  uuid: 220272d0-2454-429c-a198-83eaf954aceb
        Total devices 2 FS bytes used 14.16MiB
        devid    1 size 2.00GiB used 417.50MiB path /dev/loop0
        devid    2 size 2.00GiB used 417.50MiB path /dev/loop1

############### wipefs -a /dev/loop1
/dev/loop1: 8 bytes were erased at offset 0x00010040 (btrfs): 5f 42 48 52 66 53 5f 4d
############### losetup -d /dev/loop1
############### /usr/data/src/btrfs-progs/btrfs filesystem show /dev/loop0
warning, device 2 is missing
Label: none  uuid: 220272d0-2454-429c-a198-83eaf954aceb
        Total devices 2 FS bytes used 14.16MiB
        devid    1 size 2.00GiB used 417.50MiB path /dev/loop0
        *** Some devices missing

############### /usr/data/src/btrfs-progs/btrfs check /dev/loop0
checking extents
checking free space cache
failed to load free space cache for block group 30408704
failed to load free space cache for block group 245104640
checking fs roots
checking csums
checking root refs
warning, device 2 is missing
Checking filesystem on /dev/loop0
UUID: 220272d0-2454-429c-a198-83eaf954aceb
found 14843904 bytes used, no error found
total csum bytes: 14240
total tree bytes: 131072
total fs tree bytes: 32768
total extent tree bytes: 16384
btree space waste bytes: 108171
file data blocks allocated: 14712832
 referenced 14712832
############### /usr/data/src/btrfs-progs/btrfs-image /dev/loop0 /tmp/test-img.dump
Couldn't map the block 459800576
free(): invalid pointer
failed (ignored, ret=134): /usr/data/src/btrfs-progs/btrfs-image /dev/loop0 /tmp/test-img.dump
mayfail: returned code 134 (SIGABRT), not ignored
test failed for case 006-image-on-missing-device
----------

So, the last btrfs-image failed.
Also, it seems that even when the test succeeds, the last btrfs-image actually fails:
----------
############### /usr/data/src/btrfs-progs/btrfs-image /dev/loop0 /tmp/test-img.dump
Couldn't map the block 459800576
ERROR: failed to flush pending data: -5
ERROR: create failed: Bad address
warning, device 2 is missing
failed (ignored, ret=1): /usr/data/src/btrfs-progs/btrfs-image /dev/loop0 /tmp/test-img.dump
----------
The test uses may_fail and the test succeeds.


However, when v.4.15.1 is used (or reverting the commit), last btrfs-image does not fail:
----------
############### /usr/data/src/btrfs-progs/btrfs-image /dev/loop0 /tmp/test-img.dump
warning, device 2 is missing
----------


Regards,
Tomohiro Misono


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

* Re: error report: misc-test 006 sometimes fails in current devel branch
  2018-03-28  1:55 error report: misc-test 006 sometimes fails in current devel branch Misono Tomohiro
@ 2018-03-28 14:48 ` David Sterba
  2018-03-28 14:50 ` David Sterba
  1 sibling, 0 replies; 4+ messages in thread
From: David Sterba @ 2018-03-28 14:48 UTC (permalink / raw)
  To: Misono Tomohiro; +Cc: linux-btrfs, dsterba

On Wed, Mar 28, 2018 at 10:55:56AM +0900, Misono Tomohiro wrote:
> current devel branch of btrfs-progs (github) occasionally fails at misc-test 006:
> (kernel is 4.16.0-rc7)

That's strange, the test should be deterministic. There seems to be some
timing involved. I'm able to reproduce here, thanks for the report.

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

* Re: error report: misc-test 006 sometimes fails in current devel branch
  2018-03-28  1:55 error report: misc-test 006 sometimes fails in current devel branch Misono Tomohiro
  2018-03-28 14:48 ` David Sterba
@ 2018-03-28 14:50 ` David Sterba
  2018-03-28 23:58   ` Misono Tomohiro
  1 sibling, 1 reply; 4+ messages in thread
From: David Sterba @ 2018-03-28 14:50 UTC (permalink / raw)
  To: Misono Tomohiro; +Cc: linux-btrfs, dsterba

On Wed, Mar 28, 2018 at 10:55:56AM +0900, Misono Tomohiro wrote:
> current devel branch of btrfs-progs (github) occasionally fails at misc-test 006:
> (kernel is 4.16.0-rc7)

Can you please also open an issue on github, with the details attached? Thanks.

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

* Re: error report: misc-test 006 sometimes fails in current devel branch
  2018-03-28 14:50 ` David Sterba
@ 2018-03-28 23:58   ` Misono Tomohiro
  0 siblings, 0 replies; 4+ messages in thread
From: Misono Tomohiro @ 2018-03-28 23:58 UTC (permalink / raw)
  To: linux-btrfs, dsterba

On 2018/03/28 23:50, David Sterba wrote:
> On Wed, Mar 28, 2018 at 10:55:56AM +0900, Misono Tomohiro wrote:
>> current devel branch of btrfs-progs (github) occasionally fails at misc-test 006:
>> (kernel is 4.16.0-rc7)
> 
> Can you please also open an issue on github, with the details attached? Thanks.

Yes, I opened the issue: https://github.com/kdave/btrfs-progs/issues/118


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

end of thread, other threads:[~2018-03-28 23:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-28  1:55 error report: misc-test 006 sometimes fails in current devel branch Misono Tomohiro
2018-03-28 14:48 ` David Sterba
2018-03-28 14:50 ` David Sterba
2018-03-28 23:58   ` Misono Tomohiro

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.