From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ABC453857362; Wed, 4 May 2022 08:04:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABC453857362 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/105471] New: A few hwasan failures Date: Wed, 04 May 2022 08:04:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2022 08:04:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105471 Bug ID: 105471 Summary: A few hwasan failures Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org, jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at gcc dot gnu.org, matmal01 at gcc dot gnu.org Target Milestone: --- I've just noticed there are some test failures that are there likely for so= me time: FAIL: c-c++-common/hwasan/alloca-gets-different-tag.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test FAIL: c-c++-common/hwasan/alloca-outside-caught.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects output pattern test =3D=3D52332=3D=3DERROR: HWAddressSanitizer: SEGV on unknown address 0x20500= 1fffffcad (pc 0x40000006de20 bp 0xffffffffca50 sp 0xffffffffca50 T52332) =3D=3D52332=3D=3DThe signal is caused by a WRITE memory access. #0 0x40000006de20 in __sanitizer::internal_memset(void*, int, unsigned long) ../../../../libsanitizer/sanitizer_common/sanitizer_libc.cpp:94 #1 0x4000000603f0 in __hwasan::TagMemoryAligned(unsigned long, unsigned long, unsigned char) ../../../../libsanitizer/hwasan/hwasan_linux.cpp:428 #2 0x400838 in alloca_different_tag /home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/hwasan/alloca-gets-= different-tag.c:27 #3 0x400688 in main /home/marxin/Programming/gcc/gcc/testsuite/c-c++-common/hwasan/alloca-gets-= different-tag.c:61 #4 0x40000073b280 in __libc_start_call_main (/lib64/libc.so.6+0x2b280) #5 0x40000073b358 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x2b358) #6 0x4006ec in _start (/home/marxin/Programming/gcc/objdir/gcc/testsuite/gcc4/alloca-gets-differe= nt-tag.exe+0x4006ec) HWAddressSanitizer can not provide additional info. SUMMARY: HWAddressSanitizer: SEGV ../../../../libsanitizer/sanitizer_common/sanitizer_libc.cpp:94 in __sanitizer::internal_memset(void*, int, unsigned long) =3D=3D52332=3D=3DABORTING FAIL: c-c++-common/hwasan/alloca-gets-different-tag.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test FAIL: c-c++-common/hwasan/alloca-outside-caught.c -O2 -flto -fuse-linker-plugin -fno-fat-lto-objects output pattern test Output was: HWAddressSanitizer:DEADLYSIGNAL =3D=3D53458=3D=3DERROR: HWAddressSanitizer: SEGV on unknown address 0x10500= 1fffffcc8 (pc 0x40000006de20 bp 0xffffffffcc10 sp 0xffffffffcc10 T53458) =3D=3D53458=3D=3DThe signal is caused by a WRITE memory access. #0 0x40000006de20 in __sanitizer::internal_memset(void*, int, unsigned long) ../../../../libsanitizer/sanitizer_common/sanitizer_libc.cpp:94 #1 0x4000000603f0 in __hwasan::TagMemoryAligned(unsigned long, unsigned long, unsigned char) ../../../../libsanitizer/hwasan/hwasan_linux.cpp:428 #2 0x400850 in check_alloca c-c++-common/hwasan/alloca-outside-caught.c= :10 #3 0x4006c8 in main c-c++-common/hwasan/alloca-outside-caught.c:18 #4 0x40000073b280 in __libc_start_call_main (/lib64/libc.so.6+0x2b280) #5 0x40000073b358 in __libc_start_main@@GLIBC_2.34 (/lib64/libc.so.6+0x2b358) #6 0x40072c in _start (gcc/objdir/gcc/testsuite/gcc4/alloca-outside-caught.exe+0x40072c)=