================================================= ./valgrind-new/exp-sgcheck/tests/preen_invars.stderr.diff-glibc28-amd64 ================================================= --- preen_invars.stderr.exp-glibc28-amd64 2016-10-25 02:49:57.928393843 +0100 +++ preen_invars.stderr.out 2016-10-25 03:08:34.421019130 +0100 @@ -6,4 +6,46 @@ Actual: global array "im_a_global_arr" of size 10 in object with soname "preen_invars_so" -ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) +exp-sgcheck: sg_main.c:559 (add_blocks_to_StackTree): Assertion '!already_present' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:343) + by 0x........: report_and_quit (m_libcassert.c:419) + by 0x........: vgPlain_assert_fail (m_libcassert.c:485) + by 0x........: add_blocks_to_StackTree (sg_main.c:559) + by 0x........: shadowStack_new_frame.isra.22 (sg_main.c:1883) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + by 0x........: _dl_sort_fini (dl-fini.c:41) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? (in /tmp/vgdb-pipe-shared-mem-vgdb-13791-by-???-on-mock) + by 0x........: ??? + +sched status: + running_tid=1 + +Thread 1: status = VgTs_Runnable (lwpid 13791) + at 0x........: _dl_sort_fini (dl-fini.c:121) + by 0x........: _dl_close_worker.part.0 (dl-close.c:244) + by 0x........: _dl_close (dl-close.c:125) + by 0x........: _dl_catch_error (dl-error.c:187) + by 0x........: _dlerror_run (dlerror.c:163) + by 0x........: dlclose (dlclose.c:46) + by 0x........: main (preen_invars.c:48) + + +Note: see also the FAQ in the source distribution. +It contains workarounds to several common problems. +In particular, if Valgrind aborted or crashed after +identifying problems in your program, there's a good chance +that fixing those problems will prevent Valgrind aborting or +crashing, especially if it happened in m_mallocfree.c. + +If that doesn't help, please report this bug to: www.valgrind.org + +In the bug report, send all the above text, the valgrind +version, and what OS and version you are using. Thanks. + ================================================= ./valgrind-new/exp-sgcheck/tests/preen_invars.stdout.diff ================================================= --- preen_invars.stdout.exp 2016-10-25 02:49:57.926393885 +0100 +++ preen_invars.stdout.out 2016-10-25 03:08:31.844064006 +0100 @@ -1 +0,0 @@ -foo bar 1 ================================================= ./valgrind-new/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2016-10-25 02:49:57.069412144 +0100 +++ hgtls.stdoutB.out 2016-10-25 02:55:44.554777088 +0100 @@ -8,28 +8,28 @@ test race tls_ip 0x........ ip 0x........ equal 1 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test local tls_ip 0x........ ip 0x........ equal 1 +test local tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test local tls_ip 0x........ ip 0x........ equal 1 +test local tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test global tls_ip 0x........ ip 0x........ equal 1 +test global tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test global tls_ip 0x........ ip 0x........ equal 1 +test global tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test static_extern tls_ip 0x........ ip 0x........ equal 1 +test static_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test static_extern tls_ip 0x........ ip 0x........ equal 1 +test static_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; test so_local tls_ip 0x........ ip 0x........ equal 1 ================================================= ./valgrind-new/massif/tests/new-cpp.post.diff ================================================= --- new-cpp.post.exp 2016-10-25 02:49:57.815396250 +0100 +++ new-cpp.post.out 2016-10-25 02:59:47.626355593 +0100 @@ -6,54 +6,60 @@ KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ ### + | :::# ::: + | ::::: # : : + | :::: :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: 0 +----------------------------------------------------------------------->KB - 0 23.50 + 0 94.51 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 11 + Detailed snapshots: [6 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -->33.24% (4,000B) 0x........: main (new-cpp.cpp:19) + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. +->85.79% (72,704B) 0x........: ??? (in /usr/lib64/libstdc++.so.6.0.21) +| ->85.79% (72,704B) 0x........: call_init.part.0 (dl-init.c:72) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:30) +| ->85.79% (72,704B) 0x........: ??? (in /usr/lib64/ld-2.22.so) +| +->04.72% (4,000B) 0x........: main (new-cpp.cpp:19) | -->33.24% (4,000B) 0x........: main (new-cpp.cpp:20) +->04.72% (4,000B) 0x........: main (new-cpp.cpp:20) | -->16.62% (2,000B) 0x........: main (new-cpp.cpp:21) +->02.36% (2,000B) 0x........: main (new-cpp.cpp:21) | -->16.62% (2,000B) 0x........: main (new-cpp.cpp:22) +->02.36% (2,000B) 0x........: main (new-cpp.cpp:22) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- - 6 16,040 8,024 8,000 24 0 - 7 20,048 4,016 4,000 16 0 - 8 22,056 2,008 2,000 8 0 - 9 24,064 0 0 0 0 + 7 88,752 80,736 80,704 32 0 + 8 92,760 76,728 76,704 24 0 + 9 94,768 74,720 74,704 16 0 + 10 96,776 72,712 72,704 8 0 ================================================= ./valgrind-new/massif/tests/overloaded-new.post.diff ================================================= --- overloaded-new.post.exp 2016-10-25 02:49:57.808396399 +0100 +++ overloaded-new.post.out 2016-10-25 02:59:48.545338849 +0100 @@ -6,54 +6,60 @@ KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ ### + | :::# ::: + | ::::: # : : + | :::: :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: 0 +----------------------------------------------------------------------->KB - 0 23.50 + 0 94.51 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 11 + Detailed snapshots: [6 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -->33.24% (4,000B) 0x........: main (overloaded-new.cpp:49) + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. +->85.79% (72,704B) 0x........: ??? (in /usr/lib64/libstdc++.so.6.0.21) +| ->85.79% (72,704B) 0x........: call_init.part.0 (dl-init.c:72) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:30) +| ->85.79% (72,704B) 0x........: ??? (in /usr/lib64/ld-2.22.so) +| +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:49) | -->33.24% (4,000B) 0x........: main (overloaded-new.cpp:50) +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:50) | -->16.62% (2,000B) 0x........: main (overloaded-new.cpp:51) +->02.36% (2,000B) 0x........: main (overloaded-new.cpp:51) | -->16.62% (2,000B) 0x........: main (overloaded-new.cpp:52) +->02.36% (2,000B) 0x........: main (overloaded-new.cpp:52) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- - 6 16,040 8,024 8,000 24 0 - 7 20,048 4,016 4,000 16 0 - 8 22,056 2,008 2,000 8 0 - 9 24,064 0 0 0 0 + 7 88,752 80,736 80,704 32 0 + 8 92,760 76,728 76,704 24 0 + 9 94,768 74,720 74,704 16 0 + 10 96,776 72,712 72,704 8 0 ================================================= ./valgrind-new/massif/tests/overloaded-new.post.diff-mips32 ================================================= --- overloaded-new.post.exp-mips32 2016-10-25 02:49:57.817396207 +0100 +++ overloaded-new.post.out 2016-10-25 02:59:48.545338849 +0100 @@ -1,63 +1,65 @@ -------------------------------------------------------------------------------- Command: ./overloaded-new -Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element +Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc ms_print arguments: massif.out -------------------------------------------------------------------------------- KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ ### + | :::# ::: + | ::::: # : : + | :::: :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: 0 +----------------------------------------------------------------------->KB - 0 23.50 + 0 94.51 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 11 + Detailed snapshots: [6 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -->33.24% (4,000B) 0x........: operator new(unsigned int) (overloaded-new.cpp:19) -| ->33.24% (4,000B) 0x........: main (overloaded-new.cpp:49) -| -->33.24% (4,000B) 0x........: operator new(unsigned int, std::nothrow_t const&) (overloaded-new.cpp:24) -| ->33.24% (4,000B) 0x........: main (overloaded-new.cpp:50) -| -->16.62% (2,000B) 0x........: operator new[](unsigned int) (overloaded-new.cpp:29) -| ->16.62% (2,000B) 0x........: main (overloaded-new.cpp:51) -| -->16.62% (2,000B) 0x........: operator new[](unsigned int, std::nothrow_t const&) (overloaded-new.cpp:34) - ->16.62% (2,000B) 0x........: main (overloaded-new.cpp:52) - + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. +->85.79% (72,704B) 0x........: ??? (in /usr/lib64/libstdc++.so.6.0.21) +| ->85.79% (72,704B) 0x........: call_init.part.0 (dl-init.c:72) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:30) +| ->85.79% (72,704B) 0x........: ??? (in /usr/lib64/ld-2.22.so) +| +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:49) +| +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:50) +| +->02.36% (2,000B) 0x........: main (overloaded-new.cpp:51) ================================================= ./valgrind-new/memcheck/tests/leak_cpp_interior.stderr.diff ================================================= --- leak_cpp_interior.stderr.exp 2016-10-25 02:49:57.350406157 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:57:30.566824274 +0100 @@ -1,118 +1,112 @@ valgrind output will go to log VALGRIND_DO_LEAK_CHECK -4 bytes in 1 blocks are definitely lost in loss record ... of ... +8 bytes in 1 blocks are definitely lost in loss record ... of ... by 0x........: doit() (leak_cpp_interior.cpp:115) by 0x........: main (leak_cpp_interior.cpp:130) LEAK SUMMARY: - definitely lost: 4 bytes in 1 blocks + definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 163 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 56 bytes in 2 blocks length64 : 31 bytes in 1 blocks - newarray : 28 bytes in 1 blocks - multipleinheritance: 24 bytes in 2 blocks + newarray : 32 bytes in 1 blocks + multipleinheritance: 48 bytes in 2 blocks suppressed: 0 bytes in 0 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-leak-kinds=all leak_check summary heuristics multipleinheritance LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 115 (+115) bytes in 4 (+4) blocks - still reachable: 48 (-115) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-56) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks - multipleinheritance: 24 (+0) bytes in 2 (+0) blocks + newarray : 0 (-32) bytes in 0 (-1) blocks + multipleinheritance: 48 (+0) bytes in 2 (+0) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary any heuristics newarray LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 111 (-4) bytes in 5 (+1) blocks - still reachable: 52 (+4) bytes in 3 (-1) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: - newarray : 28 (+28) bytes in 1 (+1) blocks - multipleinheritance: 0 (-24) bytes in 0 (-2) blocks + newarray : 63 (+63) bytes in 2 (+2) blocks + multipleinheritance: 0 (-48) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 108 (-3) bytes in 5 (+0) blocks - still reachable: 55 (+3) bytes in 3 (+0) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks + newarray : 0 (-63) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics stdstring LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 83 (-25) bytes in 4 (-1) blocks - still reachable: 80 (+25) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 56 (+56) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics multipleinheritance,newarray,stdstring,length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks ================================================= ./valgrind-new/memcheck/tests/leak_cpp_interior.stderr.diff-64bit ================================================= --- leak_cpp_interior.stderr.exp-64bit 2016-10-25 02:49:57.281407627 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:57:30.566824274 +0100 @@ -9,9 +9,8 @@ definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 239 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 80 bytes in 2 blocks length64 : 31 bytes in 1 blocks newarray : 32 bytes in 1 blocks multipleinheritance: 48 bytes in 2 blocks @@ -23,10 +22,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 143 (+143) bytes in 4 (+4) blocks - still reachable: 96 (-143) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-80) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -37,8 +35,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 128 (-15) bytes in 4 (+0) blocks - still reachable: 111 (+15) bytes in 4 (+0) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: newarray : 63 (+63) bytes in 2 (+2) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -49,8 +47,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 160 (+32) bytes in 5 (+1) blocks - still reachable: 79 (-32) bytes in 3 (-1) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 0 (-63) bytes in 0 (-2) blocks @@ -61,10 +59,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 111 (-49) bytes in 4 (-1) blocks - still reachable: 128 (+49) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 80 (+80) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check @@ -74,9 +71,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (-111) bytes in 0 (-4) blocks - still reachable: 239 (+111) bytes in 8 (+4) blocks + still reachable: 72,894 (+111) bytes in 8 (+4) blocks of which reachable via heuristic: - stdstring : 80 (+0) bytes in 2 (+0) blocks length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 32 (+32) bytes in 1 (+1) blocks multipleinheritance: 48 (+48) bytes in 2 (+2) blocks @@ -88,9 +84,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (+0) bytes in 0 (+0) blocks - still reachable: 239 (+0) bytes in 8 (+0) blocks + still reachable: 72,894 (+0) bytes in 8 (+0) blocks of which reachable via heuristic: - stdstring : 80 (+0) bytes in 2 (+0) blocks length64 : 31 (+0) bytes in 1 (+0) blocks newarray : 32 (+0) bytes in 1 (+0) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -101,10 +96,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 191 (+191) bytes in 6 (+6) blocks - still reachable: 48 (-191) bytes in 2 (-6) blocks + possibly lost: 111 (+111) bytes in 4 (+4) blocks + still reachable: 72,783 (-111) bytes in 4 (-4) blocks of which reachable via heuristic: - stdstring : 0 (-80) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -133,10 +127,16 @@ Finished! HEAP SUMMARY: ================================================= ./valgrind-new/memcheck/tests/leak_cpp_interior.stderr.diff-64bit-solaris ================================================= --- leak_cpp_interior.stderr.exp-64bit-solaris 2016-10-25 02:49:57.155410312 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:57:30.566824274 +0100 @@ -9,9 +9,8 @@ definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 273 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 114 bytes in 2 blocks length64 : 31 bytes in 1 blocks newarray : 32 bytes in 1 blocks multipleinheritance: 48 bytes in 2 blocks @@ -23,10 +22,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 177 (+177) bytes in 4 (+4) blocks - still reachable: 96 (-177) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-114) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -37,8 +35,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 162 (-15) bytes in 4 (+0) blocks - still reachable: 111 (+15) bytes in 4 (+0) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: newarray : 63 (+63) bytes in 2 (+2) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -49,8 +47,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 194 (+32) bytes in 5 (+1) blocks - still reachable: 79 (-32) bytes in 3 (-1) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 0 (-63) bytes in 0 (-2) blocks @@ -61,10 +59,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 111 (-83) bytes in 4 (-1) blocks - still reachable: 162 (+83) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 114 (+114) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check @@ -74,9 +71,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (-111) bytes in 0 (-4) blocks - still reachable: 273 (+111) bytes in 8 (+4) blocks + still reachable: 72,894 (+111) bytes in 8 (+4) blocks of which reachable via heuristic: - stdstring : 114 (+0) bytes in 2 (+0) blocks length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 32 (+32) bytes in 1 (+1) blocks multipleinheritance: 48 (+48) bytes in 2 (+2) blocks @@ -88,9 +84,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (+0) bytes in 0 (+0) blocks - still reachable: 273 (+0) bytes in 8 (+0) blocks + still reachable: 72,894 (+0) bytes in 8 (+0) blocks of which reachable via heuristic: - stdstring : 114 (+0) bytes in 2 (+0) blocks length64 : 31 (+0) bytes in 1 (+0) blocks newarray : 32 (+0) bytes in 1 (+0) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -101,10 +96,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 225 (+225) bytes in 6 (+6) blocks - still reachable: 48 (-225) bytes in 2 (-6) blocks + possibly lost: 111 (+111) bytes in 4 (+4) blocks + still reachable: 72,783 (-111) bytes in 4 (-4) blocks of which reachable via heuristic: - stdstring : 0 (-114) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -133,10 +127,16 @@ Finished! HEAP SUMMARY: ================================================= ./valgrind-new/memcheck/tests/leak_cpp_interior.stderr.diff-solaris ================================================= --- leak_cpp_interior.stderr.exp-solaris 2016-10-25 02:49:57.631400170 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:57:30.566824274 +0100 @@ -1,118 +1,112 @@ valgrind output will go to log VALGRIND_DO_LEAK_CHECK -4 bytes in 1 blocks are definitely lost in loss record ... of ... +8 bytes in 1 blocks are definitely lost in loss record ... of ... by 0x........: doit() (leak_cpp_interior.cpp:115) by 0x........: main (leak_cpp_interior.cpp:130) LEAK SUMMARY: - definitely lost: 4 bytes in 1 blocks + definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 197 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 90 bytes in 2 blocks length64 : 31 bytes in 1 blocks - newarray : 28 bytes in 1 blocks - multipleinheritance: 24 bytes in 2 blocks + newarray : 32 bytes in 1 blocks + multipleinheritance: 48 bytes in 2 blocks suppressed: 0 bytes in 0 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-leak-kinds=all leak_check summary heuristics multipleinheritance LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 149 (+149) bytes in 4 (+4) blocks - still reachable: 48 (-149) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-90) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks - multipleinheritance: 24 (+0) bytes in 2 (+0) blocks + newarray : 0 (-32) bytes in 0 (-1) blocks + multipleinheritance: 48 (+0) bytes in 2 (+0) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary any heuristics newarray LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 145 (-4) bytes in 5 (+1) blocks - still reachable: 52 (+4) bytes in 3 (-1) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: - newarray : 28 (+28) bytes in 1 (+1) blocks - multipleinheritance: 0 (-24) bytes in 0 (-2) blocks + newarray : 63 (+63) bytes in 2 (+2) blocks + multipleinheritance: 0 (-48) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 142 (-3) bytes in 5 (+0) blocks - still reachable: 55 (+3) bytes in 3 (+0) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks + newarray : 0 (-63) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics stdstring LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 83 (-59) bytes in 4 (-1) blocks - still reachable: 114 (+59) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 90 (+90) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics multipleinheritance,newarray,stdstring,length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks ================================================= ./valgrind-old/drd/tests/bar_bad.stderr.diff ================================================= --- bar_bad.stderr.exp 2016-10-25 02:30:31.753939213 +0100 +++ bar_bad.stderr.out 2016-10-25 02:45:53.133999238 +0100 @@ -35,4 +35,75 @@ destroy a barrier that was never initialised -ERROR SUMMARY: 5 errors from 4 contexts (suppressed: 0 from 0) +drd: drd_barrier.c:352 (vgDrd_barrier_pre_wait): Assertion 'p' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:?) + by 0x........: report_and_quit (m_libcassert.c:?) + by 0x........: vgPlain_assert_fail (m_libcassert.c:?) + by 0x........: vgDrd_barrier_pre_wait (drd_barrier.c:?) + by 0x........: handle_client_request (drd_clientreq.c:?) + by 0x........: wrap_tool_handle_client_request (m_tooliface.c:?) + by 0x........: do_client_request (scheduler.c:?) + by 0x........: vgPlain_scheduler (scheduler.c:?) + by 0x........: thread_wrapper (syswrap-linux.c:103) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:156) + by 0x........: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:325) + by 0x........: ??? (in /tmp/vgtest-29405/2016-10-25/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 25162) + at 0x........: __lll_lock_wait (lowlevellock.S:131) + by 0x........: pthread_barrier_destroy (pthread_barrier_destroy.c:?) + by 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?) + by 0x........: main (bar_bad.c:?) + +Thread 2: status = VgTs_WaitSys (lwpid 25163) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 3: status = VgTs_WaitSys (lwpid 25164) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 4: status = VgTs_Runnable (lwpid 25280) + at 0x........: pthread_barrier_wait (drd_pthread_intercepts.c:?) + by 0x........: sleep1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + +Thread 5: status = VgTs_WaitSys (lwpid 25281) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 6: status = VgTs_WaitSys (lwpid 25282) + at 0x........: ??? (syscall-template.S:84) + by 0x........: sleep (sleep.c:?) + by 0x........: exit1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + + +Note: see also the FAQ in the source distribution. +It contains workarounds to several common problems. +In particular, if Valgrind aborted or crashed after +identifying problems in your program, there's a good chance +that fixing those problems will prevent Valgrind aborting or +crashing, especially if it happened in m_mallocfree.c. + +If that doesn't help, please report this bug to: www.valgrind.org + +In the bug report, send all the above text, the valgrind +version, and what OS and version you are using. Thanks. + ================================================= ./valgrind-old/drd/tests/bar_bad.stderr.diff-nohang ================================================= --- bar_bad.stderr.exp-nohang 2016-10-25 02:30:31.714939932 +0100 +++ bar_bad.stderr.out 2016-10-25 02:45:53.133999238 +0100 @@ -34,9 +34,76 @@ destroy a barrier that was never initialised -Not a barrier - at 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?) + +drd: drd_barrier.c:352 (vgDrd_barrier_pre_wait): Assertion 'p' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:?) + by 0x........: report_and_quit (m_libcassert.c:?) + by 0x........: vgPlain_assert_fail (m_libcassert.c:?) + by 0x........: vgDrd_barrier_pre_wait (drd_barrier.c:?) + by 0x........: handle_client_request (drd_clientreq.c:?) + by 0x........: wrap_tool_handle_client_request (m_tooliface.c:?) + by 0x........: do_client_request (scheduler.c:?) + by 0x........: vgPlain_scheduler (scheduler.c:?) + by 0x........: thread_wrapper (syswrap-linux.c:103) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:156) + by 0x........: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:325) + by 0x........: ??? (in /tmp/vgtest-29405/2016-10-25/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 25162) + at 0x........: __lll_lock_wait (lowlevellock.S:131) + by 0x........: pthread_barrier_destroy (pthread_barrier_destroy.c:?) + by 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?) by 0x........: main (bar_bad.c:?) +Thread 2: status = VgTs_WaitSys (lwpid 25163) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 3: status = VgTs_WaitSys (lwpid 25164) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 4: status = VgTs_Runnable (lwpid 25280) + at 0x........: pthread_barrier_wait (drd_pthread_intercepts.c:?) + by 0x........: sleep1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + +Thread 5: status = VgTs_WaitSys (lwpid 25281) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 6: status = VgTs_WaitSys (lwpid 25282) + at 0x........: ??? (syscall-template.S:84) + by 0x........: sleep (sleep.c:?) + by 0x........: exit1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + + +Note: see also the FAQ in the source distribution. +It contains workarounds to several common problems. +In particular, if Valgrind aborted or crashed after +identifying problems in your program, there's a good chance +that fixing those problems will prevent Valgrind aborting or +crashing, especially if it happened in m_mallocfree.c. + +If that doesn't help, please report this bug to: www.valgrind.org + +In the bug report, send all the above text, the valgrind +version, and what OS and version you are using. Thanks. -ERROR SUMMARY: 6 errors from 5 contexts (suppressed: 0 from 0) ================================================= ./valgrind-old/drd/tests/bar_bad.stderr.diff-solaris ================================================= --- bar_bad.stderr.exp-solaris 2016-10-25 02:30:31.757939139 +0100 +++ bar_bad.stderr.out 2016-10-25 02:45:53.133999238 +0100 @@ -34,16 +34,76 @@ destroy a barrier that was never initialised -Not a barrier - at 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?) - by 0x........: main (bar_bad.c:?) -Destruction of barrier that is being waited upon: barrier 0x........ - at 0x........: free (vg_replace_malloc.c:...) - by 0x........: main (bar_bad.c:?) -barrier 0x........ was first observed at: - at 0x........: pthread_barrier_init (drd_pthread_intercepts.c:?) +drd: drd_barrier.c:352 (vgDrd_barrier_pre_wait): Assertion 'p' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:?) + by 0x........: report_and_quit (m_libcassert.c:?) + by 0x........: vgPlain_assert_fail (m_libcassert.c:?) + by 0x........: vgDrd_barrier_pre_wait (drd_barrier.c:?) + by 0x........: handle_client_request (drd_clientreq.c:?) + by 0x........: wrap_tool_handle_client_request (m_tooliface.c:?) + by 0x........: do_client_request (scheduler.c:?) + by 0x........: vgPlain_scheduler (scheduler.c:?) + by 0x........: thread_wrapper (syswrap-linux.c:103) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:156) + by 0x........: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:325) + by 0x........: ??? (in /tmp/vgtest-29405/2016-10-25/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 25162) + at 0x........: __lll_lock_wait (lowlevellock.S:131) + by 0x........: pthread_barrier_destroy (pthread_barrier_destroy.c:?) + by 0x........: pthread_barrier_destroy (drd_pthread_intercepts.c:?) by 0x........: main (bar_bad.c:?) +Thread 2: status = VgTs_WaitSys (lwpid 25163) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 3: status = VgTs_WaitSys (lwpid 25164) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 4: status = VgTs_Runnable (lwpid 25280) + at 0x........: pthread_barrier_wait (drd_pthread_intercepts.c:?) + by 0x........: sleep1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + +Thread 5: status = VgTs_WaitSys (lwpid 25281) + at 0x........: pthread_barrier_wait (pthread_barrier_wait.S:71) + by 0x........: ??? + by 0x........: ??? + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + +Thread 6: status = VgTs_WaitSys (lwpid 25282) + at 0x........: ??? (syscall-template.S:84) + by 0x........: sleep (sleep.c:?) + by 0x........: exit1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + + +Note: see also the FAQ in the source distribution. +It contains workarounds to several common problems. +In particular, if Valgrind aborted or crashed after +identifying problems in your program, there's a good chance +that fixing those problems will prevent Valgrind aborting or +crashing, especially if it happened in m_mallocfree.c. + +If that doesn't help, please report this bug to: www.valgrind.org + +In the bug report, send all the above text, the valgrind +version, and what OS and version you are using. Thanks. -ERROR SUMMARY: 7 errors from 6 contexts (suppressed: 0 from 0) ================================================= ./valgrind-old/drd/tests/bar_bad_xml.stderr.diff ================================================= --- bar_bad_xml.stderr.exp 2016-10-25 02:30:31.764939010 +0100 +++ bar_bad_xml.stderr.out 2016-10-25 02:46:06.366754431 +0100 @@ -204,32 +204,152 @@ destroy a barrier that was never initialised + - - FINISHED - - - - - - ... - 0x........ - - - ... - 0x........ - - - ... - 0x........ - - - ... - 0x........ - - +drd: drd_barrier.c:352 (vgDrd_barrier_pre_wait): Assertion 'p' failed. -... +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:?) + by 0x........: report_and_quit (m_libcassert.c:?) + by 0x........: vgPlain_assert_fail (m_libcassert.c:?) + by 0x........: vgDrd_barrier_pre_wait (drd_barrier.c:?) + by 0x........: handle_client_request (drd_clientreq.c:?) + by 0x........: wrap_tool_handle_client_request (m_tooliface.c:?) + by 0x........: do_client_request (scheduler.c:?) + by 0x........: vgPlain_scheduler (scheduler.c:?) + by 0x........: thread_wrapper (syswrap-linux.c:103) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:156) + by 0x........: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:325) + by 0x........: ??? (in /tmp/vgtest-29405/2016-10-25/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 28005) + + + 0x........ + ... + pthread_barrier_destroy + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + main + ... + bar_bad.c + ... + + + +Thread 2: status = VgTs_WaitSys (lwpid 28006) + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 28007) + + + 0x........ + ... + vgDrd_thread_wrapper ================================================= ./valgrind-old/drd/tests/bar_bad_xml.stderr.diff-nohang ================================================= --- bar_bad_xml.stderr.exp-nohang 2016-10-25 02:30:31.726939710 +0100 +++ bar_bad_xml.stderr.out 2016-10-25 02:46:06.366754431 +0100 @@ -204,11 +204,31 @@ destroy a barrier that was never initialised - - 0x........ - ... - GenericErr - Not a barrier + + +drd: drd_barrier.c:352 (vgDrd_barrier_pre_wait): Assertion 'p' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:?) + by 0x........: report_and_quit (m_libcassert.c:?) + by 0x........: vgPlain_assert_fail (m_libcassert.c:?) + by 0x........: vgDrd_barrier_pre_wait (drd_barrier.c:?) + by 0x........: handle_client_request (drd_clientreq.c:?) + by 0x........: wrap_tool_handle_client_request (m_tooliface.c:?) + by 0x........: do_client_request (scheduler.c:?) + by 0x........: vgPlain_scheduler (scheduler.c:?) + by 0x........: thread_wrapper (syswrap-linux.c:103) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:156) + by 0x........: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:325) + by 0x........: ??? (in /tmp/vgtest-29405/2016-10-25/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 28005) 0x........ @@ -227,38 +247,109 @@ ... - + +Thread 2: status = VgTs_WaitSys (lwpid 28006) + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 28007) + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 4: status = VgTs_Runnable (lwpid 28044) + + + 0x........ + ... + pthread_barrier_wait + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... ================================================= ./valgrind-old/drd/tests/bar_bad_xml.stderr.diff-solaris ================================================= --- bar_bad_xml.stderr.exp-solaris 2016-10-25 02:30:31.769938918 +0100 +++ bar_bad_xml.stderr.out 2016-10-25 02:46:06.366754431 +0100 @@ -204,11 +204,31 @@ destroy a barrier that was never initialised - - 0x........ - ... - GenericErr - Not a barrier + + +drd: drd_barrier.c:352 (vgDrd_barrier_pre_wait): Assertion 'p' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:?) + by 0x........: report_and_quit (m_libcassert.c:?) + by 0x........: vgPlain_assert_fail (m_libcassert.c:?) + by 0x........: vgDrd_barrier_pre_wait (drd_barrier.c:?) + by 0x........: handle_client_request (drd_clientreq.c:?) + by 0x........: wrap_tool_handle_client_request (m_tooliface.c:?) + by 0x........: do_client_request (scheduler.c:?) + by 0x........: vgPlain_scheduler (scheduler.c:?) + by 0x........: thread_wrapper (syswrap-linux.c:103) + by 0x........: run_a_thread_NORETURN (syswrap-linux.c:156) + by 0x........: vgModuleLocal_start_thread_NORETURN (syswrap-linux.c:325) + by 0x........: ??? (in /tmp/vgtest-29405/2016-10-25/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 28005) 0x........ @@ -227,89 +247,109 @@ ... - - - 0x........ - ... - BarrierErr - Destruction of barrier that is being waited upon: barrier 0x........ +Thread 2: status = VgTs_WaitSys (lwpid 28006) 0x........ ... - free + sleep1 ... - vg_replace_malloc.c + bar_bad.c ... 0x........ ... - main + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 28007) + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 4: status = VgTs_Runnable (lwpid 28044) + + + 0x........ + ... + pthread_barrier_wait + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + sleep1 ... ================================================= ./valgrind-old/exp-sgcheck/tests/preen_invars.stderr.diff-glibc28-amd64 ================================================= --- preen_invars.stderr.exp-glibc28-amd64 2016-10-25 02:30:28.043007612 +0100 +++ preen_invars.stderr.out 2016-10-25 02:49:46.176621703 +0100 @@ -6,4 +6,46 @@ Actual: global array "im_a_global_arr" of size 10 in object with soname "preen_invars_so" -ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) +exp-sgcheck: sg_main.c:559 (add_blocks_to_StackTree): Assertion '!already_present' failed. + +host stacktrace: + at 0x........: show_sched_status_wrk (m_libcassert.c:343) + by 0x........: report_and_quit (m_libcassert.c:419) + by 0x........: vgPlain_assert_fail (m_libcassert.c:485) + by 0x........: add_blocks_to_StackTree (sg_main.c:559) + by 0x........: shadowStack_new_frame.isra.22 (sg_main.c:1883) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + by 0x........: _dl_sort_fini (dl-fini.c:41) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? (in /tmp/vgdb-pipe-shared-mem-vgdb-22538-by-???-on-mock) + by 0x........: ??? + +sched status: + running_tid=1 + +Thread 1: status = VgTs_Runnable (lwpid 22538) + at 0x........: _dl_sort_fini (dl-fini.c:121) + by 0x........: _dl_close_worker.part.0 (dl-close.c:244) + by 0x........: _dl_close (dl-close.c:125) + by 0x........: _dl_catch_error (dl-error.c:187) + by 0x........: _dlerror_run (dlerror.c:163) + by 0x........: dlclose (dlclose.c:46) + by 0x........: main (preen_invars.c:48) + + +Note: see also the FAQ in the source distribution. +It contains workarounds to several common problems. +In particular, if Valgrind aborted or crashed after +identifying problems in your program, there's a good chance +that fixing those problems will prevent Valgrind aborting or +crashing, especially if it happened in m_mallocfree.c. + +If that doesn't help, please report this bug to: www.valgrind.org + +In the bug report, send all the above text, the valgrind +version, and what OS and version you are using. Thanks. + ================================================= ./valgrind-old/exp-sgcheck/tests/preen_invars.stdout.diff ================================================= --- preen_invars.stdout.exp 2016-10-25 02:30:28.041007649 +0100 +++ preen_invars.stdout.out 2016-10-25 02:49:43.617670409 +0100 @@ -1 +0,0 @@ -foo bar 1 ================================================= ./valgrind-old/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2016-10-25 02:30:27.133024385 +0100 +++ hgtls.stdoutB.out 2016-10-25 02:36:30.886338672 +0100 @@ -8,28 +8,28 @@ test race tls_ip 0x........ ip 0x........ equal 1 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test local tls_ip 0x........ ip 0x........ equal 1 +test local tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test local tls_ip 0x........ ip 0x........ equal 1 +test local tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test global tls_ip 0x........ ip 0x........ equal 1 +test global tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test global tls_ip 0x........ ip 0x........ equal 1 +test global tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test static_extern tls_ip 0x........ ip 0x........ equal 1 +test static_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test static_extern tls_ip 0x........ ip 0x........ equal 1 +test static_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; -test so_extern tls_ip 0x........ ip 0x........ equal 1 +test so_extern tls_ip 0x........ ip 0x........ equal 0 Breakpoint 1, tls_ptr (p=0x........) at tls.c:55 55 int here = 0; test so_local tls_ip 0x........ ip 0x........ equal 1 ================================================= ./valgrind-old/massif/tests/new-cpp.post.diff ================================================= --- new-cpp.post.exp 2016-10-25 02:30:27.882010580 +0100 +++ new-cpp.post.out 2016-10-25 02:40:46.455635309 +0100 @@ -6,54 +6,60 @@ KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ ### + | :::# ::: + | ::::: # : : + | :::: :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: 0 +----------------------------------------------------------------------->KB - 0 23.50 + 0 94.51 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 11 + Detailed snapshots: [6 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -->33.24% (4,000B) 0x........: main (new-cpp.cpp:19) + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. +->85.79% (72,704B) 0x........: ??? (in /usr/lib64/libstdc++.so.6.0.21) +| ->85.79% (72,704B) 0x........: call_init.part.0 (dl-init.c:72) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:30) +| ->85.79% (72,704B) 0x........: ??? (in /usr/lib64/ld-2.22.so) +| +->04.72% (4,000B) 0x........: main (new-cpp.cpp:19) | -->33.24% (4,000B) 0x........: main (new-cpp.cpp:20) +->04.72% (4,000B) 0x........: main (new-cpp.cpp:20) | -->16.62% (2,000B) 0x........: main (new-cpp.cpp:21) +->02.36% (2,000B) 0x........: main (new-cpp.cpp:21) | -->16.62% (2,000B) 0x........: main (new-cpp.cpp:22) +->02.36% (2,000B) 0x........: main (new-cpp.cpp:22) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- - 6 16,040 8,024 8,000 24 0 - 7 20,048 4,016 4,000 16 0 - 8 22,056 2,008 2,000 8 0 - 9 24,064 0 0 0 0 + 7 88,752 80,736 80,704 32 0 + 8 92,760 76,728 76,704 24 0 + 9 94,768 74,720 74,704 16 0 + 10 96,776 72,712 72,704 8 0 ================================================= ./valgrind-old/massif/tests/overloaded-new.post.diff ================================================= --- overloaded-new.post.exp 2016-10-25 02:30:27.874010727 +0100 +++ overloaded-new.post.out 2016-10-25 02:40:47.320619383 +0100 @@ -6,54 +6,60 @@ KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ ### + | :::# ::: + | ::::: # : : + | :::: :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: 0 +----------------------------------------------------------------------->KB - 0 23.50 + 0 94.51 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 11 + Detailed snapshots: [6 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -->33.24% (4,000B) 0x........: main (overloaded-new.cpp:49) + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. +->85.79% (72,704B) 0x........: ??? (in /usr/lib64/libstdc++.so.6.0.21) +| ->85.79% (72,704B) 0x........: call_init.part.0 (dl-init.c:72) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:30) +| ->85.79% (72,704B) 0x........: ??? (in /usr/lib64/ld-2.22.so) +| +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:49) | -->33.24% (4,000B) 0x........: main (overloaded-new.cpp:50) +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:50) | -->16.62% (2,000B) 0x........: main (overloaded-new.cpp:51) +->02.36% (2,000B) 0x........: main (overloaded-new.cpp:51) | -->16.62% (2,000B) 0x........: main (overloaded-new.cpp:52) +->02.36% (2,000B) 0x........: main (overloaded-new.cpp:52) -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- - 6 16,040 8,024 8,000 24 0 - 7 20,048 4,016 4,000 16 0 - 8 22,056 2,008 2,000 8 0 - 9 24,064 0 0 0 0 + 7 88,752 80,736 80,704 32 0 + 8 92,760 76,728 76,704 24 0 + 9 94,768 74,720 74,704 16 0 + 10 96,776 72,712 72,704 8 0 ================================================= ./valgrind-old/massif/tests/overloaded-new.post.diff-mips32 ================================================= --- overloaded-new.post.exp-mips32 2016-10-25 02:30:27.883010561 +0100 +++ overloaded-new.post.out 2016-10-25 02:40:47.320619383 +0100 @@ -1,63 +1,65 @@ -------------------------------------------------------------------------------- Command: ./overloaded-new -Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element +Massif arguments: --stacks=no --time-unit=B --massif-out-file=massif.out --ignore-fn=__part_load_locale --ignore-fn=__time_load_locale --ignore-fn=dwarf2_unwind_dyld_add_image_hook --ignore-fn=get_or_create_key_element --ignore-fn=_GLOBAL__sub_I_eh_alloc.cc ms_print arguments: massif.out -------------------------------------------------------------------------------- KB -11.75^ ########### - | # - | # - | # - | :::::::# - | : # - | : # - | ::::::: # :::::::::::: - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | : : # : - | ::::::::::::: : # : :::::: - | : : : # : : - | : : : # : : - | : : : # : : :::::: - | : : : # : : : - | : : : # : : : +82.76^ ### + | :::# ::: + | ::::: # : : + | :::: :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: + | : : :: # : ::: 0 +----------------------------------------------------------------------->KB - 0 23.50 + 0 94.51 -Number of snapshots: 10 - Detailed snapshots: [5 (peak)] +Number of snapshots: 11 + Detailed snapshots: [6 (peak)] -------------------------------------------------------------------------------- n time(B) total(B) useful-heap(B) extra-heap(B) stacks(B) -------------------------------------------------------------------------------- 0 0 0 0 0 0 - 1 4,008 4,008 4,000 8 0 - 2 8,016 8,016 8,000 16 0 - 3 10,024 10,024 10,000 24 0 - 4 12,032 12,032 12,000 32 0 - 5 12,032 12,032 12,000 32 0 -99.73% (12,000B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. -->33.24% (4,000B) 0x........: operator new(unsigned int) (overloaded-new.cpp:19) -| ->33.24% (4,000B) 0x........: main (overloaded-new.cpp:49) -| -->33.24% (4,000B) 0x........: operator new(unsigned int, std::nothrow_t const&) (overloaded-new.cpp:24) -| ->33.24% (4,000B) 0x........: main (overloaded-new.cpp:50) -| -->16.62% (2,000B) 0x........: operator new[](unsigned int) (overloaded-new.cpp:29) -| ->16.62% (2,000B) 0x........: main (overloaded-new.cpp:51) -| -->16.62% (2,000B) 0x........: operator new[](unsigned int, std::nothrow_t const&) (overloaded-new.cpp:34) - ->16.62% (2,000B) 0x........: main (overloaded-new.cpp:52) - + 1 72,712 72,712 72,704 8 0 + 2 76,720 76,720 76,704 16 0 + 3 80,728 80,728 80,704 24 0 + 4 82,736 82,736 82,704 32 0 + 5 84,744 84,744 84,704 40 0 + 6 84,744 84,744 84,704 40 0 +99.95% (84,704B) (heap allocation functions) malloc/new/new[], --alloc-fns, etc. +->85.79% (72,704B) 0x........: ??? (in /usr/lib64/libstdc++.so.6.0.21) +| ->85.79% (72,704B) 0x........: call_init.part.0 (dl-init.c:72) +| ->85.79% (72,704B) 0x........: _dl_init (dl-init.c:30) +| ->85.79% (72,704B) 0x........: ??? (in /usr/lib64/ld-2.22.so) +| +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:49) +| +->04.72% (4,000B) 0x........: main (overloaded-new.cpp:50) +| +->02.36% (2,000B) 0x........: main (overloaded-new.cpp:51) ================================================= ./valgrind-old/memcheck/tests/leak_cpp_interior.stderr.diff ================================================= --- leak_cpp_interior.stderr.exp 2016-10-25 02:30:27.423019040 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:38:21.891297064 +0100 @@ -1,118 +1,112 @@ valgrind output will go to log VALGRIND_DO_LEAK_CHECK -4 bytes in 1 blocks are definitely lost in loss record ... of ... +8 bytes in 1 blocks are definitely lost in loss record ... of ... by 0x........: doit() (leak_cpp_interior.cpp:115) by 0x........: main (leak_cpp_interior.cpp:130) LEAK SUMMARY: - definitely lost: 4 bytes in 1 blocks + definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 163 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 56 bytes in 2 blocks length64 : 31 bytes in 1 blocks - newarray : 28 bytes in 1 blocks - multipleinheritance: 24 bytes in 2 blocks + newarray : 32 bytes in 1 blocks + multipleinheritance: 48 bytes in 2 blocks suppressed: 0 bytes in 0 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-leak-kinds=all leak_check summary heuristics multipleinheritance LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 115 (+115) bytes in 4 (+4) blocks - still reachable: 48 (-115) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-56) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks - multipleinheritance: 24 (+0) bytes in 2 (+0) blocks + newarray : 0 (-32) bytes in 0 (-1) blocks + multipleinheritance: 48 (+0) bytes in 2 (+0) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary any heuristics newarray LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 111 (-4) bytes in 5 (+1) blocks - still reachable: 52 (+4) bytes in 3 (-1) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: - newarray : 28 (+28) bytes in 1 (+1) blocks - multipleinheritance: 0 (-24) bytes in 0 (-2) blocks + newarray : 63 (+63) bytes in 2 (+2) blocks + multipleinheritance: 0 (-48) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 108 (-3) bytes in 5 (+0) blocks - still reachable: 55 (+3) bytes in 3 (+0) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks + newarray : 0 (-63) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics stdstring LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 83 (-25) bytes in 4 (-1) blocks - still reachable: 80 (+25) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 56 (+56) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics multipleinheritance,newarray,stdstring,length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks ================================================= ./valgrind-old/memcheck/tests/leak_cpp_interior.stderr.diff-64bit ================================================= --- leak_cpp_interior.stderr.exp-64bit 2016-10-25 02:30:27.352020349 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:38:21.891297064 +0100 @@ -9,9 +9,8 @@ definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 239 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 80 bytes in 2 blocks length64 : 31 bytes in 1 blocks newarray : 32 bytes in 1 blocks multipleinheritance: 48 bytes in 2 blocks @@ -23,10 +22,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 143 (+143) bytes in 4 (+4) blocks - still reachable: 96 (-143) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-80) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -37,8 +35,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 128 (-15) bytes in 4 (+0) blocks - still reachable: 111 (+15) bytes in 4 (+0) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: newarray : 63 (+63) bytes in 2 (+2) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -49,8 +47,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 160 (+32) bytes in 5 (+1) blocks - still reachable: 79 (-32) bytes in 3 (-1) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 0 (-63) bytes in 0 (-2) blocks @@ -61,10 +59,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 111 (-49) bytes in 4 (-1) blocks - still reachable: 128 (+49) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 80 (+80) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check @@ -74,9 +71,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (-111) bytes in 0 (-4) blocks - still reachable: 239 (+111) bytes in 8 (+4) blocks + still reachable: 72,894 (+111) bytes in 8 (+4) blocks of which reachable via heuristic: - stdstring : 80 (+0) bytes in 2 (+0) blocks length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 32 (+32) bytes in 1 (+1) blocks multipleinheritance: 48 (+48) bytes in 2 (+2) blocks @@ -88,9 +84,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (+0) bytes in 0 (+0) blocks - still reachable: 239 (+0) bytes in 8 (+0) blocks + still reachable: 72,894 (+0) bytes in 8 (+0) blocks of which reachable via heuristic: - stdstring : 80 (+0) bytes in 2 (+0) blocks length64 : 31 (+0) bytes in 1 (+0) blocks newarray : 32 (+0) bytes in 1 (+0) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -101,10 +96,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 191 (+191) bytes in 6 (+6) blocks - still reachable: 48 (-191) bytes in 2 (-6) blocks + possibly lost: 111 (+111) bytes in 4 (+4) blocks + still reachable: 72,783 (-111) bytes in 4 (-4) blocks of which reachable via heuristic: - stdstring : 0 (-80) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -133,10 +127,16 @@ Finished! HEAP SUMMARY: ================================================= ./valgrind-old/memcheck/tests/leak_cpp_interior.stderr.diff-64bit-solaris ================================================= --- leak_cpp_interior.stderr.exp-64bit-solaris 2016-10-25 02:30:27.227022653 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:38:21.891297064 +0100 @@ -9,9 +9,8 @@ definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 273 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 114 bytes in 2 blocks length64 : 31 bytes in 1 blocks newarray : 32 bytes in 1 blocks multipleinheritance: 48 bytes in 2 blocks @@ -23,10 +22,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 177 (+177) bytes in 4 (+4) blocks - still reachable: 96 (-177) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-114) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -37,8 +35,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 162 (-15) bytes in 4 (+0) blocks - still reachable: 111 (+15) bytes in 4 (+0) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: newarray : 63 (+63) bytes in 2 (+2) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -49,8 +47,8 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 194 (+32) bytes in 5 (+1) blocks - still reachable: 79 (-32) bytes in 3 (-1) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 0 (-63) bytes in 0 (-2) blocks @@ -61,10 +59,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 111 (-83) bytes in 4 (-1) blocks - still reachable: 162 (+83) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 114 (+114) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check @@ -74,9 +71,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (-111) bytes in 0 (-4) blocks - still reachable: 273 (+111) bytes in 8 (+4) blocks + still reachable: 72,894 (+111) bytes in 8 (+4) blocks of which reachable via heuristic: - stdstring : 114 (+0) bytes in 2 (+0) blocks length64 : 31 (+31) bytes in 1 (+1) blocks newarray : 32 (+32) bytes in 1 (+1) blocks multipleinheritance: 48 (+48) bytes in 2 (+2) blocks @@ -88,9 +84,8 @@ definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks possibly lost: 0 (+0) bytes in 0 (+0) blocks - still reachable: 273 (+0) bytes in 8 (+0) blocks + still reachable: 72,894 (+0) bytes in 8 (+0) blocks of which reachable via heuristic: - stdstring : 114 (+0) bytes in 2 (+0) blocks length64 : 31 (+0) bytes in 1 (+0) blocks newarray : 32 (+0) bytes in 1 (+0) blocks multipleinheritance: 48 (+0) bytes in 2 (+0) blocks @@ -101,10 +96,9 @@ LEAK SUMMARY: definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 225 (+225) bytes in 6 (+6) blocks - still reachable: 48 (-225) bytes in 2 (-6) blocks + possibly lost: 111 (+111) bytes in 4 (+4) blocks + still reachable: 72,783 (-111) bytes in 4 (-4) blocks of which reachable via heuristic: - stdstring : 0 (-114) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks newarray : 0 (-32) bytes in 0 (-1) blocks multipleinheritance: 0 (-48) bytes in 0 (-2) blocks @@ -133,10 +127,16 @@ Finished! HEAP SUMMARY: ================================================= ./valgrind-old/memcheck/tests/leak_cpp_interior.stderr.diff-solaris ================================================= --- leak_cpp_interior.stderr.exp-solaris 2016-10-25 02:30:27.701013916 +0100 +++ leak_cpp_interior.stderr.out 2016-10-25 02:38:21.891297064 +0100 @@ -1,118 +1,112 @@ valgrind output will go to log VALGRIND_DO_LEAK_CHECK -4 bytes in 1 blocks are definitely lost in loss record ... of ... +8 bytes in 1 blocks are definitely lost in loss record ... of ... by 0x........: doit() (leak_cpp_interior.cpp:115) by 0x........: main (leak_cpp_interior.cpp:130) LEAK SUMMARY: - definitely lost: 4 bytes in 1 blocks + definitely lost: 8 bytes in 1 blocks indirectly lost: 0 bytes in 0 blocks possibly lost: 0 bytes in 0 blocks - still reachable: 197 bytes in 8 blocks + still reachable: 72,894 bytes in 8 blocks of which reachable via heuristic: - stdstring : 90 bytes in 2 blocks length64 : 31 bytes in 1 blocks - newarray : 28 bytes in 1 blocks - multipleinheritance: 24 bytes in 2 blocks + newarray : 32 bytes in 1 blocks + multipleinheritance: 48 bytes in 2 blocks suppressed: 0 bytes in 0 blocks Reachable blocks (those to which a pointer was found) are not shown. To see them, rerun with: --leak-check=full --show-leak-kinds=all leak_check summary heuristics multipleinheritance LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 149 (+149) bytes in 4 (+4) blocks - still reachable: 48 (-149) bytes in 4 (-4) blocks + possibly lost: 63 (+63) bytes in 2 (+2) blocks + still reachable: 72,831 (-63) bytes in 6 (-2) blocks of which reachable via heuristic: - stdstring : 0 (-90) bytes in 0 (-2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks - multipleinheritance: 24 (+0) bytes in 2 (+0) blocks + newarray : 0 (-32) bytes in 0 (-1) blocks + multipleinheritance: 48 (+0) bytes in 2 (+0) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary any heuristics newarray LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 145 (-4) bytes in 5 (+1) blocks - still reachable: 52 (+4) bytes in 3 (-1) blocks + possibly lost: 48 (-15) bytes in 2 (+0) blocks + still reachable: 72,846 (+15) bytes in 6 (+0) blocks of which reachable via heuristic: - newarray : 28 (+28) bytes in 1 (+1) blocks - multipleinheritance: 0 (-24) bytes in 0 (-2) blocks + newarray : 63 (+63) bytes in 2 (+2) blocks + multipleinheritance: 0 (-48) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 142 (-3) bytes in 5 (+0) blocks - still reachable: 55 (+3) bytes in 3 (+0) blocks + possibly lost: 80 (+32) bytes in 3 (+1) blocks + still reachable: 72,814 (-32) bytes in 5 (-1) blocks of which reachable via heuristic: length64 : 31 (+31) bytes in 1 (+1) blocks - newarray : 0 (-28) bytes in 0 (-1) blocks + newarray : 0 (-63) bytes in 0 (-2) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics stdstring LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks indirectly lost: 0 (+0) bytes in 0 (+0) blocks - possibly lost: 83 (-59) bytes in 4 (-1) blocks - still reachable: 114 (+59) bytes in 4 (+1) blocks + possibly lost: 111 (+31) bytes in 4 (+1) blocks + still reachable: 72,783 (-31) bytes in 4 (-1) blocks of which reachable via heuristic: - stdstring : 90 (+90) bytes in 2 (+2) blocks length64 : 0 (-31) bytes in 0 (-1) blocks suppressed: 0 (+0) bytes in 0 (+0) blocks To see details of leaked memory, give 'full' arg to leak_check leak_check summary heuristics multipleinheritance,newarray,stdstring,length64 LEAK SUMMARY: - definitely lost: 4 (+0) bytes in 1 (+0) blocks + definitely lost: 8 (+0) bytes in 1 (+0) blocks