================================================= ./valgrind-new/drd/tests/bar_bad_xml.stderr.diff ================================================= --- bar_bad_xml.stderr.exp 2016-09-23 03:05:59.483656993 +0100 +++ bar_bad_xml.stderr.out 2016-09-23 03:17:45.500589085 +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-24687/2016-09-23/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 23622) + + + 0x........ + ... + pthread_barrier_destroy + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + main + ... + bar_bad.c + ... + + + +Thread 2: status = VgTs_WaitSys (lwpid 23623) + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 23624) + + + 0x........ + ... + vgDrd_thread_wrapper ================================================= ./valgrind-new/drd/tests/bar_bad_xml.stderr.diff-nohang ================================================= --- bar_bad_xml.stderr.exp-nohang 2016-09-23 03:05:59.441657771 +0100 +++ bar_bad_xml.stderr.out 2016-09-23 03:17:45.500589085 +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-24687/2016-09-23/valgrind-new/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 23622) 0x........ @@ -227,38 +247,109 @@ ... - + +Thread 2: status = VgTs_WaitSys (lwpid 23623) + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 3: status = VgTs_WaitSys (lwpid 23624) + + + 0x........ + ... + vgDrd_thread_wrapper + ... + drd_pthread_intercepts.c + ... + + + +Thread 4: status = VgTs_Runnable (lwpid 23627) + + + 0x........ + ... + pthread_barrier_wait + ... + drd_pthread_intercepts.c + ... + + + 0x........ + ... + sleep1 + ... + bar_bad.c + ... + + + 0x........ + ... + vgDrd_thread_wrapper + ... ================================================= ./valgrind-new/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2016-09-23 03:05:55.112737899 +0100 +++ hgtls.stdoutB.out 2016-09-23 03:09:21.833911485 +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/drd/tests/bar_bad.stderr.diff ================================================= --- bar_bad.stderr.exp 2016-09-23 02:50:37.172735970 +0100 +++ bar_bad.stderr.out 2016-09-23 03:02:13.672836757 +0100 @@ -35,4 +35,76 @@ 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-24687/2016-09-23/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 8443) + 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 8446) + at 0x........: ??? (syscall-template.S:81) + by 0x........: sleep (sleep.c:?) + by 0x........: sleep1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + +Thread 3: status = VgTs_WaitSys (lwpid 8447) + 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 8500) + 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 8501) + 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 8535) + 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-old/drd/tests/bar_bad.stderr.diff-nohang ================================================= --- bar_bad.stderr.exp-nohang 2016-09-23 02:50:37.130736748 +0100 +++ bar_bad.stderr.out 2016-09-23 03:02:13.672836757 +0100 @@ -34,9 +34,77 @@ 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-24687/2016-09-23/valgrind-old/drd/drd-amd64-linux) + by 0x........: ??? + by 0x........: ??? + by 0x........: ??? + +sched status: + running_tid=4 + +Thread 1: status = VgTs_Yielding (lwpid 8443) + 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 8446) + at 0x........: ??? (syscall-template.S:81) + by 0x........: sleep (sleep.c:?) + by 0x........: sleep1 (bar_bad.c:?) + by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?) + by 0x........: (within libpthread-?.?.so) + +Thread 3: status = VgTs_WaitSys (lwpid 8447) + 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 8500) + 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 8501) + 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 8535) + 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-old/gdbserver_tests/hgtls.stdoutB.diff ================================================= --- hgtls.stdoutB.exp 2016-09-23 02:50:32.780817317 +0100 +++ hgtls.stdoutB.out 2016-09-23 02:54:02.919925126 +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