public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/99814] New: regexec fails with -fsanitize=address
@ 2021-03-29  9:44 stefansf at linux dot ibm.com
  2021-03-30  7:36 ` [Bug sanitizer/99814] " marxin at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: stefansf at linux dot ibm.com @ 2021-03-29  9:44 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99814

            Bug ID: 99814
           Summary: regexec fails with -fsanitize=address
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stefansf at linux dot ibm.com
                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
  Target Milestone: ---
            Target: s390x

Testing against today's commit

https://gcc.gnu.org/g:d579e2e76f9469e1b386d693af57c5c4f0ede410

on s390x we have:

$ gcc pr98920.c -fsanitize=address && ./a.out
failed to match

The testcase succeeds without `-fsanitize=address`.

In GDB I see that the address loaded from _ZN14__interception12real_regexecE
equals the address of regexec@GLIBC_2.2 which explains why the testcase fails. 
Without `-fsanitize=address` function regexec@@GLIBC_2.3.4 is executed.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-03-30 12:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-29  9:44 [Bug sanitizer/99814] New: regexec fails with -fsanitize=address stefansf at linux dot ibm.com
2021-03-30  7:36 ` [Bug sanitizer/99814] " marxin at gcc dot gnu.org
2021-03-30  8:39 ` stefansf at linux dot ibm.com
2021-03-30  8:58 ` marxin at gcc dot gnu.org
2021-03-30 11:33 ` stefansf at linux dot ibm.com
2021-03-30 12:06 ` Alexander.Richardson at cl dot cam.ac.uk
2021-03-30 12:09 ` marxin at gcc dot gnu.org
2021-03-30 12:39 ` jakub at gcc dot gnu.org

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).