From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A9D5C398B163; Tue, 9 Feb 2021 09:33:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9D5C398B163 From: "marxin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/98920] [10/11 Regression] uses regexec without support for REG_STARTEND with -fsanitize=address Date: Tue, 09 Feb 2021 09:33:07 +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: 10.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: marxin at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: marxin at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: Tue, 09 Feb 2021 09:33:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98920 --- Comment #11 from Martin Li=C5=A1ka --- (In reply to Florian Weimer from comment #7) > I think libsanitizer falls back to a version-less lookup if the version > cannot be found. Therefore, if the glibc baseline is after 2.3.4, the > version-less lookup will find the unversioned symbol, which has the right > behavior. Are you sure Florian about it. I've just tested the patch posted here: https://reviews.llvm.org/D95864 on aarch64 and I get the following crash: gcc -fsanitize=3Daddress test.c -g && ./a.out=20 AddressSanitizer:DEADLYSIGNAL =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D23512=3D=3DERROR: AddressSanitizer: SEGV on unknown address 0x0000000= 00000 (pc 0x000000000000 bp 0xffffe9a34200 sp 0xffffe9a34200 T0) =3D=3D23512=3D=3DHint: pc points to the zero page. =3D=3D23512=3D=3DThe signal is caused by a READ memory access. =3D=3D23512=3D=3DHint: address points to the zero page. #0 0x0 () #1 0xffff7d11269c (linux-vdso.so.1+0x69c) That said, there's no fallback.=