================================================= ./valgrind-new/drd/tests/bar_bad.stderr.diff ================================================= --- bar_bad.stderr.exp 2016-10-25 03:06:12.380444261 +0100 +++ bar_bad.stderr.out 2016-10-25 03:17:41.162052532 +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-16156/2016-10-25/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 18961) + at 0x........: __lll_lock_wait (lowlevellock.S:135) + 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 18962) + 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 18963) + 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 18965) + 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 18966) + 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 18967) + at 0x........: ??? (syscall-template.S:81) + 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-new/drd/tests/bar_bad.stderr.diff-nohang ================================================= --- bar_bad.stderr.exp-nohang 2016-10-25 03:06:12.337445005 +0100 +++ bar_bad.stderr.out 2016-10-25 03:17:41.162052532 +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-16156/2016-10-25/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 18961) + at 0x........: __lll_lock_wait (lowlevellock.S:135) + 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 18962) + 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 18963) + 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 18965) + 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 18966) + 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 18967) + at 0x........: ??? (syscall-template.S:81) + 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-new/drd/tests/bar_bad.stderr.diff-solaris ================================================= --- bar_bad.stderr.exp-solaris 2016-10-25 03:06:12.385444175 +0100 +++ bar_bad.stderr.out 2016-10-25 03:17:41.162052532 +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-16156/2016-10-25/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 18961) + at 0x........: __lll_lock_wait (lowlevellock.S:135) + 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 18962) + 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 18963) + 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 18965) + 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 18966) + 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 18967) + at 0x........: ??? (syscall-template.S:81) + 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-new/drd/tests/bar_bad_xml.stderr.diff ================================================= --- bar_bad_xml.stderr.exp 2016-10-25 03:06:12.393444036 +0100 +++ bar_bad_xml.stderr.out 2016-10-25 03:17:53.507825383 +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-16156/2016-10-25/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 19641) + + + 0x........ + ... + pthread_barrier_destroy + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + main + ... + bar_bad.c + ... + + + +Thread 2: status = VgTs_WaitSys (lwpid 20321) + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 20349) + + + 0x........ + ... + vgDrd_thread_wrapper ================================================= ./valgrind-new/drd/tests/bar_bad_xml.stderr.diff-nohang ================================================= --- bar_bad_xml.stderr.exp-nohang 2016-10-25 03:06:12.350444780 +0100 +++ bar_bad_xml.stderr.out 2016-10-25 03:17:53.507825383 +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-16156/2016-10-25/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 19641) 0x........ @@ -227,38 +247,109 @@ ... - + +Thread 2: status = VgTs_WaitSys (lwpid 20321) + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 20349) + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 4: status = VgTs_Runnable (lwpid 22695) + + + 0x........ + ... + pthread_barrier_wait + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... ================================================= ./valgrind-new/drd/tests/bar_bad_xml.stderr.diff-solaris ================================================= --- bar_bad_xml.stderr.exp-solaris 2016-10-25 03:06:12.398443950 +0100 +++ bar_bad_xml.stderr.out 2016-10-25 03:17:53.507825383 +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-16156/2016-10-25/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 19641) 0x........ @@ -227,89 +247,109 @@ ... - - - 0x........ - ... - BarrierErr - Destruction of barrier that is being waited upon: barrier 0x........ +Thread 2: status = VgTs_WaitSys (lwpid 20321) 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 20349) + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 4: status = VgTs_Runnable (lwpid 22695) + + + 0x........ + ... + pthread_barrier_wait + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + sleep1 ... ================================================= ./valgrind-new/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2016-10-25 03:06:07.642526192 +0100 +++ hgtls.stdoutB.out 2016-10-25 03:09:30.423036357 +0100 @@ -26,10 +26,10 @@ test static_extern tls_ip 0x........ ip 0x........ equal 1 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/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2016-10-25 02:50:25.779800432 +0100 +++ hgtls.stdoutB.out 2016-10-25 02:53:54.945808515 +0100 @@ -26,10 +26,10 @@ test static_extern tls_ip 0x........ ip 0x........ equal 1 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/helgrind/tests/bar_bad.stderr.diff ================================================= --- bar_bad.stderr.exp 2016-10-25 02:50:28.206748722 +0100 +++ bar_bad.stderr.out 2016-10-25 02:59:32.128634325 +0100 @@ -62,3 +62,18 @@ at 0x........: pthread_barrier_destroy (hg_intercepts.c:...) by 0x........: main (bar_bad.c:96) +---Thread-Announcement------------------------------------------ + +Thread #x was created + ... + by 0x........: pthread_create@* (hg_intercepts.c:...) + by 0x........: main (bar_bad.c:76) + +---------------------------------------------------------------- + +Thread #x: pthread_barrier_wait: barrier is uninitialised + at 0x........: pthread_barrier_wait (hg_intercepts.c:...) + by 0x........: sleep1 (bar_bad.c:22) + by 0x........: mythread_wrapper (hg_intercepts.c:...) + ... + ================================================= ./valgrind-old/helgrind/tests/bar_bad.stderr.diff-destroy-hang ================================================= --- bar_bad.stderr.exp-destroy-hang 2016-10-25 02:50:28.195748957 +0100 +++ bar_bad.stderr.out 2016-10-25 02:59:32.128634325 +0100 @@ -47,6 +47,21 @@ at 0x........: pthread_barrier_destroy (hg_intercepts.c:...) by 0x........: main (bar_bad.c:82) +---------------------------------------------------------------- + +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) + + +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:96) + ---Thread-Announcement------------------------------------------ Thread #x was created @@ -62,11 +77,3 @@ by 0x........: mythread_wrapper (hg_intercepts.c:...) ... - -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:96) -