Your message dated Fri, 10 Mar 2017 05:48:40 +0000
with message-id <[email protected]>
and subject line Bug#855657: fixed in galera-3 25.3.20-1
has caused the Debian Bug report #855657,
regarding galera-3: FTBFS with SIGBUS on armhf w/ 64-bit kernel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
855657: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=855657
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: galera-3
Version: 25.3.19-2
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu zesty ubuntu-patch

Dear maintainer,

The galera-3 package was failing to build from source on armhf in Ubuntu,
because the Ubuntu armhf autobuilders expose unaligned accesses as SIGBUS
and galera-3's code makes an unaligned access that gets caught by the test
suite.

Please find attached a fix for this portability bug.

Thanks,
-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
[email protected]                                     [email protected]
diff -Nru galera-3-25.3.19/debian/patches/fix-unaligned-checksum.patch galera-3-25.3.19/debian/patches/fix-unaligned-checksum.patch
--- galera-3-25.3.19/debian/patches/fix-unaligned-checksum.patch	1969-12-31 16:00:00.000000000 -0800
+++ galera-3-25.3.19/debian/patches/fix-unaligned-checksum.patch	2017-02-20 16:35:16.000000000 -0800
@@ -0,0 +1,28 @@
+Description: avoid unaligned dereferencing of a byte array
+ The checksum verification code casts from memory at an arbitrary offset of
+ a byte array to a uint64_t*, then dereferences it.  This is non-portable
+ because it results in unaligned access.
+ .
+ Work around this by just reading byte-for-byte and bitshifting into the
+ result.
+Author: Steve Langasek <[email protected]>
+
+Index: galera-3-25.3.19/galera/src/write_set_ng.cpp
+===================================================================
+--- galera-3-25.3.19.orig/galera/src/write_set_ng.cpp
++++ galera-3-25.3.19/galera/src/write_set_ng.cpp
+@@ -165,9 +165,11 @@ WriteSetNG::Header::Checksum::verify (Ve
+ 
+     compute (ptr, csize, check);
+ 
+-    hcheck = *(reinterpret_cast<const type_t*>(
+-                   reinterpret_cast<const gu::byte_t*>(ptr) + csize
+-                   ));
++    for (unsigned int i = 0; i < sizeof(type_t); i++) {
++        hcheck += static_cast<type_t>(
++                      reinterpret_cast<const gu::byte_t*>(ptr)[csize+i]
++                  ) << 8*i;
++    }
+ 
+     if (gu_likely(check == hcheck)) return;
+ 
diff -Nru galera-3-25.3.19/debian/patches/series galera-3-25.3.19/debian/patches/series
--- galera-3-25.3.19/debian/patches/series	2016-11-11 11:38:04.000000000 -0800
+++ galera-3-25.3.19/debian/patches/series	2017-02-20 11:16:32.000000000 -0800
@@ -1 +1,2 @@
 fix-openssl-short-read.patch
+fix-unaligned-checksum.patch

--- End Message ---
--- Begin Message ---
Source: galera-3
Source-Version: 25.3.20-1

We believe that the bug you reported is fixed in the latest version of
galera-3, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Otto Kekäläinen <[email protected]> (supplier of updated galera-3 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 09 Mar 2017 18:41:42 +0200
Source: galera-3
Binary: galera-3 galera-3-dbg galera-arbitrator-3 galera-arbitrator-3-dbg
Architecture: source amd64
Version: 25.3.20-1
Distribution: unstable
Urgency: low
Maintainer: Debian MySQL Maintainers <[email protected]>
Changed-By: Otto Kekäläinen <[email protected]>
Description:
 galera-3   - Replication framework for transactional applications
 galera-3-dbg - debugging symbols for galera-3
 galera-arbitrator-3 - Galera arbitrator daemon
 galera-arbitrator-3-dbg - debugging symbols for galera-arbitrator-3
Closes: 855657
Changes:
 galera-3 (25.3.20-1) unstable; urgency=low
 .
   * Update Vcs-* URLs to use secure connections
   * New upstream release 25.3.20
   * Include patch to avoid unaligned access, which fixes the regression
     in the armhf build (Closes: #855657)
Checksums-Sha1:
 26fbcf26de2dc7609f8682d47245fb73ca446b0f 2242 galera-3_25.3.20-1.dsc
 09ed27959f3763845994dbc1a1bcaa445105cadf 3319355 galera-3_25.3.20.orig.tar.gz
 a7835097f53436c4493afdb2c31c73d4b9ca377f 6664 galera-3_25.3.20-1.debian.tar.xz
 4cf51cbed9137a021c9f26c57cb2fd358d569b53 10551756 
galera-3-dbg_25.3.20-1_amd64.deb
 b72b1bd0501ab3ea6a87cd22b5bf031dad1e92c3 6209 
galera-3_25.3.20-1_amd64.buildinfo
 bf6f52b8853724fe96f491686fc661debc2a65b5 956206 galera-3_25.3.20-1_amd64.deb
 2a6126c304373d89c150a42f3a66859e525c9764 6378086 
galera-arbitrator-3-dbg_25.3.20-1_amd64.deb
 98e5e4d17d4a2a4fe618bf320d518b9c0c12cabb 583876 
galera-arbitrator-3_25.3.20-1_amd64.deb
Checksums-Sha256:
 f9db28c728cbb526f591d46cac90ad719f178a95ea9eb106e4ea31bbd04d188f 2242 
galera-3_25.3.20-1.dsc
 aae9b44a7b06c0b0cd9e2f1b9bbaf9ca47c630076a6b7c66e8747e01fd343a64 3319355 
galera-3_25.3.20.orig.tar.gz
 8fab4706ad7708d775272d40905c3a811f95c28c79b2307376c72a0f2a092a63 6664 
galera-3_25.3.20-1.debian.tar.xz
 daf4f10edbdc52def8ce2cb07ce289e4944d8e569ab1842c8be6f6f575596a79 10551756 
galera-3-dbg_25.3.20-1_amd64.deb
 da9f547c7e3cc5247f8bd5003273095955a763769e9a3bc5cdc59703ac368433 6209 
galera-3_25.3.20-1_amd64.buildinfo
 6b747fc39071df666828190e74c16fb4cde9d72c8baea7e8badfa0885bcb5275 956206 
galera-3_25.3.20-1_amd64.deb
 3c32d43d79774d8b8f128e517d55d0d217bed0b9dc9164542fe0916530421a40 6378086 
galera-arbitrator-3-dbg_25.3.20-1_amd64.deb
 2b423305bd1fdfcaabfdd33ad32f6205f194e7d20ef84fb9e98f7335e78d63a5 583876 
galera-arbitrator-3_25.3.20-1_amd64.deb
Files:
 01ca408937370c83c97032e8d45cbb19 2242 database optional galera-3_25.3.20-1.dsc
 572d9ba8a75ed04423f2939fe4d14e7c 3319355 database optional 
galera-3_25.3.20.orig.tar.gz
 fe2b3d2eb6cd48b73d9df0138fdd2def 6664 database optional 
galera-3_25.3.20-1.debian.tar.xz
 e35ff8e79d359d2c665cb1c502f3abf4 10551756 debug extra 
galera-3-dbg_25.3.20-1_amd64.deb
 2c7da65d648a35a2547f7cf630b38ad5 6209 database optional 
galera-3_25.3.20-1_amd64.buildinfo
 95c9ee86aad014491f114f5802bd89b4 956206 libs optional 
galera-3_25.3.20-1_amd64.deb
 9dc620412193fcc80916dd501fd64b24 6378086 debug extra 
galera-arbitrator-3-dbg_25.3.20-1_amd64.deb
 24f341e6905f0356dc124d487e4a35cc 583876 database optional 
galera-arbitrator-3_25.3.20-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCgAGBQJYwjk7AAoJEL7YRJ/O6NqISG0QAIyb7KjMdWxo0ohwYnN7YSAU
lalvZNWIcCn9U26DIzXZSIhR63tRN8IEXlO4uC0ZhEAoTIvVcWf8ecSppiHmHM5C
n6VJMVCUH2WFjYbfXASKO5n9Og2SY+ae7+tle/y3SAjZm7n5/lwVhLlPvI6mCb1+
8igYabNjA1EmECB+wRQg23kIMgK6TYbdlxc221VISoW1kt9fwhxP2me/Dk2LdSnD
JOBnCwIzU3FwF0K0zxwfgO8Q0GZoSwKynbtldi/dEhsOZRkE5YUXiD4cwPPJOSn5
aRgZngts03a23KfftLAkpKsu/cIqc/h02+FR/1oJQfEyceMpLZI6T44bYPTjg1yZ
SY7RI6r4AiVT/RA0G/3hldTVqy59IULEH/flwy2/wUvf+UZUT1bjiSPPWJFr7b0f
zSFafWCKlpHIA06bzw2sWE74AzFWl6t9Wg7FIgzphnZudvqbxeQH3ARwpNdJciJL
ZETAG1eeKTDvV3wZ3CpAJwAwXKrwJxPfBfE/ysGS1UWbU6utmBOAIMtAguh6ILEV
dVc0sOG3iR65dlff1/D83XtoVNTzjiZB+NLNESWFdKDPf0grp88F5T61u/zntyrm
pfGALbiP5FNqPeIWNez6798bR053OP8g0MR5VVOYv39lcVFniW2bvxArSvP0VPtu
SqiMv2LyrH9Gsu1MVrUn
=U45o
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to