From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id 1088F3858C35 for ; Fri, 9 Feb 2024 08:26:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1088F3858C35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1088F3858C35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::42d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707467171; cv=none; b=vPTPTeMSY+ueJ0K0xGEQNFCAfVJs8yI5W6Bq4hrR9n/XXlU7j47xbp1PpoUeXF0OjcNkqljAHWuzcoPXMOdHmPstBDYRrqsijbRR9oLZki7clYHwHajt8myulS1c0Z6dSVFv2OfuLdT08HZnD62Ohr5wuhQ7SmNfS0mFOrzD8WU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707467171; c=relaxed/simple; bh=SGVSffDf5hLG2r4MQC7Z3P0qfVERNjNmhbUo7fbTZ58=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=j/Vyf9r3WUdMh9xalbKwDstWbVZEFifsw1wHTLr8JWN1wmOByHuGEIiFcqHcD3H505PKW6peejILKp2cZFogWHAo2myOIgx3OnYiSUvwA6Pdg5JHVmvW92K9SPp8RjCXpUjoKmTYyXdIVL+AeSFpI7uhhZNMyMdGwEG+1v7MR5A= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6d9f94b9186so567783b3a.0 for ; Fri, 09 Feb 2024 00:26:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707467167; x=1708071967; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=FhimB1W7XA8plJwMv9L5SOPbW5qRMxvWDkV1RCDyVSw=; b=Iq0v8DOw0+IkAhVJMb1IJwnLROkCiyBix2y6e9SgO0d5x/LjMKSXdWTM+a1h1KqL+K 0JhwYCmU7tRWsnSTTac8CvABLqVVxLISeeHkr47FdfZSa6ejF/Xa6/nzsujII8Bs25dO xYuZtnM81+R25FtfJyAB50uhtOg3/IJ5JpFhk2Ul2Q2F1RnQJR6j044BPFLa+RpXAVAS jlwRRa5BiCH6uRFx31mQ87VebwScJIsc3zGTPTOM93yqbZWjgl4lk/J2Wsw+FZjovWAO DkifteAeepv0LJD76H+YRL3mY32FbuPCnWww3El25bYYGl04EW3zwXiLhrQUdypBTdXm XFUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707467167; x=1708071967; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FhimB1W7XA8plJwMv9L5SOPbW5qRMxvWDkV1RCDyVSw=; b=CDraILdtf/vv6wrtrBN4Eai1C0rZingxhNGyKP9RC7QHeXCxDi6CyTaA1NSoLzsEzj rHeIhMfngrzGZrGVtLIFaN4T8OkM6DjNqaWRCl1MHQyorIz46slcMPKH1gSt48t2kyfe cGR+sZqpxsLiWdffYjKR61F81rEuJQ7hvL3LrDH0sO+5qdckVe9XuExgZkoQPM56YtGS bpALw2JYQ1SrIcPBFkZLErB9rNzUJEIVshViZ9yud/56Tk5cuRsjuTtlPQRoX8aF3uRb hU3t0GoIu6m9gvtnZOhXskq7K1m84dQRRez/+QNYRx7lJm37JK7ocLQkVwOV43yO78Nd Y+IQ== X-Gm-Message-State: AOJu0YzZQBpRlzA3kxQGYj0Zb7vDSCmrw19qT2sZy1Spn0ndG6SO1WT2 qD76/UqySQF3bi4oklpNOOlP9ETfoGqoOKPk4vwWVDcAVJOxwi8bWkBgUCxrHs3NQLDCmDnMeH6 7Vhg+PpuFPs5dqAiGdKpubPl+42s= X-Google-Smtp-Source: AGHT+IHFep5Bm46bnHCJ8Ng+Efmns5Cgyl3Pk+KRSEOgnjX4SwsadII3EiPNy1usGt+/Cfoxt8SOaNjCU1kWGbZZPwk= X-Received: by 2002:a05:6a20:c68e:b0:19c:71bc:ec82 with SMTP id gq14-20020a056a20c68e00b0019c71bcec82mr1225793pzb.48.1707467166844; Fri, 09 Feb 2024 00:26:06 -0800 (PST) MIME-Version: 1.0 References: <875xyyt76u.fsf@gentoo.org> In-Reply-To: <875xyyt76u.fsf@gentoo.org> From: Deepthi H Date: Fri, 9 Feb 2024 13:55:55 +0530 Message-ID: Subject: Re: Sanitizer CHECK failed: sanitizer_allocator_primary64.h:133 To: Sam James Cc: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000f20c940610eead0f" X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --000000000000f20c940610eead0f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm using GCC version 13.2 On Fri, 9 Feb 2024 at 13:12, Sam James wrote: > > Deepthi H via Gcc-help writes: > > > Hi all, > > > > I am facing the issue on enabling sanitizers for gcc on aarch64 linux. > > The issue was observed with the following command :- > > "aarch64-poky-linux-gcc -O1 -fsanitize=3Daddress -fno-omit-frame-pointe= r -o > > test test.c" > > > > *AddressSanitizer: CHECK failed: sanitizer_allocator_primary64.h:131 > > "((kSpaceBeg)) =3D=3D ((address_range.Init(TotalSpaceSize, > > PrimaryAllocatorName, kSpaceBeg)))" (0x600000000000, 0xfffffffffffffff4) > > (tid=3D389) * > > > > I found a patch that fixes the sanitizer issue for arm64 on llvm :- > > =E2=9A=99D60243 [LSan][AArch64] Speed-up leak and address sanitizers on= AArch64 > for > > 48-bit VMA (llvm.org) < > https://reviews.llvm.org/D60243#change-1yIlOwF0zl2Y> > > That should've been synced into GCC ages ago. What version of GCC are > you using? > > > > > I analyzed and tried to port the patch that fixes the issue for llvm. > After > > backporting the LLVM patches to the GCC sources, I encountered several > > build errors, particularly related to the AddressSanitizer (ASan) and > > LeakSanitizer (LSan) libraries. I have fixed lsan and asan issues. > However > > sanitizer_common is completely different in gcc than llvm. > > Can you please help me fix this issue on gcc sources or is than any oth= er > > way to fix this issue. > > > > Thanks in advance, > > Deepthi > > --000000000000f20c940610eead0f--