[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 gcc-bugzilla@gcc.gnu.org
Tue Jan 21 09:19:00 GMT 2014


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.



More information about the Gcc-bugs mailing list