From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11952 invoked by alias); 3 Feb 2014 08:47:00 -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 11885 invoked by uid 48); 3 Feb 2014 08:46:56 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/60038] AddressSanitizer CHECK failed ... "((*tls_addr + *tls_size)) <= ((*stk_addr + *stk_size))" on CentOS 5.10 Date: Mon, 03 Feb 2014 08:47: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: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: 2014-02/txt/msg00111.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60038 --- Comment #6 from Jakub Jelinek --- (In reply to Kostya Serebryany from comment #5) > > We probably just have to fill in correct values for glibc 2.5. > This may help. A patch is welcome, please check > https://code.google.com/p/address-sanitizer/wiki/HowToContribute I have already gathered those values, but nothing happened since then, see http://gcc.gnu.org/ml/gcc-patches/2013-12/msg00287.html BTW, you could supposedly use #include ... char buf[64]; size_t len = confstr (_CS_GNU_LIBC_VERSION, buf, sizeof buf); if (strncmp (buf, "glibc 2.", 8) == 0) { char *end; int minor = strtoul (buf + 8, &end, 10); if (end != buf + 8 && (*end == '\0' || *end == '.') { if (minor <= 3) } }