From: Deepthi H <deepadeepthi98@gmail.com>
To: Sam James <sam@gentoo.org>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Sanitizer CHECK failed: sanitizer_allocator_primary64.h:133
Date: Fri, 9 Feb 2024 13:55:55 +0530 [thread overview]
Message-ID: <CAMtd7J4sdf3sxRwBD-mjeZNr=gydgzGQ0gyKeut34zpjcWZR3A@mail.gmail.com> (raw)
In-Reply-To: <875xyyt76u.fsf@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1543 bytes --]
I'm using GCC version 13.2
On Fri, 9 Feb 2024 at 13:12, Sam James <sam@gentoo.org> wrote:
>
> Deepthi H via Gcc-help <gcc-help@gcc.gnu.org> 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=address -fno-omit-frame-pointer -o
> > test test.c"
> >
> > *AddressSanitizer: CHECK failed: sanitizer_allocator_primary64.h:131
> > "((kSpaceBeg)) == ((address_range.Init(TotalSpaceSize,
> > PrimaryAllocatorName, kSpaceBeg)))" (0x600000000000, 0xfffffffffffffff4)
> > (tid=389) <empty stack>*
> >
> > I found a patch that fixes the sanitizer issue for arm64 on llvm :-
> > ⚙D60243 [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 other
> > way to fix this issue.
> >
> > Thanks in advance,
> > Deepthi
>
>
prev parent reply other threads:[~2024-02-09 8:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-09 7:31 Deepthi H
2024-02-09 7:42 ` Sam James
2024-02-09 8:25 ` Deepthi H [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMtd7J4sdf3sxRwBD-mjeZNr=gydgzGQ0gyKeut34zpjcWZR3A@mail.gmail.com' \
--to=deepadeepthi98@gmail.com \
--cc=gcc-help@gcc.gnu.org \
--cc=sam@gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).