paulfloyd / freebsd_valgrind

Git repo used to Upstream the FreeBSD Port of Valgrind
GNU General Public License v2.0
15 stars 4 forks source link

intermittent arm64 failures #208

Open paulfloyd opened 2 months ago

paulfloyd commented 2 months ago

memcheck/tests/thread_alloca

Something like an error allocating/initializing the memory for threads. The error is in rtld calling sigprocmask during thread creation.

=================================================
./valgrind-new/drd/tests/tls_threads.stderr.diff
=================================================
--- tls_threads.stderr.exp  2024-04-29 08:19:23.903277000 +0200
+++ tls_threads.stderr.out  2024-04-29 08:30:11.185173000 +0200
@@ -1,2 +1,67 @@
 starting join in main
+Thread 2:
+Conflicting load by thread 2 at 0x........ size 4
+   at 0x........: local_false_positive (tls_threads.c:?)
+   by 0x........: level2 (tls_threads.c:?)
+   by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
+   by 0x........: start_thread
+   by 0x........: pthread_crestart_thread
+Allocation context: unknown.
+Other segment start (thread 3)
+   (thread finished, call stack no longer available)
+Other segment end (thread 3)
+   (thread finished, call stack no longer available)
+Other segment start (thread 5)
+   (thread finished, call stack no longer available)
+Other segment end (thread 5)
+   (thread finished, call stack no longer available)
+
+Conflicting store by thread 2 at 0x........ size 4
+   at 0x........: local_false_positive (tls_threads.c:?)
+   by 0x........: level2 (tls_threads.c:?)
+   by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
+   by 0x........: start_thread
+   by 0x........: pthread_crestart_thread
+Allocation context: unknown.
+Other segment start (thread 3)
+   (thread finished, call stack no longer available)
+Other segment end (thread 3)
+   (thread finished, call stack no longer available)
+Other segment start (thread 5)
+   (thread finished, call stack no longer available)
+Other segment end (thread 5)
+   (thread finished, call stack no longer available)
+
+Conflicting load by thread 2 at 0x........ size 4
+   at 0x........: global_false_positive (tls_threads.c:?)
+   by 0x........: level2 (tls_threads.c:?)
+   by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
+   by 0x........: start_thread
+   by 0x........: pthread_crestart_thread
+Allocation context: unknown.
+Other segment start (thread 3)
+   (thread finished, call stack no longer available)
+Other segment end (thread 3)
+   (thread finished, call stack no longer available)
+Other segment start (thread 5)
+   (thread finished, call stack no longer available)
+Other segment end (thread 5)
+   (thread finished, call stack no longer available)
+
+Conflicting store by thread 2 at 0x........ size 4
+   at 0x........: global_false_positive (tls_threads.c:?)
+   by 0x........: level2 (tls_threads.c:?)
+   by 0x........: vgDrd_thread_wrapper (drd_pthread_intercepts.c:?)
+   by 0x........: start_thread
+   by 0x........: pthread_crestart_thread
+Allocation context: unknown.
+Other segment start (thread 3)
+   (thread finished, call stack no longer available)
+Other segment end (thread 3)
+   (thread finished, call stack no longer available)
+Other segment start (thread 5)
+   (thread finished, call stack no longer available)
+Other segment end (thread 5)
+   (thread finished, call stack no longer available)
+
 finished join in main

gdbserver_tests/nlvgdbsigqueue (also intermittently fails on amd64)

And another

memcheck/tests/freebsd/getfsstat (stderr)

+Warning: Bad oldset address 0x........ in sigprocmask
+Syscall param sigprocmask(set) points to uninitialised byte(s)
+   ...
+ Address 0x........ is in the BSS segment of /libexec/ld-elf.so.1
+