]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD regtest: various fixes for x86 FreeBSD 14.1
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 8 May 2024 14:40:36 +0000 (16:40 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 8 May 2024 14:40:36 +0000 (16:40 +0200)
Most of them are related to the difference between x86 and amd64
syscall ABI.

freebsd-drd.supp
memcheck/tests/freebsd/Makefile.am
memcheck/tests/freebsd/bug483786.vgtest
memcheck/tests/freebsd/filter_frame [new file with mode: 0755]
memcheck/tests/freebsd/getfsstat.stderr.exp-x86
none/tests/filter_fdleak

index 6995d230b5aa0094a713a9cc281ff46faaacec34..2f3c8066a99195eb8fc8992b3dbaabb433138925 100644 (file)
    drd:ConflictingAccess
    fun:pthread_once_intercept
 }
+{
+   DRD-FREEBSD141-X86-THR_NEW
+   drd:ConflictingAccess
+   fun:thr_new
+}
index 621b9647184d4294f687b3c4b3fa7706f1d2c484..dc1817f3975517d73d326fde0d9ee81acc220c60 100644 (file)
@@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.tool-tests.am
 
 dist_noinst_SCRIPTS = filter_stderr filter_pts dump_stdout filter_sigwait \
        filter_scalar filter_realpathat filter_fstat filter_eventfd2 \
-       toucher1 toucher2 filter_getfsstat filter_context
+       toucher1 toucher2 filter_getfsstat filter_context filter_frame
 
 EXTRA_DIST = \
        access.vgtest \
index 60cb175cb29cfd0be4ce865d32a69e76f423a1b2..942250a84347b739108e9009b617bfb6849ed5bf 100644 (file)
@@ -1,2 +1,3 @@
 prog: bug483786
 vgopts: -q
+stderr_filter: filter_frame
diff --git a/memcheck/tests/freebsd/filter_frame b/memcheck/tests/freebsd/filter_frame
new file mode 100755 (executable)
index 0000000..91766b4
--- /dev/null
@@ -0,0 +1,5 @@
+#! /bin/sh
+
+../filter_stderr "$@" |
+
+gsed 's/frame #2/frame #1/'
index 17751f39a5a5e628040f0505fd807249af0aa4e7..fb012daa3631b2a746a7115cd664371e052202cd 100644 (file)
@@ -1,6 +1,6 @@
 Syscall param getfsstat(buf) points to unaddressable byte(s)
    at 0x........: _getfsstat (in /...libc...)
-   by 0x........: getfsstat (in /...libc...)
+   by 0x........: _getfsstat (in /...libc...)
    by 0x........: main (getfsstat.c:25)
  Address 0x........ is 0 bytes inside a block of size 2,344 free'd
    at 0x........: free (vg_replace_malloc.c:...)
@@ -11,11 +11,11 @@ Syscall param getfsstat(buf) points to unaddressable byte(s)
 
 Syscall param getfsstat(len) contains uninitialised byte(s)
    at 0x........: _getfsstat (in /...libc...)
-   by 0x........: getfsstat (in /...libc...)
+   by 0x........: _getfsstat (in /...libc...)
    by 0x........: main (getfsstat.c:30)
 
 Syscall param getfsstat(flags) contains uninitialised byte(s)
    at 0x........: _getfsstat (in /...libc...)
-   by 0x........: getfsstat (in /...libc...)
+   by 0x........: _getfsstat (in /...libc...)
    by 0x........: main (getfsstat.c:31)
 
index a558021dc227caf3ddfa19048018e13d4bb9d609..f7cb026ed577842e907ba6b3f667a81d3ecb8744 100755 (executable)
@@ -21,6 +21,8 @@ perl -p -e "s/: open \(/: creat (/" |
 
 # FreeBSD specific fdleak filters
 perl -p -e 's/ _close / close /;s/ _openat / creat /;s/internet/AF_INET socket 4: 127.0.0.1:... <-> 127.0.0.1:.../' |
+sed '/by 0x........: close (in \/...libc...)/d' |
+sed '/by 0x........: creat (in \/...libc...)/d' |
 
 # Solaris specific fdleak filters
 perl -p -e 's/ __close / close /' |