From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28568 invoked by alias); 18 Jan 2015 19:11:49 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28504 invoked by uid 48); 18 Jan 2015 19:11:43 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/64435] [5 Regression] Bootstrap failure in libsanitizer on AArch64 with Linux kernel <= 3.15 Date: Sun, 18 Jan 2015 19:11:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: major X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-01/txt/msg01745.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64435 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2015-01-18 Ever confirmed|0 |1 --- Comment #9 from Jakub Jelinek --- I've used: --- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 2014-11-14 00:10:33.735060963 +0100 +++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h 2015-01-18 14:43:05.812763769 +0100 @@ -167,7 +167,7 @@ namespace __sanitizer { unsigned __seq; u64 __unused1; u64 __unused2; -#elif defined(__mips__) +#elif defined(__mips__) || defined(__aarch64__) unsigned int mode; unsigned short __seq; unsigned short __pad1; --- libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc 2014-11-14 00:10:33.735060963 +0100 +++ libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cc 2015-01-18 14:47:18.901482608 +0100 @@ -1055,7 +1055,10 @@ CHECK_SIZE_AND_OFFSET(ipc_perm, uid); CHECK_SIZE_AND_OFFSET(ipc_perm, gid); CHECK_SIZE_AND_OFFSET(ipc_perm, cuid); CHECK_SIZE_AND_OFFSET(ipc_perm, cgid); +#if !defined(__aarch64__) || !SANITIZER_LINUX || __GNUC_PREREQ (2, 21) +/* On aarch64 glibc 2.20 and earlier provided incorrect mode field. */ CHECK_SIZE_AND_OFFSET(ipc_perm, mode); +#endif CHECK_TYPE_SIZE(shmid_ds); CHECK_SIZE_AND_OFFSET(shmid_ds, shm_perm); to fix the #c6 issue. That said, seems asan is totally broken at least in Fedora 22/aarch64, but at least it builds with this and r223925 cherry-pick. Pretty much every test dies with AddressSanitizer CHECK failed: ../../../../libsanitizer/asan/asan_poisoning.cc:24 "((AddrIsInMem(addr))) != (0)