[Reproducible-commits] [dpkg] 38/90: Dpkg::Vendor::Debian: Disable thread sanitizer when address is enabled
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat Aug 29 18:26:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit 227b930b29ebe942992eb5c5f9563ac81be7ab47
Author: Guillem Jover <guillem at debian.org>
Date: Thu Jul 2 04:14:11 2015 +0200
Dpkg::Vendor::Debian: Disable thread sanitizer when address is enabled
These are mutually incompatible, prefer the address sanitizer when both
are enabled at the same time.
---
debian/changelog | 3 +++
scripts/Dpkg/Vendor/Debian.pm | 5 +++++
2 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index f7c900b..487b176 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -23,6 +23,9 @@ dpkg (1.18.2) UNRELEASED; urgency=low
File::Spec in Dpkg::Source::Package::V2.
- Do not exclude pre-existing symlinks when unpacking the debian/ tarball
in Dpkg::Source::Package::V2. Closes: #790073, #791535
+ - Disable the thread sanitizer when the address sanitizer is enabled
+ in Dpkg::Vendor::Debian as these are mutually incompatible, and make
+ sanitize=+all not work at all.
* Documentation:
- Fix grammar in dpkg-architecture(1).
Thanks to Chris Lamb <lamby at debian.org>. Closes: #787616
diff --git a/scripts/Dpkg/Vendor/Debian.pm b/scripts/Dpkg/Vendor/Debian.pm
index 52917cd..0148405 100644
--- a/scripts/Dpkg/Vendor/Debian.pm
+++ b/scripts/Dpkg/Vendor/Debian.pm
@@ -185,6 +185,11 @@ sub _add_sanitize_flags {
$self->_parse_feature_area('sanitize', \%use_feature);
# Handle logical feature interactions.
+ if ($use_feature{address} and $use_feature{thread}) {
+ # Disable the thread sanitizer when the address one is active, they
+ # are mutually incompatible.
+ $use_feature{thread} = 0;
+ }
if ($use_feature{address} or $use_feature{thread}) {
# Disable leak sanitizer, it is implied by the address or thread ones.
$use_feature{leak} = 0;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list