From nobody Fri Jun 3 20:05:11 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 527F91BD7FE9 for ; Fri, 3 Jun 2022 20:05:12 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LFDPz6pZlz4sS8 for ; Fri, 3 Jun 2022 20:05:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A72AC7ADF for ; Fri, 3 Jun 2022 20:05:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 253K5BAt077464 for ; Fri, 3 Jun 2022 20:05:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 253K5Btl077463 for bugs@FreeBSD.org; Fri, 3 Jun 2022 20:05:11 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 264441] Hang with Valgrind on single CPU systems Date: Fri, 03 Jun 2022 20:05:11 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654286712; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zlIyBtRSiMrGwHxSOajEd551vmvXvgm46GODRopov9Y=; b=O7D5dvvDUyQ4Bj7FVK2xYX3S5rJ4YadA8zWm1zu3aavqfcPeERjfgnYCzgG8Vprkmo4fXv zrbah8l+U9w0+v5Wz/ELR1mwPV8FgSiAaVUZA+jLeSh47wVZ0ipjfcbxKJOsqViQBEux6A +rl+vaPSuK4M85WJFDWVQwqG9gqW+VyLLW9eoqhTJDvvhr1f+R1M+F8zSgyUiMOZkLE58z tM/KqQctUqokSNoZ8Uk08qfNUwYI5YGRJTD3qelOEnKAWguWSdeBdead5DEqQ9svqlFEa6 /XMp+FfVzUPEyKWlaB5VZCTAG6ofpc0/zm5IQQg0irHVcAV8ORc0Y6e8XgutQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654286712; a=rsa-sha256; cv=none; b=MDifSX/FKxy7lmxz1gmxT2AZwe8zLhExIlxbMRZYJEtjQnCI9QSsOY8gvRgGVFJVekDCLq 7k4WZb9DUGLitDfKFq2kVWmNlBGp2hs5AdgUu/AQdHJ52atxSEgIWrUPwfwr+wb4vCH6tg 5DcGzq6GmogvmOJ9fAL3WoQK8zA5kYmCjyY+ljjDOQA1auZai1P1A59hpdSW5MIRSwVclF 4+Uv2ktMh33rvdIATikZ/PwuzV1HV5muQPHUwN95HrqrQAIxdVWwVYAfQ/YQb9HQezzSXw +3QXuz/kQoT6XDz5YQ/BBftACyPZruVhCTcoPThPaJBwMpfFLVtRsZOIDgFmHA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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.=