]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
FreeBSD: add common failure causes to README.freebsd
authorPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 1 Sep 2023 06:26:24 +0000 (08:26 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Fri, 1 Sep 2023 06:26:24 +0000 (08:26 +0200)
Also fix the name of one of the fields of vki_kinfo_vmentry.

README.freebsd
coregrind/m_aspacemgr/aspacemgr-linux.c
include/vki/vki-freebsd.h

index eb6a510adaa751bd08177903f8a56df5206cddbb..ce1e435f5d44e932d463ade0ab18fbd2d4a1ea37 100644 (file)
@@ -130,7 +130,20 @@ These are much easier.
 
 They just contain a POST_MEM_WRITE macro for each output argument.
 
-1. Running regression tests
+1. Frequent causes of problems
+
+- New _umtx_op codes. Valgrind will print "WARNING: _umtx_op unsupported value".
+  See syswrap-freebsd.c and add new cases for the new codes.
+- Additions to auxv. Depending on the entry it may need to be simply copied
+  from the host to the guest, it may need to be modified for the guest or
+  it may need to be ignored. See initimg-freebsd.c.
+- ELF PT_LOAD mappings. Either Valgrind will assert or there will be no source
+  information in error reports. See VG_(di_notify_mmap) in debuginfo.c
+- Because they contain many deliberate errors the regression tests are prone
+  to change with changes of compiler. Liberal use of 'volatile' and
+  '-Wno-warning-flag' can help - see configure.ac
+
+2. Running regression tests
 
 In order to run all of the regression tests you will need to install
 the following packages
index ae38d8bd05e0f380c9605d86a63444ea6383a5af..ba8964928ee157a53983c8701106df94819c920d 100644 (file)
@@ -3943,7 +3943,7 @@ static void parse_procselfmaps (
        endPlusOne = (UWord)kve->kve_end;
        foffset    = kve->kve_offset;
        filename   = kve->kve_path;
-       dev        = kve->kve_fsid_freebsd11;
+       dev        = kve->kve_vn_fsid_freebsd11;
        ino        = kve->kve_fileid;
        if (filename[0] != '/') {
          filename = NULL;
index 92ca8a6878c6656de2732e13c8b70b992ef3286c..b30b2933eca4dfc470190541b2b4c4ef902f2187 100644 (file)
@@ -2170,7 +2170,7 @@ struct vki_kinfo_vmentry {
    ULong kve_end;
    ULong   kve_offset;
    ULong   kve_fileid;
-   UInt    kve_fsid_freebsd11;
+   UInt    kve_vn_fsid_freebsd11;
    int   kve_flags;
    int   kve_resident;
    int   kve_private_resident;