You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(122) |
Nov
(152) |
Dec
(69) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(6) |
Feb
(25) |
Mar
(73) |
Apr
(82) |
May
(24) |
Jun
(25) |
Jul
(10) |
Aug
(11) |
Sep
(10) |
Oct
(54) |
Nov
(203) |
Dec
(182) |
| 2004 |
Jan
(307) |
Feb
(305) |
Mar
(430) |
Apr
(312) |
May
(187) |
Jun
(342) |
Jul
(487) |
Aug
(637) |
Sep
(336) |
Oct
(373) |
Nov
(441) |
Dec
(210) |
| 2005 |
Jan
(385) |
Feb
(480) |
Mar
(636) |
Apr
(544) |
May
(679) |
Jun
(625) |
Jul
(810) |
Aug
(838) |
Sep
(634) |
Oct
(521) |
Nov
(965) |
Dec
(543) |
| 2006 |
Jan
(494) |
Feb
(431) |
Mar
(546) |
Apr
(411) |
May
(406) |
Jun
(322) |
Jul
(256) |
Aug
(401) |
Sep
(345) |
Oct
(542) |
Nov
(308) |
Dec
(481) |
| 2007 |
Jan
(427) |
Feb
(326) |
Mar
(367) |
Apr
(255) |
May
(244) |
Jun
(204) |
Jul
(223) |
Aug
(231) |
Sep
(354) |
Oct
(374) |
Nov
(497) |
Dec
(362) |
| 2008 |
Jan
(322) |
Feb
(482) |
Mar
(658) |
Apr
(422) |
May
(476) |
Jun
(396) |
Jul
(455) |
Aug
(267) |
Sep
(280) |
Oct
(253) |
Nov
(232) |
Dec
(304) |
| 2009 |
Jan
(486) |
Feb
(470) |
Mar
(458) |
Apr
(423) |
May
(696) |
Jun
(461) |
Jul
(551) |
Aug
(575) |
Sep
(134) |
Oct
(110) |
Nov
(157) |
Dec
(102) |
| 2010 |
Jan
(226) |
Feb
(86) |
Mar
(147) |
Apr
(117) |
May
(107) |
Jun
(203) |
Jul
(193) |
Aug
(238) |
Sep
(300) |
Oct
(246) |
Nov
(23) |
Dec
(75) |
| 2011 |
Jan
(133) |
Feb
(195) |
Mar
(315) |
Apr
(200) |
May
(267) |
Jun
(293) |
Jul
(353) |
Aug
(237) |
Sep
(278) |
Oct
(611) |
Nov
(274) |
Dec
(260) |
| 2012 |
Jan
(303) |
Feb
(391) |
Mar
(417) |
Apr
(441) |
May
(488) |
Jun
(655) |
Jul
(590) |
Aug
(610) |
Sep
(526) |
Oct
(478) |
Nov
(359) |
Dec
(372) |
| 2013 |
Jan
(467) |
Feb
(226) |
Mar
(391) |
Apr
(281) |
May
(299) |
Jun
(252) |
Jul
(311) |
Aug
(352) |
Sep
(481) |
Oct
(571) |
Nov
(222) |
Dec
(231) |
| 2014 |
Jan
(185) |
Feb
(329) |
Mar
(245) |
Apr
(238) |
May
(281) |
Jun
(399) |
Jul
(382) |
Aug
(500) |
Sep
(579) |
Oct
(435) |
Nov
(487) |
Dec
(256) |
| 2015 |
Jan
(338) |
Feb
(357) |
Mar
(330) |
Apr
(294) |
May
(191) |
Jun
(108) |
Jul
(142) |
Aug
(261) |
Sep
(190) |
Oct
(54) |
Nov
(83) |
Dec
(22) |
| 2016 |
Jan
(49) |
Feb
(89) |
Mar
(33) |
Apr
(50) |
May
(27) |
Jun
(34) |
Jul
(53) |
Aug
(53) |
Sep
(98) |
Oct
(206) |
Nov
(93) |
Dec
(53) |
| 2017 |
Jan
(65) |
Feb
(82) |
Mar
(102) |
Apr
(86) |
May
(187) |
Jun
(67) |
Jul
(23) |
Aug
(93) |
Sep
(65) |
Oct
(45) |
Nov
(35) |
Dec
(17) |
| 2018 |
Jan
(26) |
Feb
(35) |
Mar
(38) |
Apr
(32) |
May
(8) |
Jun
(43) |
Jul
(27) |
Aug
(30) |
Sep
(43) |
Oct
(42) |
Nov
(38) |
Dec
(67) |
| 2019 |
Jan
(32) |
Feb
(37) |
Mar
(53) |
Apr
(64) |
May
(49) |
Jun
(18) |
Jul
(14) |
Aug
(53) |
Sep
(25) |
Oct
(30) |
Nov
(49) |
Dec
(31) |
| 2020 |
Jan
(87) |
Feb
(45) |
Mar
(37) |
Apr
(51) |
May
(99) |
Jun
(36) |
Jul
(11) |
Aug
(14) |
Sep
(20) |
Oct
(24) |
Nov
(40) |
Dec
(23) |
| 2021 |
Jan
(14) |
Feb
(53) |
Mar
(85) |
Apr
(15) |
May
(19) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
(57) |
Oct
(73) |
Nov
(56) |
Dec
(22) |
| 2022 |
Jan
(3) |
Feb
(22) |
Mar
(6) |
Apr
(55) |
May
(46) |
Jun
(39) |
Jul
(15) |
Aug
(9) |
Sep
(11) |
Oct
(34) |
Nov
(20) |
Dec
(36) |
| 2023 |
Jan
(79) |
Feb
(41) |
Mar
(99) |
Apr
(169) |
May
(48) |
Jun
(16) |
Jul
(16) |
Aug
(57) |
Sep
(19) |
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
1
(4) |
2
(2) |
|
3
|
4
(3) |
5
(3) |
6
(5) |
7
(7) |
8
(1) |
9
(7) |
|
10
(7) |
11
(1) |
12
(13) |
13
(4) |
14
|
15
(5) |
16
|
|
17
(1) |
18
(2) |
19
(3) |
20
|
21
|
22
|
23
(1) |
|
24
|
25
|
26
|
27
(1) |
28
(3) |
29
|
30
|
|
31
|
|
|
|
|
|
|
|
From: Paul F. <pa...@so...> - 2021-10-10 20:17:13
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=46607a76bd3be925f37aceb2ab4f49db0581e6b5 commit 46607a76bd3be925f37aceb2ab4f49db0581e6b5 Author: Paul Floyd <pj...@wa...> Date: Sun Oct 10 22:15:59 2021 +0200 memalign is available on FreeBSD as a non-portable interface Remove #if block protecting memalign calls Diff: --- memcheck/tests/memalign2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/memcheck/tests/memalign2.c b/memcheck/tests/memalign2.c index 4ae967b9e8..95d13354e7 100644 --- a/memcheck/tests/memalign2.c +++ b/memcheck/tests/memalign2.c @@ -30,7 +30,6 @@ int main ( void ) int res; assert(sizeof(long int) == sizeof(void*)); -#if !defined(__FreeBSD__) // Check behaviour of memalign/free for big alignment. // In particular, the below aims at checking that a // superblock with a big size is not marked as reclaimable @@ -79,7 +78,6 @@ int main ( void ) p = memalign(4 * 1024 * 1024, 100); assert(0 == (long)p % (4 * 1024 * 1024)); p = memalign(16 * 1024 * 1024, 100); assert(0 == (long)p % (16 * 1024 * 1024)); -#endif # define PM(a,b,c) posix_memalign((void**)a, b, c) |
|
From: Paul F. <pa...@so...> - 2021-10-10 20:03:09
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=8c0f72667e1a4d378ecda3699d198d56e0ac9498 commit 8c0f72667e1a4d378ecda3699d198d56e0ac9498 Author: Paul Floyd <pj...@wa...> Date: Sun Oct 10 21:56:49 2021 +0200 Fix the ramaining easily fixable warnings with clang There's one remaining memalign2.c:29:9: warning: unused variable 'piece' [-Wunused-variable] because of a block of #if FreeBSD for memalign that looks unnecessary Otherwise all that is left is a few like warning: unknown warning option '-Wno-alloc-size-larger-than'; did you mean '-Wno-frame-larger-than='? [-Wunknown-warning-option] because there is no standard for compiler arguments. Diff: --- coregrind/m_gdbserver/valgrind-low-nanomips.c | 1 + drd/tests/tc12_rwl_trivial.stderr.exp | 2 +- helgrind/tests/safe-pthread.h | 1 + helgrind/tests/safe-semaphore.h | 1 + massif/tests/Makefile.am | 4 ++++ memcheck/tests/Makefile.am | 7 +++++-- none/tests/Makefile.am | 1 + none/tests/amd64/sbbmisc.c | 2 +- none/tests/x86/sbbmisc.c | 2 +- 9 files changed, 16 insertions(+), 5 deletions(-) diff --git a/coregrind/m_gdbserver/valgrind-low-nanomips.c b/coregrind/m_gdbserver/valgrind-low-nanomips.c index e8ed36400b..77a4190fe0 100644 --- a/coregrind/m_gdbserver/valgrind-low-nanomips.c +++ b/coregrind/m_gdbserver/valgrind-low-nanomips.c @@ -107,6 +107,7 @@ void set_pc (CORE_ADDR newpc) #define itype_rt(x) ((x >> 16) & 0x1f) #define rtype_funct(x) (x & 0x3f) +static inline UInt getUInt(UChar * p) __attribute__((unused)); /* Do a endian load of a 32-bit word, regardless of the endianness of the underlying host. */ static inline UInt getUInt(UChar * p) diff --git a/drd/tests/tc12_rwl_trivial.stderr.exp b/drd/tests/tc12_rwl_trivial.stderr.exp index 73163e7b23..b2d4048ab6 100644 --- a/drd/tests/tc12_rwl_trivial.stderr.exp +++ b/drd/tests/tc12_rwl_trivial.stderr.exp @@ -1,7 +1,7 @@ Reader-writer lock not locked by calling thread: rwlock 0x......... at 0x........: pthread_rwlock_unlock (drd_pthread_intercepts.c:?) - by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:58) + by 0x........: safe_pthread_rwlock_unlock (safe-pthread.h:59) by 0x........: main (tc12_rwl_trivial.c:29) rwlock 0x........ was first observed at: at 0x........: pthread_rwlock_init (drd_pthread_intercepts.c:?) diff --git a/helgrind/tests/safe-pthread.h b/helgrind/tests/safe-pthread.h index 0a2c813237..788f7b89b6 100644 --- a/helgrind/tests/safe-pthread.h +++ b/helgrind/tests/safe-pthread.h @@ -28,6 +28,7 @@ static void segv_handler( int signum, siginfo_t *siginfo, void *sigcontext ) { siglongjmp( env, EPERM ); } +static int safe_pthread_rwlock_unlock( pthread_rwlock_t *rwlock ) __attribute__((unused)); /* * Wrapper for pthread_rwlock_unlock which may execute xend * unconditionally when used on a lock that is not locked. diff --git a/helgrind/tests/safe-semaphore.h b/helgrind/tests/safe-semaphore.h index 3aa0dc4e4c..c0e003bcbc 100644 --- a/helgrind/tests/safe-semaphore.h +++ b/helgrind/tests/safe-semaphore.h @@ -14,6 +14,7 @@ static void abrt_handler( int signum, siginfo_t *siginfo, void *sigcontext ) { siglongjmp( env, EINVAL ); } +static int safe_sem_post( sem_t *sem ) __attribute__((unused)); static int safe_sem_post( sem_t *sem ) { struct sigaction sa; struct sigaction oldsa; diff --git a/massif/tests/Makefile.am b/massif/tests/Makefile.am index 54814fb6bf..5b3d1938f4 100644 --- a/massif/tests/Makefile.am +++ b/massif/tests/Makefile.am @@ -88,6 +88,10 @@ AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) # C++ tests new_cpp_SOURCES = new-cpp.cpp overloaded_new_SOURCES = overloaded-new.cpp +# pre C++11 compilers don't have exception specs +# C++11 and later compilers may complain about not having +# exception specs +overloaded_new_CXXFLAGS = $(AM_CXXFLAGS) -Wno-implicit-exception-spec-mismatch -Wno-missing-exception-spec # Suppress warnings for issues we are testing for alloc_fns_CFLAGS = $(AM_CFLAGS) -Wno-unused-result diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index f6b97f53d3..4d0476e2df 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -584,7 +584,8 @@ origin6_fp_CFLAGS = $(AM_CFLAGS) -O # Don't allow GCC to inline memcpy() and strcpy(), # because then we can't intercept it -overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy +overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy \ + -Wno-fortify-source resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @@ -602,6 +603,7 @@ endif str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow -Wno-stringop-overflow \ -Wno-stringop-truncation \ + -Wno-fortify-source -Wno-suspicious-bzero \ @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@ supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @@ -702,5 +704,6 @@ xml1_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE if HAVE_ALIGNED_CXX_ALLOC check_PROGRAMS += cxx17_aligned_new cxx17_aligned_new_SOURCES = cxx17_aligned_new.cpp -cxx17_aligned_new_CXXFLAGS = -std=c++17 +# need C++ 17, and we deliberately mismatch new and delete +cxx17_aligned_new_CXXFLAGS = -std=c++17 -Wno-mismatched-new-delete endif diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am index 7ac07c68d5..24a81b3be9 100644 --- a/none/tests/Makefile.am +++ b/none/tests/Makefile.am @@ -303,6 +303,7 @@ fdleak_creat_LDADD = -lsocket -lnsl fdleak_socketpair_LDADD = -lsocket -lnsl endif floored_LDADD = -lm +ifunc_CFLAGS = $(AM_CFLAGS) -Wno-unused-function manythreads_LDADD = -lpthread if VGCONF_OS_IS_DARWIN nestedfns_CFLAGS = $(AM_CFLAGS) -fnested-functions diff --git a/none/tests/amd64/sbbmisc.c b/none/tests/amd64/sbbmisc.c index f82cc6ba09..82b5db0ce2 100644 --- a/none/tests/amd64/sbbmisc.c +++ b/none/tests/amd64/sbbmisc.c @@ -401,7 +401,7 @@ int main ( void ) adc_ib_al(); printf("r8 = %d %d\n", (int)out_b1, (int)out_b2); - in_w = 49999; + in_w = -15537; adc_iw_ax(); printf("r9 = %d %d\n", (int)out_w1, (int)out_w2); diff --git a/none/tests/x86/sbbmisc.c b/none/tests/x86/sbbmisc.c index f9e7f901ca..6e3822cb38 100644 --- a/none/tests/x86/sbbmisc.c +++ b/none/tests/x86/sbbmisc.c @@ -252,7 +252,7 @@ int main ( void ) adc_ib_al(); printf("r8 = %d %d\n", (int)out_b1, (int)out_b2); - in_w = 49999; + in_w = -15537; adc_iw_ax(); printf("r9 = %d %d\n", (int)out_w1, (int)out_w2); |
|
From: Paul F. <pa...@so...> - 2021-10-10 18:34:39
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=03f1c090f6a55d44cad51a833517ba822d7656b8 commit 03f1c090f6a55d44cad51a833517ba822d7656b8 Author: Paul Floyd <pj...@wa...> Date: Sun Oct 10 20:32:44 2021 +0200 Remove a couple more warnings suffix rule with dependency generates a warning https://www.gnu.org/software/make/manual/html_node/Error-Messages.html (bottom of page) the other is a short initialized with an int literal that wraps to a negative short value Diff: --- none/tests/amd64/Makefile.am | 2 +- none/tests/amd64/sbbmisc.c | 2 +- none/tests/x86/Makefile.am | 2 +- none/tests/x86/sbbmisc.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/none/tests/amd64/Makefile.am b/none/tests/amd64/Makefile.am index 790c1c0450..27a244a9e5 100644 --- a/none/tests/amd64/Makefile.am +++ b/none/tests/amd64/Makefile.am @@ -231,5 +231,5 @@ looper_CFLAGS = $(AM_CFLAGS) @FLAG_NO_PIE@ sbbmisc_CFLAGS = $(AM_CFLAGS) @FLAG_NO_PIE@ shrld_CFLAGS = $(AM_CFLAGS) @FLAG_NO_PIE@ -.def.c: $(srcdir)/gen_insn_test.pl +.def.c: $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ diff --git a/none/tests/amd64/sbbmisc.c b/none/tests/amd64/sbbmisc.c index 1024bfd579..f82cc6ba09 100644 --- a/none/tests/amd64/sbbmisc.c +++ b/none/tests/amd64/sbbmisc.c @@ -369,7 +369,7 @@ int main ( void ) sbb_ib_al(); printf("r1 = %d %d\n", (int)out_b1, (int)out_b2); - in_w = 49999; + in_w = -15537; /* was 49999 but that causes a warning */ sbb_iw_ax(); printf("r2 = %d %d\n", (int)out_w1, (int)out_w2); diff --git a/none/tests/x86/Makefile.am b/none/tests/x86/Makefile.am index 3f6ad1249e..3ecd1ad3c2 100644 --- a/none/tests/x86/Makefile.am +++ b/none/tests/x86/Makefile.am @@ -180,5 +180,5 @@ insn_ssse3_LDADD = -lm x86locked_CFLAGS = $(AM_CFLAGS) -O yield_LDADD = -lpthread -.def.c: $(srcdir)/gen_insn_test.pl +.def.c: $(PERL) $(srcdir)/gen_insn_test.pl < $< > $@ diff --git a/none/tests/x86/sbbmisc.c b/none/tests/x86/sbbmisc.c index 7c4585d957..f9e7f901ca 100644 --- a/none/tests/x86/sbbmisc.c +++ b/none/tests/x86/sbbmisc.c @@ -220,7 +220,7 @@ int main ( void ) sbb_ib_al(); printf("r1 = %d %d\n", (int)out_b1, (int)out_b2); - in_w = 49999; + in_w = -15537; /* was 49999 but that causes a warning */ sbb_iw_ax(); printf("r2 = %d %d\n", (int)out_w1, (int)out_w2); |
|
From: Mark W. <ma...@so...> - 2021-10-10 15:20:18
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=bfd28bb9f83c34cd366ac63a72d1fc0bf2028060 commit bfd28bb9f83c34cd366ac63a72d1fc0bf2028060 Author: Mark Wielaard <ma...@kl...> Date: Sun Oct 10 17:13:43 2021 +0200 Remove more warnings from tests GCC12 catches various issues in tests at compile time that we want to catch at runtime. Also glibc 2.34 deprecated various mallinfo related functions. Add the relevant -Wno-foobar flags to those tests. In one case, unit_oset.c, the warning was correct and the uninitialized variable was explicitly set. Diff: --- dhat/tests/Makefile.am | 3 ++- massif/tests/Makefile.am | 1 + memcheck/tests/Makefile.am | 10 +++++++--- memcheck/tests/unit_oset.c | 1 + memcheck/tests/x86-linux/Makefile.am | 1 + memcheck/tests/x86/Makefile.am | 1 + 6 files changed, 13 insertions(+), 4 deletions(-) diff --git a/dhat/tests/Makefile.am b/dhat/tests/Makefile.am index 3b0cd3e62a..86a9b6d647 100644 --- a/dhat/tests/Makefile.am +++ b/dhat/tests/Makefile.am @@ -26,5 +26,6 @@ check_PROGRAMS = \ AM_CFLAGS += $(AM_FLAG_M3264_PRI) AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) -# We don't care about unused malloc results +# We don't care about uninitialized or unused malloc results +basic_CFLAGS = $(AM_CFLAGS) -Wno-uninitialized big_CFLAGS = $(AM_CFLAGS) -Wno-unused-result diff --git a/massif/tests/Makefile.am b/massif/tests/Makefile.am index 0ecf09676a..54814fb6bf 100644 --- a/massif/tests/Makefile.am +++ b/massif/tests/Makefile.am @@ -100,3 +100,4 @@ insig_CFLAGS = $(AM_CFLAGS) -Wno-unused-result long_names_CFLAGS = $(AM_CFLAGS) -Wno-unused-result one_CFLAGS = $(AM_CFLAGS) -Wno-unused-result thresholds_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +realloc_CFLAGS = $(AM_CFLAGS) -Wno-free-nonheap-object diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index d7759296fc..f6b97f53d3 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -508,13 +508,17 @@ demangle_SOURCES = demangle.cpp # Suppress various gcc warnings which are correct, but for things # we are actually testing for at runtime. accounting_CFLAGS = $(AM_CFLAGS) -Wno-alloc-size-larger-than +badfree_CFLAGS = $(AM_CFLAGS) -Wno-free-nonheap-object bug155125_CFLAGS = $(AM_CFLAGS) -Wno-unused-result -Wno-alloc-size-larger-than +mallinfo_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations malloc3_CFLAGS = $(AM_CFLAGS) -Wno-alloc-size-larger-than +sbfragment_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations +strchr_CFLAGS = $(AM_CFLAGS) -Wno-uninitialized big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x -bug340392_CFLAGS = $(AM_CFLAGS) -O3 +bug340392_CFLAGS = $(AM_CFLAGS) -O3 -Wno-maybe-uninitialized dw4_CFLAGS = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section descr_belowsp_LDADD = -lpthread @@ -535,7 +539,7 @@ execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ -fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ +fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ -Wno-free-nonheap-object inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @@ -647,7 +651,7 @@ else varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \ -Wl,-soname -Wl,varinfo5so.so endif -varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g +varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g -Wno-maybe-uninitialized # Build shared object for wrap7 wrap7_SOURCES = wrap7.c diff --git a/memcheck/tests/unit_oset.c b/memcheck/tests/unit_oset.c index 1d2d255610..db9aab6a8b 100644 --- a/memcheck/tests/unit_oset.c +++ b/memcheck/tests/unit_oset.c @@ -92,6 +92,7 @@ void example1singleset(OSet* oset, char *descr) UWord sorted_elts[NN]; // Used to test VG_(OSetGen_ResetIterAt) // Try some operations on an empty OSet to ensure they don't screw up. + v = 0; vg_assert( ! VG_(OSetGen_Contains)(oset, &v) ); vg_assert( ! VG_(OSetGen_Lookup)(oset, &v) ); vg_assert( ! VG_(OSetGen_Remove)(oset, &v) ); diff --git a/memcheck/tests/x86-linux/Makefile.am b/memcheck/tests/x86-linux/Makefile.am index e9fdbac5b3..04c18442ef 100644 --- a/memcheck/tests/x86-linux/Makefile.am +++ b/memcheck/tests/x86-linux/Makefile.am @@ -28,3 +28,4 @@ AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CCASFLAGS += @FLAG_M32@ +scalar_supp_CFLAGS = $(AM_CFLAGS) -Wno-uninitialized diff --git a/memcheck/tests/x86/Makefile.am b/memcheck/tests/x86/Makefile.am index 557de6b11a..c8a0cb02fb 100644 --- a/memcheck/tests/x86/Makefile.am +++ b/memcheck/tests/x86/Makefile.am @@ -52,6 +52,7 @@ AM_CCASFLAGS += @FLAG_M32@ # fpeflags must use these flags -- bug only occurred with them. fpeflags_CFLAGS = $(AM_CFLAGS) -march=i686 +pushfpopf_CFLAGS = $(AM_CFLAGS) -Wno-uninitialized pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.S if VGCONF_OS_IS_DARWIN pushpopmem_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic |
|
From: Mark W. <ma...@so...> - 2021-10-10 14:39:12
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=7b1a2b1edd99f15e23be0d259498247367f1e457 commit 7b1a2b1edd99f15e23be0d259498247367f1e457 Author: Mark Wielaard <ma...@kl...> Date: Sun Oct 10 16:35:37 2021 +0200 Fix printf warning in libmpiwrap.c libmpiwrap.c:1379:45: warning: format '%d' expects argument of type 'int', but argument 5 has type 'MPI_Request' {aka 'struct ompi_request_t *'} Unfortunately MPI_Request is an opaque type (we don't really know what is in struct ompi_request_t) so we cannot simply print it as int. In other places we print an MPI_Request as 0x%lx by casting it to an unsigned long. Do the same here. Diff: --- mpi/libmpiwrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpi/libmpiwrap.c b/mpi/libmpiwrap.c index 1ec0c202ae..b277617854 100644 --- a/mpi/libmpiwrap.c +++ b/mpi/libmpiwrap.c @@ -1376,8 +1376,8 @@ static void maybe_complete ( Bool error_in_status, if (count_from_Status(&recv_count, shadow->datatype, status)) { make_mem_defined_if_addressable(shadow->buf, recv_count, shadow->datatype); if (opt_verbosity > 1) - fprintf(stderr, "%s %5d: sReq- %d (completed)\n", - preamble, my_pid, request_before); + fprintf(stderr, "%s %5d: sReq- 0x%lx (completed)\n", + preamble, my_pid, (unsigned long) request_before); } delete_shadow_Request(request_before); } |
|
From: Mark W. <ma...@so...> - 2021-10-10 14:03:56
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=4015813336b620f1642d630963327bf484150648 commit 4015813336b620f1642d630963327bf484150648 Author: Mark Wielaard <ma...@kl...> Date: Sun Oct 10 15:56:50 2021 +0200 Remove some warnings from tests Various tests do things which we want to detect at runtime, like ignoring the result of malloc or doing a deliberate impossibly large allocation or operations that would result in overflowing or truncated strings, that generate a warning from gcc. In once case, mq_setattr called with new and old attrs overlapping, this was explicitly fixed, in others -Wno-foobar was added to silence the warning. This is safe even for older gcc, since a compiler will ignore any -Wno-foobar they don't know about - since they do know they won't warn for foobar. Diff: --- dhat/tests/Makefile.am | 2 ++ massif/tests/Makefile.am | 11 +++++++++++ memcheck/tests/Makefile.am | 9 ++++++++- none/tests/mq.c | 5 +++-- 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/dhat/tests/Makefile.am b/dhat/tests/Makefile.am index ce01a742f7..3b0cd3e62a 100644 --- a/dhat/tests/Makefile.am +++ b/dhat/tests/Makefile.am @@ -26,3 +26,5 @@ check_PROGRAMS = \ AM_CFLAGS += $(AM_FLAG_M3264_PRI) AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) +# We don't care about unused malloc results +big_CFLAGS = $(AM_CFLAGS) -Wno-unused-result diff --git a/massif/tests/Makefile.am b/massif/tests/Makefile.am index 5b5ee599b3..0ecf09676a 100644 --- a/massif/tests/Makefile.am +++ b/massif/tests/Makefile.am @@ -89,3 +89,14 @@ AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) new_cpp_SOURCES = new-cpp.cpp overloaded_new_SOURCES = overloaded-new.cpp +# Suppress warnings for issues we are testing for +alloc_fns_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +big_alloc_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +culling1_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +culling2_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +deep_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +ignoring_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +insig_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +long_names_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +one_CFLAGS = $(AM_CFLAGS) -Wno-unused-result +thresholds_CFLAGS = $(AM_CFLAGS) -Wno-unused-result diff --git a/memcheck/tests/Makefile.am b/memcheck/tests/Makefile.am index 3ce33af181..d7759296fc 100644 --- a/memcheck/tests/Makefile.am +++ b/memcheck/tests/Makefile.am @@ -505,6 +505,12 @@ leak_cpp_interior_SOURCES = leak_cpp_interior.cpp demangle_SOURCES = demangle.cpp +# Suppress various gcc warnings which are correct, but for things +# we are actually testing for at runtime. +accounting_CFLAGS = $(AM_CFLAGS) -Wno-alloc-size-larger-than +bug155125_CFLAGS = $(AM_CFLAGS) -Wno-unused-result -Wno-alloc-size-larger-than +malloc3_CFLAGS = $(AM_CFLAGS) -Wno-alloc-size-larger-than + big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x @@ -590,7 +596,8 @@ sized_delete_SOURCES = sized_delete.cpp sized_delete_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@ endif -str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow \ +str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow -Wno-stringop-overflow \ + -Wno-stringop-truncation \ @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@ supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ diff --git a/none/tests/mq.c b/none/tests/mq.c index 6c1af148ae..72c150d9a5 100644 --- a/none/tests/mq.c +++ b/none/tests/mq.c @@ -15,7 +15,7 @@ int main(int argc, char **argv) { - struct mq_attr mqa; + struct mq_attr mqa, mqa2; mqd_t mqdw; mqd_t mqdr; char buffer[MSGSIZEMAX]; @@ -89,7 +89,8 @@ int main(int argc, char **argv) exit(1); } - if (mq_setattr(mqdw, &mqa, &mqa) < 0) + mqa2 = mqa; + if (mq_setattr(mqdw, &mqa, &mqa2) < 0) { perror("mq_setattr"); mq_close(mqdr); |
|
From: Paul F. <pa...@so...> - 2021-10-10 10:04:34
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=d187106a76381fbca34d57879eb45fc3f88c41d2 commit d187106a76381fbca34d57879eb45fc3f88c41d2 Author: Paul Floyd <pj...@wa...> Date: Sun Oct 10 11:48:50 2021 +0200 Updating a few expecteds based on valgrind-testresults I tried to work out what the expecteds should be based on the changes to the testcase source so there may be a bit more to do. Diff: --- drd/tests/tc09_bad_unlock.stderr.exp-glibc2.8 | 4 +-- drd/tests/tc09_bad_unlock.stderr.exp-ppc | 46 +++++++++++++-------------- drd/tests/tc09_bad_unlock.stderr.exp-s390 | 36 ++++++++++----------- drd/tests/tc09_bad_unlock.stderr.exp-solaris | 36 ++++++++++----------- drd/tests/tc09_bad_unlock.stderr.exp-x86 | 46 +++++++++++++-------------- helgrind/tests/bar_bad.stderr.exp | 16 +++++----- memcheck/tests/badjump2.stderr.exp | 2 +- 7 files changed, 93 insertions(+), 93 deletions(-) diff --git a/drd/tests/tc09_bad_unlock.stderr.exp-glibc2.8 b/drd/tests/tc09_bad_unlock.stderr.exp-glibc2.8 index 9a6c0474f5..8a60570c5b 100644 --- a/drd/tests/tc09_bad_unlock.stderr.exp-glibc2.8 +++ b/drd/tests/tc09_bad_unlock.stderr.exp-glibc2.8 @@ -26,7 +26,7 @@ The object at address 0x........ is not a mutex. Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. at 0x........: nearly_main (tc09_bad_unlock.c:48) - by 0x........: main (tc09_bad_unlock.c:52) + by 0x........: (below main) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) by 0x........: nearly_main (tc09_bad_unlock.c:32) @@ -49,7 +49,7 @@ The object at address 0x........ is not a mutex. Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. at 0x........: nearly_main (tc09_bad_unlock.c:48) - by 0x........: main (tc09_bad_unlock.c:53) + by 0x........: (below main) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) by 0x........: nearly_main (tc09_bad_unlock.c:32) diff --git a/drd/tests/tc09_bad_unlock.stderr.exp-ppc b/drd/tests/tc09_bad_unlock.stderr.exp-ppc index 0be4db6eac..9a42458da9 100644 --- a/drd/tests/tc09_bad_unlock.stderr.exp-ppc +++ b/drd/tests/tc09_bad_unlock.stderr.exp-ppc @@ -1,59 +1,59 @@ Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:24) + by 0x........: main (tc09_bad_unlock.c:52) Thread 2: Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: child_fn (tc09_bad_unlock.c:11) + by 0x........: child_fn (tc09_bad_unlock.c:12) by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:52) Thread 1: The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:52) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:49) + at 0x........: nearly_main (tc09_bad_unlock.c:44) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:52) --------------------- Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:24) + by 0x........: main (tc09_bad_unlock.c:53) The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:53) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:50) + at 0x........: nearly_main (tc09_bad_unlock.c:44) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:53) ERROR SUMMARY: 8 errors from 7 contexts (suppressed: 0 from 0) diff --git a/drd/tests/tc09_bad_unlock.stderr.exp-s390 b/drd/tests/tc09_bad_unlock.stderr.exp-s390 index dd84c816e1..6f6493e483 100644 --- a/drd/tests/tc09_bad_unlock.stderr.exp-s390 +++ b/drd/tests/tc09_bad_unlock.stderr.exp-s390 @@ -1,51 +1,51 @@ Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:24) + by 0x........: main (tc09_bad_unlock.c:52) Thread 2: Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: child_fn (tc09_bad_unlock.c:11) + by 0x........: child_fn (tc09_bad_unlock.c:12) by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:52) Thread 1: The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:52) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:45) + at 0x........: nearly_main (tc09_bad_unlock.c:48) by 0x........: ??? mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:52) --------------------- Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:24) + by 0x........: main (tc09_bad_unlock.c:53) The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:53) ERROR SUMMARY: 8 errors from 6 contexts (suppressed: 0 from 0) diff --git a/drd/tests/tc09_bad_unlock.stderr.exp-solaris b/drd/tests/tc09_bad_unlock.stderr.exp-solaris index a517b71f0f..1a1ef29baa 100644 --- a/drd/tests/tc09_bad_unlock.stderr.exp-solaris +++ b/drd/tests/tc09_bad_unlock.stderr.exp-solaris @@ -1,54 +1,54 @@ Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) + by 0x........: nearly_main (tc09_bad_unlock.c:24) Thread 2: Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: child_fn (tc09_bad_unlock.c:11) + by 0x........: child_fn (tc09_bad_unlock.c:12) by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) + by 0x........: nearly_main (tc09_bad_unlock.c:32) Thread 1: The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:5) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:45) - by 0x........: main (tc09_bad_unlock.c:49) + at 0x........: nearly_main (tc09_bad_unlock.c:48) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) + by 0x........: nearly_main (tc09_bad_unlock.c:32) --------------------- Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) + by 0x........: nearly_main (tc09_bad_unlock.c:24) The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:53) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:45) - by 0x........: main (tc09_bad_unlock.c:50) + at 0x........: nearly_main (tc09_bad_unlock.c:48) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) + by 0x........: nearly_main (tc09_bad_unlock.c:32) ERROR SUMMARY: 8 errors from 7 contexts (suppressed: 0 from 0) diff --git a/drd/tests/tc09_bad_unlock.stderr.exp-x86 b/drd/tests/tc09_bad_unlock.stderr.exp-x86 index 7f8e2cc2aa..9a6c0474f5 100644 --- a/drd/tests/tc09_bad_unlock.stderr.exp-x86 +++ b/drd/tests/tc09_bad_unlock.stderr.exp-x86 @@ -1,59 +1,59 @@ Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:24) + by 0x........: main (tc09_bad_unlock.c:52) Thread 2: Mutex not locked by calling thread: mutex 0x........, recursion count 1, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: child_fn (tc09_bad_unlock.c:11) + by 0x........: child_fn (tc09_bad_unlock.c:12) by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:52) Thread 1: The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:52) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:45) - by 0x........: main (tc09_bad_unlock.c:49) + at 0x........: nearly_main (tc09_bad_unlock.c:48) + by 0x........: main (tc09_bad_unlock.c:52) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:49) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:52) --------------------- Mutex not locked by calling thread: mutex 0x........, recursion count 0, owner 1. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:27) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:28) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:23) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:24) + by 0x........: main (tc09_bad_unlock.c:53) The object at address 0x........ is not a mutex. at 0x........: pthread_mutex_unlock (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:41) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:43) + by 0x........: main (tc09_bad_unlock.c:53) Destroying locked mutex: mutex 0x........, recursion count 1, owner 1. - at 0x........: nearly_main (tc09_bad_unlock.c:45) - by 0x........: main (tc09_bad_unlock.c:50) + at 0x........: nearly_main (tc09_bad_unlock.c:48) + by 0x........: main (tc09_bad_unlock.c:53) mutex 0x........ was first observed at: at 0x........: pthread_mutex_init (drd_pthread_intercepts.c:?) - by 0x........: nearly_main (tc09_bad_unlock.c:31) - by 0x........: main (tc09_bad_unlock.c:50) + by 0x........: nearly_main (tc09_bad_unlock.c:32) + by 0x........: main (tc09_bad_unlock.c:53) ERROR SUMMARY: 8 errors from 7 contexts (suppressed: 0 from 0) diff --git a/helgrind/tests/bar_bad.stderr.exp b/helgrind/tests/bar_bad.stderr.exp index a675a18df0..7aa18c047c 100644 --- a/helgrind/tests/bar_bad.stderr.exp +++ b/helgrind/tests/bar_bad.stderr.exp @@ -8,14 +8,14 @@ Thread #x is the program's root thread Thread #x: pthread_barrier_init: 'count' argument is zero at 0x........: pthread_barrier_init (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:43) + by 0x........: main (bar_bad.c:44) ---------------------------------------------------------------- Thread #x's call to pthread_barrier_init failed with error code 22 (EINVAL: Invalid argument) at 0x........: pthread_barrier_init (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:43) + by 0x........: main (bar_bad.c:44) initialise a barrier twice @@ -23,7 +23,7 @@ initialise a barrier twice Thread #x: pthread_barrier_init: barrier is already initialised at 0x........: pthread_barrier_init (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:49) + by 0x........: main (bar_bad.c:50) initialise a barrier which has threads waiting on it @@ -31,13 +31,13 @@ initialise a barrier which has threads waiting on it Thread #x: pthread_barrier_init: barrier is already initialised at 0x........: pthread_barrier_init (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:64) + by 0x........: main (bar_bad.c:65) ---------------------------------------------------------------- Thread #x: pthread_barrier_init: threads are waiting at barrier at 0x........: pthread_barrier_init (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:64) + by 0x........: main (bar_bad.c:65) destroy a barrier that has waiting threads @@ -45,14 +45,14 @@ destroy a barrier that has waiting threads Thread #x: pthread_barrier_destroy: threads are waiting at barrier at 0x........: pthread_barrier_destroy (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:82) + by 0x........: main (bar_bad.c:83) ---------------------------------------------------------------- Thread #x's call to pthread_barrier_destroy failed with error code 16 (EBUSY: Device or resource busy) at 0x........: pthread_barrier_destroy (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:82) + by 0x........: main (bar_bad.c:83) destroy a barrier that was never initialised @@ -60,5 +60,5 @@ destroy a barrier that was never initialised Thread #x: pthread_barrier_destroy: barrier was never initialised at 0x........: pthread_barrier_destroy (hg_intercepts.c:...) - by 0x........: main (bar_bad.c:98) + by 0x........: main (bar_bad.c:100) diff --git a/memcheck/tests/badjump2.stderr.exp b/memcheck/tests/badjump2.stderr.exp index 7033e69d7e..78e416bdcd 100644 --- a/memcheck/tests/badjump2.stderr.exp +++ b/memcheck/tests/badjump2.stderr.exp @@ -1,6 +1,6 @@ Jump to the invalid address stated on the next line ... - by 0x........: main (badjump2.c:46) + by 0x........: main (badjump2.c:47) Address 0x........ is not stack'd, malloc'd or (recently) free'd Signal caught, as expected |