From d0813fd49ffcde50585814adcca6d1d8404f319d Mon Sep 17 00:00:00 2001 From: Florian Krohm Date: Sat, 10 Sep 2011 21:46:08 +0000 Subject: [PATCH] Add more .exp files for s390 due to GCC's use of the MVC insn. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@12030 --- .../tests/pth_barrier1.stderr.exp-s390x-mvc | 35 +++++++++++++++ memcheck/tests/badrw.stderr.exp-s390x-mvc | 36 +++++++++++++++ .../tests/custom_alloc.stderr.exp-s390x-mvc | 45 +++++++++++++++++++ .../partial_load_dflt.stderr.expr-s390x-mvc | 34 ++++++++++++++ 4 files changed, 150 insertions(+) create mode 100644 helgrind/tests/pth_barrier1.stderr.exp-s390x-mvc create mode 100644 memcheck/tests/badrw.stderr.exp-s390x-mvc create mode 100644 memcheck/tests/custom_alloc.stderr.exp-s390x-mvc create mode 100644 memcheck/tests/partial_load_dflt.stderr.expr-s390x-mvc diff --git a/helgrind/tests/pth_barrier1.stderr.exp-s390x-mvc b/helgrind/tests/pth_barrier1.stderr.exp-s390x-mvc new file mode 100644 index 0000000000..47ba9d9921 --- /dev/null +++ b/helgrind/tests/pth_barrier1.stderr.exp-s390x-mvc @@ -0,0 +1,35 @@ +---Thread-Announcement------------------------------------------ + +Thread #x was created + ... + by 0x........: pthread_create@* (hg_intercepts.c:...) + by 0x........: barriers_and_races (pth_barrier.c:91) + by 0x........: main (pth_barrier.c:121) + +---Thread-Announcement------------------------------------------ + +Thread #x was created + ... + by 0x........: pthread_create@* (hg_intercepts.c:...) + by 0x........: barriers_and_races (pth_barrier.c:91) + by 0x........: main (pth_barrier.c:121) + +---------------------------------------------------------------- + +Possible data race during write of size 1 at 0x........ by thread #x +Locks held: none + at 0x........: threadfunc (pth_barrier.c:59) + by 0x........: mythread_wrapper (hg_intercepts.c:...) + ... + +This conflicts with a previous write of size 1 by thread #x +Locks held: none + at 0x........: threadfunc (pth_barrier.c:59) + by 0x........: mythread_wrapper (hg_intercepts.c:...) + ... + +Address 0x........ is 0 bytes inside a block of size 4 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: barriers_and_races (pth_barrier.c:75) + by 0x........: main (pth_barrier.c:121) + diff --git a/memcheck/tests/badrw.stderr.exp-s390x-mvc b/memcheck/tests/badrw.stderr.exp-s390x-mvc new file mode 100644 index 0000000000..818936485f --- /dev/null +++ b/memcheck/tests/badrw.stderr.exp-s390x-mvc @@ -0,0 +1,36 @@ +Invalid read of size 1 + at 0x........: main (badrw.c:19) + Address 0x........ is 4 bytes before a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (badrw.c:5) + +Invalid write of size 1 + at 0x........: main (badrw.c:20) + Address 0x........ is 4 bytes before a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (badrw.c:5) + +Invalid read of size 1 + at 0x........: main (badrw.c:22) + Address 0x........ is 4 bytes before a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (badrw.c:5) + +Invalid write of size 1 + at 0x........: main (badrw.c:23) + Address 0x........ is 4 bytes before a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (badrw.c:5) + +Invalid read of size 1 + at 0x........: main (badrw.c:25) + Address 0x........ is 1 bytes before a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (badrw.c:5) + +Invalid write of size 1 + at 0x........: main (badrw.c:26) + Address 0x........ is 1 bytes before a block of size 10 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (badrw.c:5) + diff --git a/memcheck/tests/custom_alloc.stderr.exp-s390x-mvc b/memcheck/tests/custom_alloc.stderr.exp-s390x-mvc new file mode 100644 index 0000000000..70dbd27355 --- /dev/null +++ b/memcheck/tests/custom_alloc.stderr.exp-s390x-mvc @@ -0,0 +1,45 @@ +Invalid write of size 4 + at 0x........: main (custom_alloc.c:79) + Address 0x........ is 0 bytes after a block of size 40 alloc'd + at 0x........: custom_alloc (custom_alloc.c:47) + by 0x........: main (custom_alloc.c:76) + +Invalid write of size 4 + at 0x........: main (custom_alloc.c:83) + Address 0x........ is 0 bytes after a block of size 20 alloc'd + at 0x........: custom_alloc (custom_alloc.c:47) + by 0x........: main (custom_alloc.c:76) + +Conditional jump or move depends on uninitialised value(s) + at 0x........: main (custom_alloc.c:90) + +Invalid write of size 4 + at 0x........: main (custom_alloc.c:93) + Address 0x........ is 0 bytes after a block of size 28 alloc'd + at 0x........: custom_alloc (custom_alloc.c:47) + by 0x........: main (custom_alloc.c:76) + +Invalid free() / delete / delete[] / realloc() + at 0x........: main (custom_alloc.c:96) + Address 0x........ is 4 bytes inside a block of size 28 alloc'd + at 0x........: custom_alloc (custom_alloc.c:47) + by 0x........: main (custom_alloc.c:76) + +Invalid free() / delete / delete[] / realloc() + at 0x........: custom_free (custom_alloc.c:54) + by 0x........: main (custom_alloc.c:100) + Address 0x........ is not stack'd, malloc'd or (recently) free'd + +Mismatched free() / delete / delete [] + at 0x........: custom_free (custom_alloc.c:54) + by 0x........: main (custom_alloc.c:103) + Address 0x........ is 0 bytes inside a block of size 40 alloc'd + at 0x........: malloc (vg_replace_malloc.c:...) + by 0x........: main (custom_alloc.c:102) + +Invalid read of size 1 + at 0x........: main (custom_alloc.c:106) + Address 0x........ is 0 bytes inside a block of size 28 free'd + at 0x........: custom_free (custom_alloc.c:54) + by 0x........: main (custom_alloc.c:98) + diff --git a/memcheck/tests/partial_load_dflt.stderr.expr-s390x-mvc b/memcheck/tests/partial_load_dflt.stderr.expr-s390x-mvc new file mode 100644 index 0000000000..250cc5729a --- /dev/null +++ b/memcheck/tests/partial_load_dflt.stderr.expr-s390x-mvc @@ -0,0 +1,34 @@ + +Invalid read of size 1 + at 0x........: main (partial_load.c:16) + Address 0x........ is 0 bytes after a block of size 7 alloc'd + at 0x........: calloc (vg_replace_malloc.c:...) + by 0x........: main (partial_load.c:14) + +Invalid read of size 8 + at 0x........: main (partial_load.c:23) + Address 0x........ is 1 bytes inside a block of size 8 alloc'd + at 0x........: calloc (vg_replace_malloc.c:...) + by 0x........: main (partial_load.c:20) + +Invalid read of size 2 + at 0x........: main (partial_load.c:30) + Address 0x........ is 0 bytes inside a block of size 1 alloc'd + at 0x........: calloc (vg_replace_malloc.c:...) + by 0x........: main (partial_load.c:28) + +Invalid read of size 8 + at 0x........: main (partial_load.c:37) + Address 0x........ is 0 bytes inside a block of size 8 free'd + at 0x........: free (vg_replace_malloc.c:...) + by 0x........: main (partial_load.c:36) + + +HEAP SUMMARY: + in use at exit: ... bytes in ... blocks + total heap usage: ... allocs, ... frees, ... bytes allocated + +For a detailed leak analysis, rerun with: --leak-check=full + +For counts of detected and suppressed errors, rerun with: -v +ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0) -- 2.47.2