Date: Fri, 03 Jun 2022 20:05:11 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264441] Hang with Valgrind on single CPU systems Message-ID: <bug-264441-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264441 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: pjfloyd@wanadoo.fr 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 timi= ng dependent. Steps to reproduce: Most importantly, you need a single CPU i386 or amd64 system. That's possib= le 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=3Dcl= ang CXX=3Dclang++ $ 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 followi= ng export VALGRIND_LAUNCHER=3DYOUR_PATH/valgrind/coregrind/valgrind export VALGRIND_LIB=3DYOUR_PATH/valgrind/.in_place export VALGRIND_LIB_INNER=3DYOUR_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=3Dnone ./tls or ../../.in_place/none-amd64-freebsd --tool=3Dnone ./pth_2sig --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-264441-227>