Control: tags -1 patch Hi,
On 07/06/17 12:14, James Cowgill wrote: > Control: block -1 by 843926 > > On 07/06/17 09:29, Adrian Bunk wrote: >> Source: mariadb-10.1 >> Version: 10.1.22-3 >> Severity: serious >> >> https://buildd.debian.org/status/logs.php?pkg=mariadb-10.1&arch=mips64el >> >> ... >> # Run testsuite >> cd builddir/mysql-test && ./mtr --force --testcase-timeout=30 >> --suite-timeout=540 --retry=3 --parallel=4 --skip-test-list=unstable-tests >> || exit 1 ; >> Logging: /«PKGBUILDDIR»/mysql-test/mysql-test-run.pl --force >> --testcase-timeout=30 --suite-timeout=540 --retry=3 --parallel=4 >> --skip-test-list=unstable-tests >> vardir: /«PKGBUILDDIR»/builddir/mysql-test/var >> Removing old var directory... >> Creating var directory '/«PKGBUILDDIR»/builddir/mysql-test/var'... >> Checking supported features... >> MariaDB Version 10.1.24-MariaDB-3 >> - SSL connections supported >> Sphinx 'indexer' binary not found, sphinx suite will be skipped >> Using suites: >> main-,archive-,binlog-,binlog_encryption-,csv-,encryption-,federated-,funcs_1-,funcs_2-,handler-,heap-,innodb-,innodb_fts-,innodb_zip-,maria-,mariabackup-,multi_source-,optimizer_unfixed_bugs-,parts-,percona-,perfschema-,plugins-,roles-,rpl-,sys_vars-,unit-,vcol-,wsrep-,connect,mroonga/wrapper,mroonga/storage,oqgraph,sequence,spider,spider/bg,sql_discovery,metadata_lock_info,query_response_time >> Collecting tests... >> Installing system database... >> debian/rules:92: recipe for target 'override_dh_auto_test' failed >> make[1]: *** [override_dh_auto_test] Terminated >> E: Caught signal ‘Terminated’: terminating immediately >> make: *** wait: No child processes. Stop. >> make: *** Waiting for unfinished jobs.... >> make: *** wait: No child processes. Stop. >> Build killed with signal TERM after 150 minutes of inactivity >> >> >> It seems to always fail on Loongson buildds but never on others. >> >> Based on how it fails, I suspect mariadb-10.1 on mips64el is >> completely broken on Loongson. > > It looks like this is #843926 ("jemalloc uses a hard coded page size > detected during build"). I can reproduce this bug on an Broadcom XLP > machine so it isn't Loongson specific. Both the Loongson buildds and the > XLP use 16K pages whereas the Octeon buildds use 4K pages. Also the > reproducer in message #61 in the above bug report also segfaults on the > Loongsons. The attached patch disables jemalloc on mips. This seems to be the best solution at the moment until jemalloc gets fixed - there is an upstream patch but it's quite large. Thanks, James
diff -Nru mariadb-10.1-10.1.24/debian/changelog mariadb-10.1-10.1.24/debian/changelog --- mariadb-10.1-10.1.24/debian/changelog 2017-06-07 01:23:44.000000000 +0100 +++ mariadb-10.1-10.1.24/debian/changelog 2017-06-07 13:58:31.000000000 +0100 @@ -1,3 +1,10 @@ +mariadb-10.1 (10.1.24-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Disable jemalloc on mips*. (Closes: #864340) + + -- James Cowgill <jcowg...@debian.org> Wed, 07 Jun 2017 13:58:31 +0100 + mariadb-10.1 (10.1.24-3) unstable; urgency=medium * Team upload. diff -Nru mariadb-10.1-10.1.24/debian/control mariadb-10.1-10.1.24/debian/control --- mariadb-10.1-10.1.24/debian/control 2017-06-07 01:23:44.000000000 +0100 +++ mariadb-10.1-10.1.24/debian/control 2017-06-07 13:58:31.000000000 +0100 @@ -18,7 +18,7 @@ libarchive-dev, libboost-dev, libcrack2-dev (>= 2.9.0), - libjemalloc-dev [linux-any], + libjemalloc-dev [!kfreebsd-any !hurd-any !mips !mipsel !mips64 !mips64el], libjudy-dev, libkrb5-dev, libncurses5-dev (>= 5.0-6~), diff -Nru mariadb-10.1-10.1.24/debian/rules mariadb-10.1-10.1.24/debian/rules --- mariadb-10.1-10.1.24/debian/rules 2017-06-07 01:23:44.000000000 +0100 +++ mariadb-10.1-10.1.24/debian/rules 2017-06-07 13:58:31.000000000 +0100 @@ -40,6 +40,11 @@ CMAKEFLAGS += -DWITHOUT_TOKUDB=true endif +# Disable jemalloc on mips* due to #843926 +ifneq (,$(filter $(DEB_HOST_ARCH), mips mipsel mips64 mips64el)) + CMAKEFLAGS += -DWITH_JEMALLOC=no +endif + # Add support for verbose builds MAKEFLAGS += VERBOSE=1
signature.asc
Description: OpenPGP digital signature