public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug testsuite/59897] New: FAIL: c-c++-common/asan/use-after-return-1.c  -O*  output pattern test, is 1: 0x2285020
@ 2014-01-21  9:19 dominiq at lps dot ens.fr
  2014-01-21  9:31 ` [Bug testsuite/59897] " y.gribov at samsung dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-01-21  9:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59897

            Bug ID: 59897
           Summary: FAIL: c-c++-common/asan/use-after-return-1.c  -O*
                    output pattern test, is 1: 0x2285020
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: testsuite
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dominiq at lps dot ens.fr
                CC: chefmax at gcc dot gnu.org, howarth at bromo dot med.uc.edu,
                    iains at gcc dot gnu.org
              Host: x86_64-apple-darwin1*
            Target: x86_64-apple-darwin1*
             Build: x86_64-apple-darwin1*

On x86_64-apple-darwin1* the test c-c++-common/asan/use-after-return-1.c (new
at r206458) fails because the regexp "    #0.*Func2.*use-after-return-1.c:31.*"
is not matched by the output. AFAICT this output requires addr2line and the
test will fail on all targets which does not have it, e.g. darwin. I have
silenced the failure with the following patch:

--- ../_clean/gcc/testsuite/c-c++-common/asan/use-after-return-1.c   
2014-01-09 10:14:04.000000000 +0100
+++ gcc/testsuite/c-c++-common/asan/use-after-return-1.c    2014-01-09
15:51:04.000000000 +0100
@@ -48,6 +48,6 @@ int main(int argc, char **argv) {
 }

 /* { dg-output "WRITE of size 1 at .* thread T0.*" } */
-/* { dg-output "    #0.*Func2.*use-after-return-1.c:31.*" } */
+/* { dg-output "    #0.*(Func2)?.*use-after-return-1.(c:31)?.*" } */
 /* { dg-output "is located in stack of thread T0 at offset.*" } */
 /* { dg-output "\'local\' <== Memory access at offset 32 is inside this
variable" } */

but there is probably a better way to do it.


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

end of thread, other threads:[~2014-01-27 17:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-21  9:19 [Bug testsuite/59897] New: FAIL: c-c++-common/asan/use-after-return-1.c -O* output pattern test, is 1: 0x2285020 dominiq at lps dot ens.fr
2014-01-21  9:31 ` [Bug testsuite/59897] " y.gribov at samsung dot com
2014-01-21  9:56 ` dominiq at lps dot ens.fr
2014-01-21 10:04 ` y.gribov at samsung dot com
2014-01-21 10:12 ` dominiq at lps dot ens.fr
2014-01-23 12:49 ` chefmax at gcc dot gnu.org
2014-01-24  8:12 ` y.gribov at samsung dot com
2014-01-27 17:53 ` dominiq at lps dot ens.fr

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