This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/70624] New: [6 Regression] Several hundred asan failures with 6.0 on x86_64-apple-darwin10.8
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Apr 2016 08:34:53 +0000
- Subject: [Bug sanitizer/70624] New: [6 Regression] Several hundred asan failures with 6.0 on x86_64-apple-darwin10.8
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70624
Bug ID: 70624
Summary: [6 Regression] Several hundred asan failures with 6.0
on x86_64-apple-darwin10.8
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: dominiq at lps dot ens.fr
CC: chefmax at gcc dot gnu.org, dodji at gcc dot gnu.org,
dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org,
kcc at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-apple-darwin10.8
Target: x86_64-apple-darwin10.8
Build: x86_64-apple-darwin10.8
On x86_64-apple-darwin10.8 I get several hundred asan failures with 6.0 (see
https://gcc.gnu.org/ml/gcc-testresults/2016-04/msg01013.html). Most (if not
all) of them are of the kind
dyld: Symbol not found: _dyldVersionNumber
Referenced from:
/opt/gcc/build_c/x86_64-apple-darwin10.8.0/i386/libsanitizer/asan/.libs/libasan.3.dylib
Expected in: flat namespace
in
/opt/gcc/build_c/x86_64-apple-darwin10.8.0/i386/libsanitizer/asan/.libs/libasan.3.dylib
AFAICT they are related to revision r229111
+bool DyldNeedsEnvVariable() {
+ // If running on OS X 10.11+ or iOS 9.0+, dyld will interpose even if
+ // DYLD_INSERT_LIBRARIES is not set. However, checking OS version via
+ // GetMacosVersion() doesn't work for the simulator. Let's instead check
+ // `dyldVersionNumber`, which is exported by dyld, against a known version
+ // number from the first OS release where this appeared.
+ return dyldVersionNumber < kMinDyldVersionWithAutoInterposition;
+}
+