Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631364 - >=sys-block/thin-provisioning-tools-0.7.0 fails tests
Summary: >=sys-block/thin-provisioning-tools-0.7.0 fails tests
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords: REGRESSION, TESTFAILURE
Depends on:
Blocks: 619126
  Show dependency tree
 
Reported: 2017-09-19 04:36 UTC by Markus Meier
Modified: 2018-01-13 15:16 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-block:thin-provisioning-tools-0.7.0:20170918-044333.log.gz (sys-block:thin-provisioning-tools-0.7.0:20170918-044333.log.gz,45.70 KB, application/gzip)
2017-09-19 04:36 UTC, Markus Meier
Details
build.log on x86 (build.log,198.50 KB, text/plain)
2017-10-03 00:19 UTC, Thomas Deutschmann
Details
build.log on ppc (build.log,189.03 KB, text/plain)
2017-10-10 08:30 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2017-09-19 04:36:36 UTC
Created attachment 495292 [details]
sys-block:thin-provisioning-tools-0.7.0:20170918-044333.log.gz

This is a regression compared to 0.4.1.

 * Package:    sys-block/thin-provisioning-tools-0.7.0
 * Repository: gentoo
 * Maintainer: robbat2@gentoo.org base-system@gentoo.org
 * USE:        arm elibc_glibc kernel_linux test userland_GNU
 * FEATURES:   preserve-libs sandbox test userpriv usersandbox

[----------] Global test environment tear-down
[==========] 189 tests from 25 test cases ran. (1673736 ms total)
[  PASSED  ] 177 tests.
[  FAILED  ] 12 tests, listed below:
[  FAILED  ] BTreeCounterTests.count_empty_tree
[  FAILED  ] BTreeCounterTests.count_populated_tree
[  FAILED  ] CacheSuperblockTests.version_gt_1_is_checked
[  FAILED  ] IOEngineTests.empty_test
[  FAILED  ] IOEngineTests.open_and_close
[  FAILED  ] IOEngineTests.you_can_read_a_read_only_handle
[  FAILED  ] IOEngineTests.you_cannot_write_to_a_read_only_handle
[  FAILED  ] IOEngineTests.you_can_write_to_a_read_write_handle
[  FAILED  ] IOEngineTests.final_block_read_succeeds
[  FAILED  ] IOEngineTests.out_of_bounds_read_fails
[  FAILED  ] IOEngineTests.out_of_bounds_write_succeeds
[  FAILED  ] IOEngineTests.succeed_with_timeout

12 FAILED TESTS
make: *** [unit-tests/Makefile:93: unit-test] Error 1
 * ERROR: sys-block/thin-provisioning-tools-0.7.0::gentoo failed (test phase):
 *   emake failed

Portage 2.3.6 (python 2.7.12-final-0, default/linux/arm/13.0/armv5te/desktop, gcc-5.4.0, glibc-2.23-r4, 3.10.25-gentoo armv5tel)
=================================================================
System uname: Linux-3.10.25-gentoo-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.3
KiB Mem:      513244 total,    303188 free
KiB Swap:    1535996 total,   1517752 free
Timestamp of repository gentoo: Fri, 15 Sep 2017 19:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 armv5tel-softfloat-linux-gnueabi [disabled]
ccache version 3.2.4 [disabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.4_p6-r2::gentoo, 1.5-r2::gentoo, 1.6.3-r2::gentoo, 1.7.9-r3::gentoo, 1.8.5-r5::gentoo, 1.9.6-r4::gentoo, 1.10.3-r1::gentoo, 1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo, 2.28-r2::gentoo, 2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.1.100/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /etc/omega.conf /etc/stunnel/stunnel.conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/apache2-php7.0/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=armv5te -pipe"
DISTDIR="/mnt/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --jobs=2 --keep-going --with-bdeps=y --backtrack=3"
FCFLAGS="-O2 -pipe -march=armv5te"
FEATURES="assume-digests binpkg-logs collision-protect compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=armv5te"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif glamor gpm gtk iconv jpeg kpathsea lcms ldap libnotify mad mng modules mp3 mp4 mpeg ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support qt4 readline sdl seccomp session spell ssl startup-notification svg tcpd test tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb v4 v5" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="exynos freedreno omap" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-09-20 17:58:35 UTC
What filesystem is your /var/tmp/?

If tmpfs, please retest with another filesystem that supports O_DIRECT opens.
Comment 2 Markus Meier gentoo-dev 2017-09-20 20:47:00 UTC
(In reply to Robin Johnson from comment #1)
> What filesystem is your /var/tmp/?
> 
> If tmpfs, please retest with another filesystem that supports O_DIRECT opens.

Nope, it's ext:
/dev/mmcblk0p1 on / type ext2 (rw,relatime,errors=continue)
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2017-09-20 21:13:26 UTC
(In reply to Markus Meier from comment #2)
> (In reply to Robin Johnson from comment #1)
> > What filesystem is your /var/tmp/?
> > 
> > If tmpfs, please retest with another filesystem that supports O_DIRECT opens.
> 
> Nope, it's ext:
> /dev/mmcblk0p1 on / type ext2 (rw,relatime,errors=continue)

Hmm yeah, it's not quite the same, but I do wonder if it might related to ARM EXT[234] DAX which is similar to the O_DIRECT concern. Can you please run the unit-test binary under strace, just for the failing tests and attach the output.

https://github.com/jthornber/thin-provisioning-tools/issues/38
This is the O_DIRECT issue.

https://github.com/jthornber/thin-provisioning-tools/issues/85
covers these tests:
BlockTests.no_concurrent_read_and_write_locks 
BTreeCounterTests.count_empty_tree
BTreeCounterTests.count_populated_tree
Comment 4 Thomas Deutschmann gentoo-dev Security 2017-10-03 00:19:58 UTC
Created attachment 497466 [details]
build.log on x86

Same test failure(s) on x86.

/var/tmp is

> /dev/sda5 on / type ext3 (rw,noatime,data=ordered) [/]
Comment 5 ernsteiswuerfel archtester 2017-10-10 08:29:57 UTC
Similar test failures on ppc:

[----------] Global test environment tear-down
[==========] 189 tests from 25 test cases ran. (312776 ms total)
[  PASSED  ] 186 tests.
[  FAILED  ] 3 tests, listed below:
[  FAILED  ] BTreeCounterTests.count_empty_tree
[  FAILED  ] BTreeCounterTests.count_populated_tree
[  FAILED  ] CacheSuperblockTests.version_gt_1_is_checked

 3 FAILED TESTS
make: *** [unit-tests/Makefile:93: unit-test] Error 1

Filesystem is ext4 on a zram-disk:
/dev/zram1 on /var/tmp type ext4 (rw,relatime,block_validity,discard,delalloc,barrier,user_xattr,acl)
Comment 6 ernsteiswuerfel archtester 2017-10-10 08:30:32 UTC
Created attachment 498286 [details]
build.log on ppc
Comment 7 Rolf Eike Beer archtester 2017-11-29 20:22:31 UTC
0.7.0 fails like ppc on sparc, 0.7.5 passes all tests.
Comment 8 Rolf Eike Beer archtester 2018-01-13 15:16:04 UTC
hppa has the same failures of sparc and ppc.