[Bug 264441] Hang with Valgrind on single CPU systems
Date: Fri, 03 Jun 2022 20:05:11 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264441 Bug ID: 264441 Summary: Hang with Valgrind on single CPU systems Product: Base System Version: 13.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: email@example.com There are a lot more details here: https://github.com/paulfloyd/freebsd_valgrind/issues/189 https://github.com/paulfloyd/freebsd_valgrind/issues/188 and discussion here https://lists.freebsd.org/archives/freebsd-hackers/2022-May/001154.html It may be somewhat difficult to reproduce the error as it may be quite timing dependent. Steps to reproduce: Most importantly, you need a single CPU i386 or amd64 system. That's possible with VirtualBox. Clone and build the Valgrind source and regressions tests. clone git://sourceware.org/git/valgrind.git Backout a workaround for one of the issues $ git revert a4151207a28b506cdd1e7c095e4aebaaf289a384 Make sure that you have the ports for autoconf, automake, libtool and gmake installed. Run the folllowing comamnds If you have GCC installed you need to set the environment variables CC=clang CXX=clang++ $ sh autogen.sh $ ./configure $ gmake $ gmake check Now you can try the two testcases that were causing problems $ perl tests/vg_regtest none/tests/tls and $ perl tests/vg_regtest none/tests/pth_2sig If you want to run Valgrind without any wrapper scripts then do the following export VALGRIND_LAUNCHER=YOUR_PATH/valgrind/coregrind/valgrind export VALGRIND_LIB=YOUR_PATH/valgrind/.in_place export VALGRIND_LIB_INNER=YOUR_PATH/valgrind/.in_place (where YOUR_PATH/valgrind is the path to the git repo cloned above) cd to none/tests Run ../../.in_place/none-amd64-freebsd --tool=none ./tls or ../../.in_place/none-amd64-freebsd --tool=none ./pth_2sig -- You are receiving this mail because: You are the assignee for the bug.