]> sourceware.org Git - valgrind.git/commitdiff
Mised one aligned alloc wrapper on Linux
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 10 Mar 2023 07:40:40 +0000 (08:40 +0100)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 10 Mar 2023 07:40:40 +0000 (08:40 +0100)
Need different expected for GCC / libstdc++

And I think that the 32bit expected will also need updating.

coregrind/m_replacemalloc/vg_replace_malloc.c
memcheck/tests/Makefile.am
memcheck/tests/sized_aligned_new_delete_args.stderr.exp-glibc [new file with mode: 0644]

index 8781645e851ba5cb12925a2b6da0e7bc5f88bcb9..3379aa96f785274a998878b4099be55b4a4cf1f1 100644 (file)
@@ -1073,7 +1073,7 @@ extern int *___errno (void) __attribute__((weak));
  DELETE_ALIGNED(VG_Z_LIBSTDCXX_SONAME,  _ZdlPvSt11align_val_t,               __builtin_delete_aligned );
  DELETE_ALIGNED(VG_Z_LIBCXX_SONAME,     _ZdlPvSt11align_val_t,               __builtin_delete_aligned );
  DELETE_ALIGNED(VG_Z_LIBC_SONAME,       _ZdlPvSt11align_val_t,               __builtin_delete_aligned );
FREE(SO_SYN_MALLOC,          _ZdlPvSt11align_val_t,               __builtin_delete_aligned );
DELETE_ALIGNED(SO_SYN_MALLOC,          _ZdlPvSt11align_val_t,               __builtin_delete_aligned );
 
  // operator delete(void*, unsigned int, std::align_val_t), GNU mangling
 #if __SIZEOF_SIZE_T__ == 4
index c9008ec5e754e4b4027b13ee5a8ad64323123cc9..70c0a46d58b445850fc8b3006129ee303d622252 100644 (file)
@@ -142,6 +142,7 @@ EXTRA_DIST = \
        sized_aligned_new_delete_args.stderr.exp \
                sized_aligned_new_delete_args.vgtest \
                sized_aligned_new_delete_args.stderr.exp_32 \
+               sized_aligned_new_delete_args.stderr.exp-glibc \
        sized_aligned_new_delete_misaligned.stderr.exp \
                sized_aligned_new_delete_misaligned.vgtest \
        deep-backtrace.vgtest deep-backtrace.stderr.exp \
diff --git a/memcheck/tests/sized_aligned_new_delete_args.stderr.exp-glibc b/memcheck/tests/sized_aligned_new_delete_args.stderr.exp-glibc
new file mode 100644 (file)
index 0000000..03eded9
--- /dev/null
@@ -0,0 +1,80 @@
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new(unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:16)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new(unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:16)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete(void*, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:17)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new[](unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:19)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new[](unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:19)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete[](void*, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:20)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new(unsigned long, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:24)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new(unsigned long, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:24)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new(unsigned long, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:24)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete(void*, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:25)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new[](unsigned long, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:27)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new[](unsigned long, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:27)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator new[](unsigned long, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:27)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete[](void*, std::align_val_t, std::nothrow_t const&) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:28)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: ...operator delete... (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:31)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete[](void*, unsigned long) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:34)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete(void*, unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:37)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete(void*, unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:37)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete[](void*, unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:40)
+
+Conditional jump or move depends on uninitialised value(s)
+   at 0x........: operator delete[](void*, unsigned long, std::align_val_t) (vg_replace_malloc.c:...)
+   by 0x........: main (sized_aligned_new_delete_args.cpp:40)
+
This page took 0.039269 seconds and 5 git commands to generate.