|
From: Rich C. <rc...@wi...> - 2012-12-07 06:06:40
|
valgrind revision: 13168
VEX revision: 2583
C compiler: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Assembler:
C library: unknown
uname -mrs: Darwin 10.8.0 i386
Vendor version: unknown
Nightly build on macx86 ( Darwin 10.8.0 i386 )
Started at 2012-12-06 23:35:00 CST
Ended at 2012-12-07 00:06:08 CST
Results differ from 24 hours ago
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... failed
Last 20 lines of verbose log follow echo
gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../coregrind -I../../include -I../../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -DVGPV_x86_darwin_vanilla=1 -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -MT stpncpy.o -MD -MP -MF .deps/stpncpy.Tpo -c -o stpncpy.o stpncpy.c
stpncpy.c: In function 'main':
stpncpy.c:18: warning: implicit declaration of function 'stpncpy'
stpncpy.c:18: warning: incompatible implicit declaration of built-in function 'stpncpy'
stpncpy.c:21: warning: format '%zd' expects type 'signed size_t', but argument 3 has type 'int'
stpncpy.c:31: warning: format '%zd' expects type 'signed size_t', but argument 3 has type 'int'
mv -f .deps/stpncpy.Tpo .deps/stpncpy.Po
gcc -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -o stpncpy stpncpy.o
Undefined symbols:
"_stpncpy", referenced from:
_main in stpncpy.o
_main in stpncpy.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[5]: *** [stpncpy] Error 1
make[4]: *** [check-am] Error 2
make[3]: *** [check-recursive] Error 1
make[2]: *** [check-recursive] Error 1
make[1]: *** [check-recursive] Error 1
make: *** [check] Error 2
=================================================
== Results from 24 hours ago ==
=================================================
Checking out valgrind source tree ... done
Configuring valgrind ... done
Building valgrind ... done
Running regression tests ... failed
Regression test results follow
== 501 tests, 147 stderr failures, 4 stdout failures, 3 stderrB failures, 3 stdoutB failures, 1 post failure ==
gdbserver_tests/mchelp (stdoutB)
gdbserver_tests/mchelp (stderrB)
gdbserver_tests/mcinvokeRU (stdoutB)
gdbserver_tests/mcinvokeRU (stderrB)
gdbserver_tests/mcinvokeWS (stdoutB)
gdbserver_tests/mcinvokeWS (stderrB)
memcheck/tests/accounting (stderr)
memcheck/tests/badpoll (stderr)
memcheck/tests/big_blocks_freed_list (stderr)
memcheck/tests/bug287260 (stderr)
memcheck/tests/darwin/aio (stderr)
memcheck/tests/darwin/pth-supp (stderr)
memcheck/tests/darwin/scalar (stderr)
memcheck/tests/deep-backtrace (stderr)
memcheck/tests/err_disable4 (stderr)
memcheck/tests/leak-delta (stderr)
memcheck/tests/leak-segv-jmp (stderr)
memcheck/tests/memcmptest (stderr)
memcheck/tests/mismatches (stderr)
memcheck/tests/null_socket (stdout)
memcheck/tests/origin5-bz2 (stderr)
memcheck/tests/overlap (stdout)
memcheck/tests/overlap (stderr)
memcheck/tests/sem (stderr)
memcheck/tests/strchr (stderr)
memcheck/tests/test-plo-no (stderr)
memcheck/tests/varinfo3 (stderr)
memcheck/tests/varinfo5 (stderr)
memcheck/tests/vbit-test/vbit-test (stderr)
memcheck/tests/vcpu_fnfns (stdout)
memcheck/tests/writev1 (stderr)
massif/tests/big-alloc (post)
massif/tests/pages_as_heap (stderr)
none/tests/allexec32 (stderr)
none/tests/allexec64 (stderr)
none/tests/async-sigs (stderr)
none/tests/cmdline5 (stderr)
none/tests/execve (stderr)
none/tests/faultstatus (stderr)
none/tests/mmap_fcntl_bug (stderr)
none/tests/nodir (stderr)
none/tests/pth_blockedsig (stderr)
none/tests/require-text-symbol-2 (stderr)
none/tests/rlimit64_nofile (stderr)
none/tests/shell_nosuchfile (stderr)
none/tests/x86/cse_fail (stdout)
helgrind/tests/annotate_hbefore (stderr)
helgrind/tests/annotate_rwlock (stderr)
helgrind/tests/annotate_smart_pointer (stderr)
helgrind/tests/cond_timedwait_invalid (stderr)
helgrind/tests/free_is_write (stderr)
helgrind/tests/hg01_all_ok (stderr)
helgrind/tests/hg02_deadlock (stderr)
helgrind/tests/hg03_inherit (stderr)
helgrind/tests/hg04_race (stderr)
helgrind/tests/hg05_race2 (stderr)
helgrind/tests/hg06_readshared (stderr)
helgrind/tests/locked_vs_unlocked1_fwd (stderr)
helgrind/tests/locked_vs_unlocked1_rev (stderr)
helgrind/tests/locked_vs_unlocked2 (stderr)
helgrind/tests/locked_vs_unlocked3 (stderr)
helgrind/tests/pth_destroy_cond (stderr)
helgrind/tests/rwlock_race (stderr)
helgrind/tests/rwlock_test (stderr)
helgrind/tests/t2t_laog (stderr)
helgrind/tests/tc01_simple_race (stderr)
helgrind/tests/tc02_simple_tls (stderr)
helgrind/tests/tc03_re_excl (stderr)
helgrind/tests/tc04_free_lock (stderr)
helgrind/tests/tc05_simple_race (stderr)
helgrind/tests/tc06_two_races (stderr)
helgrind/tests/tc06_two_races_xml (stderr)
helgrind/tests/tc07_hbl1 (stderr)
helgrind/tests/tc08_hbl2 (stderr)
helgrind/tests/tc09_bad_unlock (stderr)
helgrind/tests/tc10_rec_lock (stderr)
helgrind/tests/tc11_XCHG (stderr)
helgrind/tests/tc12_rwl_trivial (stderr)
helgrind/tests/tc13_laog1 (stderr)
helgrind/tests/tc14_laog_dinphils (stderr)
helgrind/tests/tc15_laog_lockdel (stderr)
helgrind/tests/tc16_byterace (stderr)
helgrind/tests/tc17_sembar (stderr)
helgrind/tests/tc18_semabuse (stderr)
helgrind/tests/tc19_shadowmem (stderr)
helgrind/tests/tc21_pthonce (stderr)
helgrind/tests/tc23_bogus_condwait (stderr)
helgrind/tests/tc24_nonzero_sem (stderr)
drd/tests/annotate_barrier (stderr)
drd/tests/annotate_barrier_xml (stderr)
drd/tests/annotate_hb_race (stderr)
drd/tests/annotate_hbefore (stderr)
drd/tests/annotate_ignore_read (stderr)
drd/tests/annotate_ignore_rw (stderr)
drd/tests/annotate_ignore_rw2 (stderr)
drd/tests/annotate_ignore_write (stderr)
drd/tests/annotate_ignore_write2 (stderr)
drd/tests/annotate_order_1 (stderr)
drd/tests/annotate_order_2 (stderr)
drd/tests/annotate_order_3 (stderr)
drd/tests/annotate_rwlock (stderr)
drd/tests/annotate_smart_pointer (stderr)
drd/tests/annotate_smart_pointer2 (stderr)
drd/tests/annotate_spinlock (stderr)
drd/tests/annotate_static (stderr)
drd/tests/atomic_var (stderr)
drd/tests/bug-235681 (stderr)
drd/tests/circular_buffer (stderr)
drd/tests/fp_race (stderr)
drd/tests/fp_race2 (stderr)
drd/tests/fp_race_xml (stderr)
drd/tests/free_is_write (stderr)
drd/tests/free_is_write2 (stderr)
drd/tests/hg01_all_ok (stderr)
drd/tests/hg02_deadlock (stderr)
drd/tests/hg03_inherit (stderr)
drd/tests/hg04_race (stderr)
drd/tests/hg05_race2 (stderr)
drd/tests/hg06_readshared (stderr)
drd/tests/linuxthreads_det (stderr)
drd/tests/monitor_example (stderr)
drd/tests/pth_broadcast (stderr)
drd/tests/pth_cleanup_handler (stderr)
drd/tests/pth_cond_race (stderr)
drd/tests/pth_cond_race2 (stderr)
drd/tests/pth_cond_race3 (stderr)
drd/tests/pth_create_chain (stderr)
drd/tests/pth_detached3 (stderr)
drd/tests/pth_inconsistent_cond_wait (stderr)
drd/tests/pth_once (stderr)
drd/tests/read_and_free_race (stderr)
drd/tests/rwlock_race (stderr)
drd/tests/rwlock_test (stderr)
drd/tests/sem_open (stderr)
drd/tests/sem_open2 (stderr)
drd/tests/sem_open3 (stderr)
drd/tests/sem_open_traced (stderr)
drd/tests/sem_wait (stderr)
drd/tests/sigalrm (stderr)
drd/tests/tc01_simple_race (stderr)
drd/tests/tc02_simple_tls (stderr)
drd/tests/tc03_re_excl (stderr)
drd/tests/tc05_simple_race (stderr)
drd/tests/tc06_two_races (stderr)
drd/tests/tc07_hbl1 (stderr)
drd/tests/tc08_hbl2 (stderr)
drd/tests/tc09_bad_unlock (stderr)
drd/tests/tc11_XCHG (stderr)
drd/tests/tc16_byterace (stderr)
drd/tests/tc17_sembar (stderr)
drd/tests/tc19_shadowmem (stderr)
drd/tests/tc21_pthonce (stderr)
drd/tests/tc23_bogus_condwait (stderr)
drd/tests/thread_name (stderr)
drd/tests/thread_name_xml (stderr)
drd/tests/threaded-fork (stderr)
drd/tests/unit_bitmap (stderr)
drd/tests/unit_vc (stderr)
=================================================
== Difference between 24 hours ago and now ==
=================================================
*** old.short Thu Dec 6 23:58:33 2012
--- new.short Fri Dec 7 00:06:08 2012
***************
*** 3,168 ****
Configuring valgrind ... done
! Building valgrind ... done
! Running regression tests ... failed
!
! Regression test results follow
!
! == 501 tests, 147 stderr failures, 4 stdout failures, 3 stderrB failures, 3 stdoutB failures, 1 post failure ==
! gdbserver_tests/mchelp (stdoutB)
! gdbserver_tests/mchelp (stderrB)
! gdbserver_tests/mcinvokeRU (stdoutB)
! gdbserver_tests/mcinvokeRU (stderrB)
! gdbserver_tests/mcinvokeWS (stdoutB)
! gdbserver_tests/mcinvokeWS (stderrB)
! memcheck/tests/accounting (stderr)
! memcheck/tests/badpoll (stderr)
! memcheck/tests/big_blocks_freed_list (stderr)
! memcheck/tests/bug287260 (stderr)
! memcheck/tests/darwin/aio (stderr)
! memcheck/tests/darwin/pth-supp (stderr)
! memcheck/tests/darwin/scalar (stderr)
! memcheck/tests/deep-backtrace (stderr)
! memcheck/tests/err_disable4 (stderr)
! memcheck/tests/leak-delta (stderr)
! memcheck/tests/leak-segv-jmp (stderr)
! memcheck/tests/memcmptest (stderr)
! memcheck/tests/mismatches (stderr)
! memcheck/tests/null_socket (stdout)
! memcheck/tests/origin5-bz2 (stderr)
! memcheck/tests/overlap (stdout)
! memcheck/tests/overlap (stderr)
! memcheck/tests/sem (stderr)
! memcheck/tests/strchr (stderr)
! memcheck/tests/test-plo-no (stderr)
! memcheck/tests/varinfo3 (stderr)
! memcheck/tests/varinfo5 (stderr)
! memcheck/tests/vbit-test/vbit-test (stderr)
! memcheck/tests/vcpu_fnfns (stdout)
! memcheck/tests/writev1 (stderr)
! massif/tests/big-alloc (post)
! massif/tests/pages_as_heap (stderr)
! none/tests/allexec32 (stderr)
! none/tests/allexec64 (stderr)
! none/tests/async-sigs (stderr)
! none/tests/cmdline5 (stderr)
! none/tests/execve (stderr)
! none/tests/faultstatus (stderr)
! none/tests/mmap_fcntl_bug (stderr)
! none/tests/nodir (stderr)
! none/tests/pth_blockedsig (stderr)
! none/tests/require-text-symbol-2 (stderr)
! none/tests/rlimit64_nofile (stderr)
! none/tests/shell_nosuchfile (stderr)
! none/tests/x86/cse_fail (stdout)
! helgrind/tests/annotate_hbefore (stderr)
! helgrind/tests/annotate_rwlock (stderr)
! helgrind/tests/annotate_smart_pointer (stderr)
! helgrind/tests/cond_timedwait_invalid (stderr)
! helgrind/tests/free_is_write (stderr)
! helgrind/tests/hg01_all_ok (stderr)
! helgrind/tests/hg02_deadlock (stderr)
! helgrind/tests/hg03_inherit (stderr)
! helgrind/tests/hg04_race (stderr)
! helgrind/tests/hg05_race2 (stderr)
! helgrind/tests/hg06_readshared (stderr)
! helgrind/tests/locked_vs_unlocked1_fwd (stderr)
! helgrind/tests/locked_vs_unlocked1_rev (stderr)
! helgrind/tests/locked_vs_unlocked2 (stderr)
! helgrind/tests/locked_vs_unlocked3 (stderr)
! helgrind/tests/pth_destroy_cond (stderr)
! helgrind/tests/rwlock_race (stderr)
! helgrind/tests/rwlock_test (stderr)
! helgrind/tests/t2t_laog (stderr)
! helgrind/tests/tc01_simple_race (stderr)
! helgrind/tests/tc02_simple_tls (stderr)
! helgrind/tests/tc03_re_excl (stderr)
! helgrind/tests/tc04_free_lock (stderr)
! helgrind/tests/tc05_simple_race (stderr)
! helgrind/tests/tc06_two_races (stderr)
! helgrind/tests/tc06_two_races_xml (stderr)
! helgrind/tests/tc07_hbl1 (stderr)
! helgrind/tests/tc08_hbl2 (stderr)
! helgrind/tests/tc09_bad_unlock (stderr)
! helgrind/tests/tc10_rec_lock (stderr)
! helgrind/tests/tc11_XCHG (stderr)
! helgrind/tests/tc12_rwl_trivial (stderr)
! helgrind/tests/tc13_laog1 (stderr)
! helgrind/tests/tc14_laog_dinphils (stderr)
! helgrind/tests/tc15_laog_lockdel (stderr)
! helgrind/tests/tc16_byterace (stderr)
! helgrind/tests/tc17_sembar (stderr)
! helgrind/tests/tc18_semabuse (stderr)
! helgrind/tests/tc19_shadowmem (stderr)
! helgrind/tests/tc21_pthonce (stderr)
! helgrind/tests/tc23_bogus_condwait (stderr)
! helgrind/tests/tc24_nonzero_sem (stderr)
! drd/tests/annotate_barrier (stderr)
! drd/tests/annotate_barrier_xml (stderr)
! drd/tests/annotate_hb_race (stderr)
! drd/tests/annotate_hbefore (stderr)
! drd/tests/annotate_ignore_read (stderr)
! drd/tests/annotate_ignore_rw (stderr)
! drd/tests/annotate_ignore_rw2 (stderr)
! drd/tests/annotate_ignore_write (stderr)
! drd/tests/annotate_ignore_write2 (stderr)
! drd/tests/annotate_order_1 (stderr)
! drd/tests/annotate_order_2 (stderr)
! drd/tests/annotate_order_3 (stderr)
! drd/tests/annotate_rwlock (stderr)
! drd/tests/annotate_smart_pointer (stderr)
! drd/tests/annotate_smart_pointer2 (stderr)
! drd/tests/annotate_spinlock (stderr)
! drd/tests/annotate_static (stderr)
! drd/tests/atomic_var (stderr)
! drd/tests/bug-235681 (stderr)
! drd/tests/circular_buffer (stderr)
! drd/tests/fp_race (stderr)
! drd/tests/fp_race2 (stderr)
! drd/tests/fp_race_xml (stderr)
! drd/tests/free_is_write (stderr)
! drd/tests/free_is_write2 (stderr)
! drd/tests/hg01_all_ok (stderr)
! drd/tests/hg02_deadlock (stderr)
! drd/tests/hg03_inherit (stderr)
! drd/tests/hg04_race (stderr)
! drd/tests/hg05_race2 (stderr)
! drd/tests/hg06_readshared (stderr)
! drd/tests/linuxthreads_det (stderr)
! drd/tests/monitor_example (stderr)
! drd/tests/pth_broadcast (stderr)
! drd/tests/pth_cleanup_handler (stderr)
! drd/tests/pth_cond_race (stderr)
! drd/tests/pth_cond_race2 (stderr)
! drd/tests/pth_cond_race3 (stderr)
! drd/tests/pth_create_chain (stderr)
! drd/tests/pth_detached3 (stderr)
! drd/tests/pth_inconsistent_cond_wait (stderr)
! drd/tests/pth_once (stderr)
! drd/tests/read_and_free_race (stderr)
! drd/tests/rwlock_race (stderr)
! drd/tests/rwlock_test (stderr)
! drd/tests/sem_open (stderr)
! drd/tests/sem_open2 (stderr)
! drd/tests/sem_open3 (stderr)
! drd/tests/sem_open_traced (stderr)
! drd/tests/sem_wait (stderr)
! drd/tests/sigalrm (stderr)
! drd/tests/tc01_simple_race (stderr)
! drd/tests/tc02_simple_tls (stderr)
! drd/tests/tc03_re_excl (stderr)
! drd/tests/tc05_simple_race (stderr)
! drd/tests/tc06_two_races (stderr)
! drd/tests/tc07_hbl1 (stderr)
! drd/tests/tc08_hbl2 (stderr)
! drd/tests/tc09_bad_unlock (stderr)
! drd/tests/tc11_XCHG (stderr)
! drd/tests/tc16_byterace (stderr)
! drd/tests/tc17_sembar (stderr)
! drd/tests/tc19_shadowmem (stderr)
! drd/tests/tc21_pthonce (stderr)
! drd/tests/tc23_bogus_condwait (stderr)
! drd/tests/thread_name (stderr)
! drd/tests/thread_name_xml (stderr)
! drd/tests/threaded-fork (stderr)
! drd/tests/unit_bitmap (stderr)
! drd/tests/unit_vc (stderr)
--- 3,26 ----
Configuring valgrind ... done
! Building valgrind ... failed
+ Last 20 lines of verbose log follow echo
+ gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../coregrind -I../../include -I../../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -DVGPV_x86_darwin_vanilla=1 -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -MT stpncpy.o -MD -MP -MF .deps/stpncpy.Tpo -c -o stpncpy.o stpncpy.c
+ stpncpy.c: In function 'main':
+ stpncpy.c:18: warning: implicit declaration of function 'stpncpy'
+ stpncpy.c:18: warning: incompatible implicit declaration of built-in function 'stpncpy'
+ stpncpy.c:21: warning: format '%zd' expects type 'signed size_t', but argument 3 has type 'int'
+ stpncpy.c:31: warning: format '%zd' expects type 'signed size_t', but argument 3 has type 'int'
+ mv -f .deps/stpncpy.Tpo .deps/stpncpy.Po
+ gcc -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -o stpncpy stpncpy.o
+ Undefined symbols:
+ "_stpncpy", referenced from:
+ _main in stpncpy.o
+ _main in stpncpy.o
+ ld: symbol(s) not found
+ collect2: ld returned 1 exit status
+ make[5]: *** [stpncpy] Error 1
+ make[4]: *** [check-am] Error 2
+ make[3]: *** [check-recursive] Error 1
+ make[2]: *** [check-recursive] Error 1
+ make[1]: *** [check-recursive] Error 1
+ make: *** [check] Error 2
=================================================
./valgrind-old/drd/tests/annotate_barrier.stderr.diff
=================================================
--- annotate_barrier.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_barrier.stderr.out 2012-12-06 23:55:23.000000000 -0600
@@ -37,6 +37,123 @@
by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
Thread 1:
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Address 0x........ is at offset 8 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Address 0x........ is at offset 8 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
<truncated beyond 100 lines>
=================================================
./valgrind-old/drd/tests/annotate_barrier_xml.stderr.diff
=================================================
--- annotate_barrier_xml.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_barrier_xml.stderr.out 2012-12-06 23:55:24.000000000 -0600
@@ -188,7 +188,7 @@
<frame>
<ip>0x........</ip>
<obj>...</obj>
- <fn>start_thread</fn>
+ <fn>_pthread_start</fn>
</frame>
</stack>
<auxwhat>Address 0x........ is at offset 0 from 0x.........</auxwhat>
@@ -258,6 +258,549 @@
<error>
<unique>0x........</unique>
<tid>...</tid>
+ <kind>ConflictingAccess</kind>
+ <what>Conflicting load by thread 1 at 0x........ size 4</what>
+ <stack>
+ <frame>
+ <ip>0x........</ip>
+ </frame>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>pthread_join$UNIX2003</fn>
+ </frame>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>pthread_join$*</fn>
+ <dir>...</dir>
+ <file>drd_pthread_intercepts.c</file>
+ <line>...</line>
+ </frame>
+ </stack>
+ <auxwhat>Allocation context: Data section of /usr/lib/libSystem.B.dylib</auxwhat>
+</error>
+
+<error>
+ <unique>0x........</unique>
+ <tid>...</tid>
+ <kind>ConflictingAccess</kind>
+ <what>Conflicting load by thread 1 at 0x........ size 4</what>
+ <stack>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>new_sem_from_pool</fn>
+ </frame>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>pthread_join$UNIX2003</fn>
+ </frame>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>pthread_join$*</fn>
+ <dir>...</dir>
+ <file>drd_pthread_intercepts.c</file>
+ <line>...</line>
+ </frame>
+ </stack>
+ <auxwhat>Allocation context: Data section of /usr/lib/libSystem.B.dylib</auxwhat>
+</error>
+
+<error>
+ <unique>0x........</unique>
+ <tid>...</tid>
+ <kind>ConflictingAccess</kind>
+ <what>Conflicting load by thread 1 at 0x........ size 4</what>
+ <stack>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>new_sem_from_pool</fn>
+ </frame>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>pthread_join$UNIX2003</fn>
+ </frame>
+ <frame>
+ <ip>0x........</ip>
+ <obj>...</obj>
+ <fn>pthread_join$*</fn>
+ <dir>...</dir>
+ <file>drd_pthread_intercepts.c</file>
+ <line>...</line>
+ </frame>
+ </stack>
+ <auxwhat>Allocation context: Data section of /usr/lib/libSystem.B.dylib</auxwhat>
+</error>
+
+<error>
+ <unique>0x........</unique>
+ <tid>...</tid>
+ <kind>ConflictingAccess</kind>
+ <what>Conflicting load by thread 1 at 0x........ size 4</what>
+ <stack>
<truncated beyond 100 lines>
=================================================
./valgrind-old/drd/tests/annotate_hb_race.stderr.diff
=================================================
--- annotate_hb_race.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_hb_race.stderr.out 2012-12-06 23:55:26.000000000 -0600
@@ -3,6 +3,60 @@
at 0x........: main (annotate_hb_race.c:?)
Allocation context: BSS section of annotate_hb_race
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Address 0x........ is at offset 4 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: _pthread_exit (in /...libc...)
+ by 0x........: thread_start (in /...libc...)
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hb_race.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
Done.
-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_hbefore.stderr.diff
=================================================
--- annotate_hbefore.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_hbefore.stderr.out 2012-12-06 23:55:28.000000000 -0600
@@ -1,3 +1,44 @@
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hbefore.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hbefore.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hbefore.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hbefore.c:?)
+Address 0x........ is at offset 4 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hbefore.c:?)
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_hbefore.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+
+ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_ignore_read.stderr.diff
=================================================
--- annotate_ignore_read.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_ignore_read.stderr.out 2012-12-06 23:55:30.000000000 -0600
@@ -1,6 +1,159 @@
FLAGS [phb=1, fm=0]
test69: negative
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Address 0x........ is at offset 12 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: _pthread_exit (in /...libc...)
+ by 0x........: thread_start (in /...libc...)
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test69::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
<truncated beyond 100 lines>
=================================================
./valgrind-old/drd/tests/annotate_ignore_rw.stderr.diff
=================================================
--- annotate_ignore_rw.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_ignore_rw.stderr.out 2012-12-06 23:55:32.000000000 -0600
@@ -4,6 +4,60 @@
Location 0x........ is 0 bytes inside global var "s_c"
declared at annotate_ignore_rw.c:12
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Address 0x........ is at offset 0 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: _pthread_exit (in /...libc...)
+ by 0x........: thread_start (in /...libc...)
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
Finished.
-ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_ignore_rw2.stderr.diff
=================================================
--- annotate_ignore_rw2.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_ignore_rw2.stderr.out 2012-12-06 23:55:33.000000000 -0600
@@ -14,6 +14,60 @@
Location 0x........ is 0 bytes inside global var "s_c"
declared at annotate_ignore_rw.c:12
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Address 0x........ is at offset 0 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: _pthread_exit (in /...libc...)
+ by 0x........: thread_start (in /...libc...)
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_rw.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
Finished.
-ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 10 errors from 10 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_ignore_write.stderr.diff
=================================================
--- annotate_ignore_write.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_ignore_write.stderr.out 2012-12-06 23:55:34.000000000 -0600
@@ -14,6 +14,60 @@
Location 0x........ is 0 bytes inside global var "s_a"
declared at annotate_ignore_write.c:10
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Address 0x........ is at offset 0 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: _pthread_exit (in /...libc...)
+ by 0x........: thread_start (in /...libc...)
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
Finished.
-ERROR SUMMARY: 3 errors from 3 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 10 errors from 10 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_ignore_write2.stderr.diff
=================================================
--- annotate_ignore_write2.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_ignore_write2.stderr.out 2012-12-06 23:55:35.000000000 -0600
@@ -19,6 +19,60 @@
Location 0x........ is 0 bytes inside global var "s_a"
declared at annotate_ignore_write.c:10
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread 1 at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Address 0x........ is at offset 0 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: _pthread_exit (in /...libc...)
+ by 0x........: thread_start (in /...libc...)
+
+Conflicting load by thread 1 at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: main (annotate_ignore_write.c:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
Finished.
-ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 11 errors from 11 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_order_1.stderr.diff
=================================================
--- annotate_order_1.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_order_1.stderr.out 2012-12-06 23:55:37.000000000 -0600
@@ -1,6 +1,18 @@
FLAGS [phb=1, fm=0]
test03: negative
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: ThreadPool::~ThreadPool() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: test03::Waiter() (tsan_unittest.cpp:?)
+ by 0x........: test03::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
GLOB=2
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_order_2.stderr.diff
=================================================
--- annotate_order_2.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_order_2.stderr.out 2012-12-06 23:55:39.000000000 -0600
@@ -1,6 +1,71 @@
FLAGS [phb=1, fm=0]
test30: negative
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test30::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test30::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test30::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test30::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Address 0x........ is at offset 12 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test30::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test30::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
GLOB=47
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_order_3.stderr.diff
=================================================
--- annotate_order_3.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_order_3.stderr.out 2012-12-06 23:55:41.000000000 -0600
@@ -1,6 +1,71 @@
FLAGS [phb=1, fm=0]
test31: negative
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test31::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test31::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test31::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
+Conflicting store by thread x at 0x........ size 4
+ at 0x........: restore_sem_to_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test31::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Address 0x........ is at offset 4 from 0x......... Allocation context:
+ at 0x........: malloc (vg_replace_malloc.c:...)
+ by 0x........: realloc (vg_replace_malloc.c:...)
+ by 0x........: new_sem_from_pool (in /...libc...)
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test31::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+
+Conflicting load by thread x at 0x........ size 4
+ at 0x........: ???
+ by 0x........: pthread_join$UNIX2003 (in /...libc...)
+ by 0x........: pthread_join (drd_pthread_intercepts.c:?)
+ by 0x........: MyThread::Join() (tsan_thread_wrappers_pthread.h:?)
+ by 0x........: MyThreadArray::Join() (tsan_unittest.cpp:?)
+ by 0x........: test31::Run() (tsan_unittest.cpp:?)
+ by 0x........: Test::Run() (tsan_unittest.cpp:?)
+ by 0x........: main (tsan_unittest.cpp:?)
+Allocation context: Data section of /usr/lib/libSystem.B.dylib
+
GLOB=48
-ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
+ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)
=================================================
./valgrind-old/drd/tests/annotate_rwlock.stderr.diff
=================================================
--- annotate_rwlock.stderr.exp 2012-12-06 23:37:12.000000000 -0600
+++ annotate_rwlock.stderr.out 2012-12-06 23:55:46.000000000 -0600
@@ -1,4 +1,5...
[truncated message content] |
|
From: Mark W. <mj...@re...> - 2012-12-07 08:34:05
|
On Fri, Dec 07, 2012 at 12:06:11AM -0600, Rich Coe wrote: > > valgrind revision: 13168 > VEX revision: 2583 > C compiler: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) > Assembler: > C library: unknown > uname -mrs: Darwin 10.8.0 i386 > Vendor version: unknown > > Nightly build on macx86 ( Darwin 10.8.0 i386 ) > Started at 2012-12-06 23:35:00 CST > Ended at 2012-12-07 00:06:08 CST > Results differ from 24 hours ago > > Checking out valgrind source tree ... done > Configuring valgrind ... done > Building valgrind ... failed > > Last 20 lines of verbose log follow echo > gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../coregrind -I../../include -I../../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -DVGPV_x86_darwin_vanilla=1 -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -MT stpncpy.o -MD -MP -MF .deps/stpncpy.Tpo -c -o stpncpy.o stpncpy.c > stpncpy.c: In function 'main': > stpncpy.c:18: warning: implicit declaration of function 'stpncpy' Sorry, my bad. Apparently stpncpy isn't defined in string.h on Darwin. Does anybody know whether it is defined in another system header, or does Darwin just not provide the stpncpy function at all? Thanks, Mark |
|
From: Michael S. <ms...@ap...> - 2012-12-07 13:15:36
|
OS X has it starting in 10.7, but it could also be the compiler you are using (gcc vs. clang) The prototype is wrapped with the following conditional test: #if __DARWIN_C_LEVEL >= 200809L On 2012-12-07, at 3:33 AM, Mark Wielaard <mj...@re...> wrote: > On Fri, Dec 07, 2012 at 12:06:11AM -0600, Rich Coe wrote: >> >> valgrind revision: 13168 >> VEX revision: 2583 >> C compiler: i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) >> Assembler: >> C library: unknown >> uname -mrs: Darwin 10.8.0 i386 >> Vendor version: unknown >> >> Nightly build on macx86 ( Darwin 10.8.0 i386 ) >> Started at 2012-12-06 23:35:00 CST >> Ended at 2012-12-07 00:06:08 CST >> Results differ from 24 hours ago >> >> Checking out valgrind source tree ... done >> Configuring valgrind ... done >> Building valgrind ... failed >> >> Last 20 lines of verbose log follow echo >> gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../include -I../../coregrind -I../../include -I../../VEX/pub -DVGA_x86=1 -DVGO_darwin=1 -DVGP_x86_darwin=1 -DVGPV_x86_darwin_vanilla=1 -Winline -Wall -Wshadow -g -arch i386 -Wno-long-long -Wwrite-strings -fno-stack-protector -Wno-write-strings -MT stpncpy.o -MD -MP -MF .deps/stpncpy.Tpo -c -o stpncpy.o stpncpy.c >> stpncpy.c: In function 'main': >> stpncpy.c:18: warning: implicit declaration of function 'stpncpy' > > Sorry, my bad. Apparently stpncpy isn't defined in string.h on Darwin. > Does anybody know whether it is defined in another system header, > or does Darwin just not provide the stpncpy function at all? > > Thanks, > > Mark > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support > Improve your efficiency, and focus on delivering more value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers ________________________________________________________________________ Michael Sweet, Senior Printing System Engineer, PWG Chair |
|
From: Mark W. <mj...@re...> - 2012-12-11 10:16:47
Attachments:
stpncpy.confcheck.patch
|
On Fri, 2012-12-07 at 08:15 -0500, Michael Sweet wrote: > OS X has it starting in 10.7, but it could also be the compiler you are using (gcc vs. clang) > > The prototype is wrapped with the following conditional test: > > #if __DARWIN_C_LEVEL >= 200809L I am not sure I understand what that really means. But I see the code doesn't explicitly define _GNU_SOURCE which is probably a good idea in this case. Also probably a simple configure check for enabling the test seems in order. Does the attached work for you? (I don't have access to any darwin based setups.) Thanks, Mark |
|
From: Rich C. <rc...@wi...> - 2012-12-11 14:54:26
|
The configure test fails true. configure:6774: checking for stpncpy configure:6795: gcc -c -Wno-long-long conftest.c >&5 conftest.c: In function 'main': conftest.c:42: warning: incompatible implicit declaration of built-in function 'stpncpy' configure:6795: $? = 0 configure:6798: result: yes On Tue, 11 Dec 2012 11:16:32 +0100 Mark Wielaard <mj...@re...> wrote: > On Fri, 2012-12-07 at 08:15 -0500, Michael Sweet wrote: > > OS X has it starting in 10.7, but it could also be the compiler you are using (gcc vs. clang) > > > > The prototype is wrapped with the following conditional test: > > > > #if __DARWIN_C_LEVEL >= 200809L > > I am not sure I understand what that really means. But I see the code > doesn't explicitly define _GNU_SOURCE which is probably a good idea in > this case. Also probably a simple configure check for enabling the test > seems in order. > > Does the attached work for you? > (I don't have access to any darwin based setups.) > > Thanks, > > Mark -- Rich Coe rc...@wi... |
|
From: Mark W. <mj...@re...> - 2012-12-11 15:07:39
|
On Tue, 2012-12-11 at 08:54 -0600, Rich Coe wrote: > The configure test fails true. > > configure:6774: checking for stpncpy > configure:6795: gcc -c -Wno-long-long conftest.c >&5 > conftest.c: In function 'main': > conftest.c:42: warning: incompatible implicit declaration of built-in function 'stpncpy' > configure:6795: $? = 0 > configure:6798: result: yes So, the test now also compiles? Then I assume it was the #define _GNU_SOURCE addition. But the configure test still makes sense, stpncpy might not be there on some platforms/configurations. Thanks, Mark |
|
From: Rich C. <rc...@wi...> - 2012-12-11 16:36:42
|
On Tue, 11 Dec 2012 16:07:28 +0100 Mark Wielaard <mj...@re...> wrote: > On Tue, 2012-12-11 at 08:54 -0600, Rich Coe wrote: > > The configure test fails true. > > > > configure:6774: checking for stpncpy > > configure:6795: gcc -c -Wno-long-long conftest.c >&5 > > conftest.c: In function 'main': > > conftest.c:42: warning: incompatible implicit declaration of built-in function 'stpncpy' > > configure:6795: $? = 0 > > configure:6798: result: yes > > So, the test now also compiles? > Then I assume it was the #define _GNU_SOURCE addition. > But the configure test still makes sense, stpncpy might not be there on > some platforms/configurations. No, because the test result is 'yes', the config parameter is still set and it still tries to compile the test case. The configure test needs to fail so the result is false and the test case doesn't compile on platforms that don't have the function. Rich |
|
From: Mark W. <mj...@re...> - 2012-12-11 17:08:56
Attachments:
stpncpy.confcheck.Werror.patch
|
On Tue, Dec 11, 2012 at 10:36:31AM -0600, Rich Coe wrote: > Mark Wielaard <mj...@re...> wrote: > > So, the test now also compiles? > > Then I assume it was the #define _GNU_SOURCE addition. > > But the configure test still makes sense, stpncpy might not be there on > > some platforms/configurations. > > No, because the test result is 'yes', the config parameter is still set > and it still tries to compile the test case. > > The configure test needs to fail so the result is false and the test case > doesn't compile on platforms that don't have the function. Hmmm, OK, how about adding an explicit -Werror then for this test as attached. Does that "fail properly" in your case? Thanks, Mark |
|
From: Dave G. <go...@mc...> - 2012-12-12 05:56:59
|
On Dec 12, 2012, at 2:08 AM GMT+09:00, Mark Wielaard wrote: > On Tue, Dec 11, 2012 at 10:36:31AM -0600, Rich Coe wrote: >> Mark Wielaard <mj...@re...> wrote: >>> So, the test now also compiles? >>> Then I assume it was the #define _GNU_SOURCE addition. >>> But the configure test still makes sense, stpncpy might not be there on >>> some platforms/configurations. >> >> No, because the test result is 'yes', the config parameter is still set >> and it still tries to compile the test case. >> >> The configure test needs to fail so the result is false and the test case >> doesn't compile on platforms that don't have the function. > > Hmmm, OK, how about adding an explicit -Werror then for this test as > attached. Does that "fail properly" in your case? I haven't been following closely, but your second patch (adding "-Werror") seems the wrong way to go about this. I think that if you switch from AC_COMPILE_IFELSE to AC_LINK_IFELSE that you will get the desired behavior from the original patch. Also, you should probably avoid trampling the "ac_" namespace with the shell var that you are setting. You may also wish to include a note that this HAVE_STPNCPY is only valid in conjunction with "#define _GNU_SOURCE". -Dave |
|
From: Julian S. <js...@ac...> - 2012-12-12 09:07:25
|
Since we are not currently intercepting stpncpy on Darwin, a simple fix would be to move the test from memcheck/tests to memcheck/tests/linux, so it wouldn't get built on Darwin. That however assumes that stpncpy is available on all Linux platforms that the tests get built on. Is that a reasonable assumption? Does anybody know how long stpncpy has been available on Linux? J On Wednesday, December 12, 2012, Dave Goodell wrote: > On Dec 12, 2012, at 2:08 AM GMT+09:00, Mark Wielaard wrote: > > On Tue, Dec 11, 2012 at 10:36:31AM -0600, Rich Coe wrote: > >> Mark Wielaard <mj...@re...> wrote: > >>> So, the test now also compiles? > >>> Then I assume it was the #define _GNU_SOURCE addition. > >>> But the configure test still makes sense, stpncpy might not be there on > >>> some platforms/configurations. > >> > >> No, because the test result is 'yes', the config parameter is still set > >> and it still tries to compile the test case. > >> > >> The configure test needs to fail so the result is false and the test > >> case doesn't compile on platforms that don't have the function. > > > > Hmmm, OK, how about adding an explicit -Werror then for this test as > > attached. Does that "fail properly" in your case? > > I haven't been following closely, but your second patch (adding "-Werror") > seems the wrong way to go about this. I think that if you switch from > AC_COMPILE_IFELSE to AC_LINK_IFELSE that you will get the desired behavior > from the original patch. > > Also, you should probably avoid trampling the "ac_" namespace with the > shell var that you are setting. You may also wish to include a note that > this HAVE_STPNCPY is only valid in conjunction with "#define _GNU_SOURCE". > > -Dave > > > --------------------------------------------------------------------------- > --- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial > Remotely access PCs and mobile devices and provide instant support Improve > your efficiency, and focus on delivering more value-add services Discover > what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Valgrind-developers mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-developers |
|
From: Mark W. <mj...@re...> - 2012-12-12 09:56:45
Attachments:
stpncpy.confcheck.link.patch
|
On Wed, 2012-12-12 at 14:56 +0900, Dave Goodell wrote: > On Dec 12, 2012, at 2:08 AM GMT+09:00, Mark Wielaard wrote: > > On Tue, Dec 11, 2012 at 10:36:31AM -0600, Rich Coe wrote: > >> The configure test needs to fail so the result is false and the > >> test case doesn't compile on platforms that don't have the > >> function. > > > > Hmmm, OK, how about adding an explicit -Werror then for this test as > > attached. Does that "fail properly" in your case? > > I haven't been following closely, but your second patch (adding > "-Werror") seems the wrong way to go about this. I think that if you > switch from AC_COMPILE_IFELSE to AC_LINK_IFELSE that you will get the > desired behavior from the original patch. Makes sense. New patch attached. Obviously all variants work fine on my setup. If someone could test on a problematic one that would be appreciated. > Also, you should probably avoid trampling the "ac_" namespace with the > shell var that you are setting. This is just cargo-cult copy/paste from the existing tests. I rather keep them all similar. > You may also wish to include a note that this HAVE_STPNCPY is > only valid in conjunction with "#define _GNU_SOURCE". But that turned out not to be true. The original didn't have it, and apparently different "non-GNU" systems do have strpncpy. Thanks, Mark |
|
From: Mark W. <mj...@re...> - 2012-12-12 10:12:32
|
On Wed, 2012-12-12 at 09:55 +0100, Julian Seward wrote: > Since we are not currently intercepting stpncpy on Darwin, a simple > fix would be to move the test from memcheck/tests to memcheck/tests/linux, > so it wouldn't get built on Darwin. If the configure check is too much pain that would certainly be fine with me. It would just be nice to have the check everywhere stpncpy is available to make sure valgrind handles it correctly (whether or not it intercepts it). Apparently it is not just a GNU extension, it was added to The Open Group Base Specifications Issue 7 IEEE Std 1003.1-2008 http://pubs.opengroup.org/onlinepubs/9699919799/functions/strncpy.html > That however assumes that stpncpy is available on all Linux platforms > that the tests get built on. Is that a reasonable assumption? Does > anybody know how long stpncpy has been available on Linux? stpncpy was introduced in glibc 2.0. Cheers, Mark |
|
From: Julian S. <js...@ac...> - 2012-12-12 10:23:23
|
On Wednesday, December 12, 2012, Mark Wielaard wrote: > It would just be nice to have the check everywhere stpncpy is available Yes, I would prefer the config check solution, on the whole. J |
|
From: Dave G. <go...@mc...> - 2012-12-12 11:31:30
|
On Dec 12, 2012, at 6:56 PM GMT+09:00, Mark Wielaard wrote: > On Wed, 2012-12-12 at 14:56 +0900, Dave Goodell wrote: >> >> I haven't been following closely, but your second patch (adding >> "-Werror") seems the wrong way to go about this. I think that if you >> switch from AC_COMPILE_IFELSE to AC_LINK_IFELSE that you will get the >> desired behavior from the original patch. > > Makes sense. New patch attached. Obviously all variants work fine on my > setup. If someone could test on a problematic one that would be > appreciated. I don't have easy access to a 10.6 or earlier machine with which to check this, sorry. >> Also, you should probably avoid trampling the "ac_" namespace with the >> shell var that you are setting. > > This is just cargo-cult copy/paste from the existing tests. I rather > keep them all similar. I don't feel strongly on this issue, but it's a great way to get burned in the future when the autoconf maintainers start using this variable for some random reason. You have correct m4 quoting in your patch, which is better than most cargo-cult autoconf fragments, so I assumed that you might be interested in following other best practices in this regard. >> You may also wish to include a note that this HAVE_STPNCPY is >> only valid in conjunction with "#define _GNU_SOURCE". > > But that turned out not to be true. The original didn't have it, and > apparently different "non-GNU" systems do have strpncpy. But your configure test explicitly defines "_GNU_SOURCE" in the test. So clients of HAVE_STPNCPY can only rely on its accuracy if they also define _GNU_SOURCE. I am not referring to any particular system having or not having the routine, nor directly the influence of _GNU_SOURCE on any particular system. Only that the test only checks for strncpy's existence in the presence of _GNU_SOURCE. This usually does not matter now, but 4 years down the road when someone else wants to gate on this #define and does not realize the subtle _GNU_SOURCE requirement. HAVE_X always seems like such a simple truth that it's easy to trust too much unless caveats are present in the name or the comments :) -Dave |
|
From: Mark W. <mj...@re...> - 2012-12-12 12:28:46
Attachments:
stpncpy.confcheck.gnu.stpncpy.patch
|
On Wed, 2012-12-12 at 20:31 +0900, Dave Goodell wrote:
> On Dec 12, 2012, at 6:56 PM GMT+09:00, Mark Wielaard wrote:
> > Makes sense. New patch attached. Obviously all variants work fine on my
> > setup. If someone could test on a problematic one that would be
> > appreciated.
>
> I don't have easy access to a 10.6 or earlier machine with which to check this, sorry.
Hopefully someone else can, otherwise we should just move things under
memcheck/tests/linux and be done with it I guess.
> I don't feel strongly on this issue, but it's a great way to get
> burned in the future when the autoconf maintainers start using this
> variable for some random reason. You have correct m4 quoting in your
> patch, which is better than most cargo-cult autoconf fragments, so I
> assumed that you might be interested in following other best practices
> in this regard.
I certainly do see your point. But I don't feel my auto* foo is strong
enough to fix all these issues in configure.in with this patch. And I do
think it is better to have all test be as similar as possible to each
other for now. But yeah, one day there will be problems :{ If just
because valgrind still has a configure.in, which will soon be dropped
because it has been deprecated for so long in favor of configure.ac:
https://lists.gnu.org/archive/html/autotools-announce/2012-11/msg00000.html
So if there is someone with strong auto* foo I am sure some cleanups
here will be appreciated.
> >> You may also wish to include a note that this HAVE_STPNCPY is
> >> only valid in conjunction with "#define _GNU_SOURCE".
> >
> > But that turned out not to be true. The original didn't have it, and
> > apparently different "non-GNU" systems do have strpncpy.
>
> But your configure test explicitly defines "_GNU_SOURCE" in the test.
> So clients of HAVE_STPNCPY can only rely on its accuracy if they also
> define _GNU_SOURCE. I am not referring to any particular system
> having or not having the routine, nor directly the influence of
> _GNU_SOURCE on any particular system. Only that the test only checks
> for strncpy's existence in the presence of _GNU_SOURCE.
>
> This usually does not matter now, but 4 years down the road when
> someone else wants to gate on this #define and does not realize the
> subtle _GNU_SOURCE requirement. HAVE_X always seems like such a
> simple truth that it's easy to trust too much unless caveats are
> present in the name or the comments :)
So, new version of the patch. This time with comment and tweaked HAVE_
to make thing totally clear attached.
Cheers,
Mark
|
|
From: Rich C. <rc...@wi...> - 2012-12-13 04:31:57
|
This patch worked.
Rich
On Wed, 12 Dec 2012 13:28:32 +0100
Mark Wielaard <mj...@re...> wrote:
> On Wed, 2012-12-12 at 20:31 +0900, Dave Goodell wrote:
> > On Dec 12, 2012, at 6:56 PM GMT+09:00, Mark Wielaard wrote:
> > > Makes sense. New patch attached. Obviously all variants work fine on my
> > > setup. If someone could test on a problematic one that would be
> > > appreciated.
> >
> > I don't have easy access to a 10.6 or earlier machine with which to check this, sorry.
>
> Hopefully someone else can, otherwise we should just move things under
> memcheck/tests/linux and be done with it I guess.
>
> > I don't feel strongly on this issue, but it's a great way to get
> > burned in the future when the autoconf maintainers start using this
> > variable for some random reason. You have correct m4 quoting in your
> > patch, which is better than most cargo-cult autoconf fragments, so I
> > assumed that you might be interested in following other best practices
> > in this regard.
>
> I certainly do see your point. But I don't feel my auto* foo is strong
> enough to fix all these issues in configure.in with this patch. And I do
> think it is better to have all test be as similar as possible to each
> other for now. But yeah, one day there will be problems :{ If just
> because valgrind still has a configure.in, which will soon be dropped
> because it has been deprecated for so long in favor of configure.ac:
> https://lists.gnu.org/archive/html/autotools-announce/2012-11/msg00000.html
> So if there is someone with strong auto* foo I am sure some cleanups
> here will be appreciated.
>
> > >> You may also wish to include a note that this HAVE_STPNCPY is
> > >> only valid in conjunction with "#define _GNU_SOURCE".
> > >
> > > But that turned out not to be true. The original didn't have it, and
> > > apparently different "non-GNU" systems do have strpncpy.
> >
> > But your configure test explicitly defines "_GNU_SOURCE" in the test.
> > So clients of HAVE_STPNCPY can only rely on its accuracy if they also
> > define _GNU_SOURCE. I am not referring to any particular system
> > having or not having the routine, nor directly the influence of
> > _GNU_SOURCE on any particular system. Only that the test only checks
> > for strncpy's existence in the presence of _GNU_SOURCE.
> >
> > This usually does not matter now, but 4 years down the road when
> > someone else wants to gate on this #define and does not realize the
> > subtle _GNU_SOURCE requirement. HAVE_X always seems like such a
> > simple truth that it's easy to trust too much unless caveats are
> > present in the name or the comments :)
>
> So, new version of the patch. This time with comment and tweaked HAVE_
> to make thing totally clear attached.
>
> Cheers,
>
> Mark
--
Rich Coe rc...@wi...
|
|
From: Dave G. <go...@mc...> - 2012-12-14 12:32:41
|
Thanks for testing this, Rich.
Julian (or someone), would you please apply this patch at your convenience? Or would a bugzilla be preferred at this stage?
-Dave
On Dec 13, 2012, at 1:31 PM GMT+09:00, Rich Coe wrote:
> This patch worked.
>
> Rich
>
> On Wed, 12 Dec 2012 13:28:32 +0100
> Mark Wielaard <mj...@re...> wrote:
>> On Wed, 2012-12-12 at 20:31 +0900, Dave Goodell wrote:
>>> On Dec 12, 2012, at 6:56 PM GMT+09:00, Mark Wielaard wrote:
>>>> Makes sense. New patch attached. Obviously all variants work fine on my
>>>> setup. If someone could test on a problematic one that would be
>>>> appreciated.
>>>
>>> I don't have easy access to a 10.6 or earlier machine with which to check this, sorry.
>>
>> Hopefully someone else can, otherwise we should just move things under
>> memcheck/tests/linux and be done with it I guess.
>>
>>> I don't feel strongly on this issue, but it's a great way to get
>>> burned in the future when the autoconf maintainers start using this
>>> variable for some random reason. You have correct m4 quoting in your
>>> patch, which is better than most cargo-cult autoconf fragments, so I
>>> assumed that you might be interested in following other best practices
>>> in this regard.
>>
>> I certainly do see your point. But I don't feel my auto* foo is strong
>> enough to fix all these issues in configure.in with this patch. And I do
>> think it is better to have all test be as similar as possible to each
>> other for now. But yeah, one day there will be problems :{ If just
>> because valgrind still has a configure.in, which will soon be dropped
>> because it has been deprecated for so long in favor of configure.ac:
>> https://lists.gnu.org/archive/html/autotools-announce/2012-11/msg00000.html
>> So if there is someone with strong auto* foo I am sure some cleanups
>> here will be appreciated.
>>
>>>>> You may also wish to include a note that this HAVE_STPNCPY is
>>>>> only valid in conjunction with "#define _GNU_SOURCE".
>>>>
>>>> But that turned out not to be true. The original didn't have it, and
>>>> apparently different "non-GNU" systems do have strpncpy.
>>>
>>> But your configure test explicitly defines "_GNU_SOURCE" in the test.
>>> So clients of HAVE_STPNCPY can only rely on its accuracy if they also
>>> define _GNU_SOURCE. I am not referring to any particular system
>>> having or not having the routine, nor directly the influence of
>>> _GNU_SOURCE on any particular system. Only that the test only checks
>>> for strncpy's existence in the presence of _GNU_SOURCE.
>>>
>>> This usually does not matter now, but 4 years down the road when
>>> someone else wants to gate on this #define and does not realize the
>>> subtle _GNU_SOURCE requirement. HAVE_X always seems like such a
>>> simple truth that it's easy to trust too much unless caveats are
>>> present in the name or the comments :)
>>
>> So, new version of the patch. This time with comment and tweaked HAVE_
>> to make thing totally clear attached.
>>
>> Cheers,
>>
>> Mark
>
>
> --
> Rich Coe rc...@wi...
|
|
From: Mark W. <mj...@re...> - 2012-12-14 12:42:36
|
On Fri, 2012-12-14 at 21:32 +0900, Dave Goodell wrote: > Thanks for testing this, Rich. > > Julian (or someone), would you please apply this patch at your > convenience? Or would a bugzilla be preferred at this stage? I already bothered him on irc. It is in now r13180. Thanks, Mark |
|
From: Julian S. <js...@ac...> - 2012-12-14 12:50:39
|
> On Fri, 2012-12-14 at 21:32 +0900, Dave Goodell wrote: > > Thanks for testing this, Rich. > > > > Julian (or someone), would you please apply this patch at your > > convenience? Or would a bugzilla be preferred at this stage? > > I already bothered him on irc. It is in now r13180. Oh, I should have mentioned here that I committed it. Sorry. J |
|
From: Dave G. <go...@mc...> - 2012-12-14 12:57:39
|
On Dec 14, 2012, at 9:50 PM GMT+09:00, Julian Seward wrote: >> On Fri, 2012-12-14 at 21:32 +0900, Dave Goodell wrote: >>> Thanks for testing this, Rich. >>> >>> Julian (or someone), would you please apply this patch at your >>> convenience? Or would a bugzilla be preferred at this stage? >> >> I already bothered him on irc. It is in now r13180. > > Oh, I should have mentioned here that I committed it. Sorry. And I should have noticed the commit email fly past (I thought I looked, but must have missed it, since it's plainly there). Sorry for the noise. -Dave |