From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by sourceware.org (Postfix) with ESMTPS id BB7B53858C53 for ; Fri, 9 Feb 2024 07:31:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB7B53858C53 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 BB7B53858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::52e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707463911; cv=none; b=H1AtXFhgADn7wPxF6FiZs2OqDGiQnH0FqJndGQ5qxnd5T37R1KyLDKf4UE4G5Zjr1YiqlhTESZ8Qe1uGyYnxzUrrh0LxDACGgUyUmMRdItye+KbmT8ktTmAoWP2KwnOP4WFsCKa/lbqzoN5eYXHbiIVBmtUcjTFog3/t+sdJ2q4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707463911; c=relaxed/simple; bh=iahUE7Nu2nEvghVJlNVV9YFHvapvSWPgrsACc/p/jU4=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=YL2WDZAEHhvo7DEp1E7RQNmGtYj+YZ3gTPL/OLYBy/4bKc9HwbvxHNaKFltrRebMPASEPFfpH7fO6twguMWm0p/qJcXrMdwFJog+C/Nq/AhDHHZIQH/e1APCid8vZuhuni5u6YoM/v4zv1n9bWuh68zq6KUVIW2W0DRd0vWtUZY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x52e.google.com with SMTP id 41be03b00d2f7-5d42e7ab8a9so401163a12.3 for ; Thu, 08 Feb 2024 23:31:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707463908; x=1708068708; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=TAt8Aejjj55crTAnbc2uB46f8+p9WWS/qRLRfKHMn3E=; b=bdMfV8XNHKnBb8UWT5tVJ8TCXNAXHeghTcTTseq3bqHXvW1BhafCF2WfZYGxyus8cr TUyegTunr53GGCuImG1wHFWUxGqOXhuStULKh4BXqZCvM0k9Yq8sYyPYdoPbzpfyBhoQ Z8eU4X85TkCJv/O6wmSsiOUhKbs+PSI042c5M3AiCLvWcm0+O0IRGGPyf9ihk4ZUK/gk 1eKQAKEZ97aM4Sy8Z3QoeeeLVgJH5B7PT38Ev2EJEQ1icj5x4jTamITrjE073Fn2ZLf4 7e8SAGc41DDof6phe5I06btatB1ElB+d8noCDCJfQTivPYTideZQZFgQLgamF5O/JxFj aPVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707463908; x=1708068708; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TAt8Aejjj55crTAnbc2uB46f8+p9WWS/qRLRfKHMn3E=; b=ZBhsIIopHc9/qTqZnFPyoYZu4S1ZnFGAp2NntMGx5AMzSpSjV0Xo+Ec7U2NBfdztd+ wQtE5mh5hxsiZ83hUGh6uNsH20DjDsxnmKJycDNQd83xbk2uhar4rmqP6tOW7BuCYYZR COzkJJDu3baehcJ9FEb3X8p6Kx/evgwEk7Jw5Y5a85yMS9qXNgRnXdBJPk9DNnk1wulj LF4NH2njo2krxWuXUN1KqtIgpelNeGexrqKkiz+Hm5qItdkTy20mDK7Xh8A+3fn8mGi+ HduNm79hyQibzbj1g8+3+yyRVQe4UqsuO70i496pNCBEDhWMu5xuBzaVbeCEfAOQM2Ca 8o3w== X-Gm-Message-State: AOJu0YyBZk2dOPFLFxmmP87OAA7ftcJAkzjWsL5xa00fyJ6ORFqSQ6KE 3h1MepDcbbjc7RLY1T1QVLoRvML40IhaW0DFWd4Hpl2h37Z9SlEA7brYoI+yeMh8dCToyK4p6qd yQU6ljNwGKy/KLqtCo8Ex5F/xH9a3PqcEXR4= X-Google-Smtp-Source: AGHT+IHPYApylpi9/EI8++lxbp+vAPwWoF3G5jIVudyM+mT8knBMXXALt1acV9UYGLbhCAQSvqym+aaHN94/uuQ7Nu0= X-Received: by 2002:a05:6a20:9f47:b0:19e:a271:ea8d with SMTP id ml7-20020a056a209f4700b0019ea271ea8dmr1103615pzb.26.1707463908299; Thu, 08 Feb 2024 23:31:48 -0800 (PST) MIME-Version: 1.0 From: Deepthi H Date: Fri, 9 Feb 2024 13:01:37 +0530 Message-ID: Subject: Sanitizer CHECK failed: sanitizer_allocator_primary64.h:133 To: gcc-help@gcc.gnu.org Content-Type: multipart/alternative; boundary="000000000000b896430610edeb1d" X-Spam-Status: No, score=0.1 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: --000000000000b896430610edeb1d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-pointer -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 AAr= ch64 for 48-bit VMA (llvm.org) 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 other way to fix this issue. Thanks in advance, Deepthi --000000000000b896430610edeb1d--