From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id yGorGneTwWA0VgAAgWs5BA (envelope-from ) for ; Thu, 10 Jun 2021 06:22:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2/16FXeTwWDrFAAAB5/wlQ (envelope-from ) for ; Thu, 10 Jun 2021 04:22:15 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B17CF1AAEB for ; Thu, 10 Jun 2021 06:22:14 +0200 (CEST) Received: from localhost ([::1]:55432 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lrCCq-0001eV-5o for larch@yhetil.org; Thu, 10 Jun 2021 00:22:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59160) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrCCg-0001bo-OG for bug-guix@gnu.org; Thu, 10 Jun 2021 00:22:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51770) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrCCg-0004fB-GU for bug-guix@gnu.org; Thu, 10 Jun 2021 00:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lrCCf-0006ry-V2 for bug-guix@gnu.org; Thu, 10 Jun 2021 00:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs Resent-From: Chris Marusich Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 10 Jun 2021 04:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48941 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 48941@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162329888726359 (code B ref -1); Thu, 10 Jun 2021 04:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jun 2021 04:21:27 +0000 Received: from localhost ([127.0.0.1]:35083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrCC7-0006r5-0N for submit@debbugs.gnu.org; Thu, 10 Jun 2021 00:21:27 -0400 Received: from lists.gnu.org ([209.51.188.17]:42386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrCC2-0006qt-5A for submit@debbugs.gnu.org; Thu, 10 Jun 2021 00:21:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lrCC1-0001G8-Ug for bug-guix@gnu.org; Thu, 10 Jun 2021 00:21:21 -0400 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:33645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lrCC0-00043T-AM for bug-guix@gnu.org; Thu, 10 Jun 2021 00:21:21 -0400 Received: by mail-pg1-x531.google.com with SMTP id e20so9579672pgg.0 for ; Wed, 09 Jun 2021 21:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version; bh=5S8ta3DBjdtMEjQ9gHMt25pJVgSpxmKD4Mklrk25GVA=; b=vEGBoVjHRnen+tE0un4oQ151G8gJe6UGHsttb4trFK8TxZDcQiL84QSWXaqK0gRTPl /JObl15v51MURWeoUPQwtc18ms4MjU3NmeXDi8kzj4DsdKDvEL7DjqoH/KgWy26vi8TI wZ9i/wmhBVAqvkyKZsFOhAsVdGuab5RP4/JqdWj4mvH2xAM0uF/mEP2OLfW3Ls+8+MLc 27IipOL3mr1p5/gLQlDMl+Giwc6RSR9a265e/XCc7d+tq6VUxIM4wzY0IWxeBstYkvKd KLclpOGyzkqiGg2VwiGtdiqLsgCSAH8lF6wQXktc/kgV+IOs1FfSpSh26d6ZjI9KpNJV OjAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=5S8ta3DBjdtMEjQ9gHMt25pJVgSpxmKD4Mklrk25GVA=; b=r1qa4R+pysURUsb5is9cB4VdFbB3DMrr6RyHyn+OnBYFNhk5dth0zvXTSi5jqBwdKm WTUOkxw9PdJ77Z9Watxsu76q4n4YZPbIC5749wbGnx1B/wblGS4qasGXHShVbEQJ9Y2n BHUlFiBxb+8nTlIfRGDRa75V7ylo9HgnxdOXCWezvlbQJshQArD8UnVPDCD9rAseRkW9 KIYFQhqfgXZ0DQUye4XuiJcxhLjXrJ1ZjRILRkqVeTXG39VI/A2qjOWFDO/wgXyc7zIk /Qyj3203JVqOSucRdu/Z9gnyKvc5cLzxjA/FLrplKfrmERFcJq5UUkSumihipxc1YLAA 8bvg== X-Gm-Message-State: AOAM530DljE526mdsG/3lMO9CJRcXX4g1GMNyyRt7MnYQIk8Rj/Jt7cJ iKegu9x2yDFn1Vvvn/E/eKqh1AH44m2/ZA== X-Google-Smtp-Source: ABdhPJyExNoAWbmWmIUphCUB/f8TDg3MpKnKww+DvDqi4bXMP1mlwoeLndN/1YB5im4n7UPWIPnL5A== X-Received: by 2002:a65:6256:: with SMTP id q22mr3064166pgv.391.1623298877750; Wed, 09 Jun 2021 21:21:17 -0700 (PDT) Received: from garuda-lan ([2601:601:9d01:3f90::b043]) by smtp.gmail.com with ESMTPSA id z24sm950307pfk.149.2021.06.09.21.21.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Jun 2021 21:21:16 -0700 (PDT) From: Chris Marusich Date: Wed, 09 Jun 2021 21:21:09 -0700 Message-ID: <871r9atkne.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=cmmarusich@gmail.com; helo=mail-pg1-x531.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623298934; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=5S8ta3DBjdtMEjQ9gHMt25pJVgSpxmKD4Mklrk25GVA=; b=K57ci1utCFlhFabI8k2ETyW8pdnVW4vwYgfB/IYp2xOeyNq9ljyXFYzsXfQXMRWxwqbz8Z BK2qfzHi55izWZcBc6mw/1xrd4lReh45ycodzEC/O/n9ulCOYx2Q55shzra0yZD6I06Rji WR1LZ+GxHpxPBo3v7uqnHv27ix5g21ScSZiLCpxxUd31RhQVQDAP7KuB1fv/hkD6pEGA2A FW5mUdeTMNoRG1jfK8pePs3a2DYzC8WDtL8/oAFFuosO2IGzZ1vbXULwHRYhevhn4mnD2j +FwSUWKD6h4U//Gxey12eH0c9DhW7fMxNOB9U8sVNqrX9qosq1VB783adntYNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623298934; a=rsa-sha256; cv=none; b=d9TF9KiP07A0UamM1r6Vv00xFmRR44BwmvCFmvrnrFXkm3XZMn9fn2C1OveukKkmKNkXon 8BKh7DIc9CJOxImD94Mp0zQGs5OrSX7XwW7ff1u3CUpv+X+HWNGhbIsEkkzckcOXZQn7Jj VqPv0csUjvg+htjOvsSh7XyD26qF12JS3LyYopYOVryN5d8CZhfZx+Jcyk4e04cCM8zSQX Mc7aF3yU2EJvirXg4ceFGaD3QJfu4sRaFa6hKezn3n8DzpjJVtYMomecZwwInXYYKhmz4H C9Ev2NmEKaB3u+19vgSVZy5yQgL/+Frxg3lKP2mVSDPLSrPDvyZb1OtyQ0cevg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=vEGBoVjH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=vEGBoVjH; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B17CF1AAEB X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: GKWdLcArEeLT --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, On powerpc64le-linux, using Guix commit 7692295f970a292a3f3db31fc21d05efd97dcb25 on top of Debian unstable, the libfaketime package fails to build because one of its tests hangs. It appears to hang during the CLOCK_MONOTONIC test: =2D-8<---------------cut here---------------start------------->8--- Running the test program with no faked time specified $ LD_PRELOAD=3D../src/libfaketime.so.1 ./timetest pthread_cond_timedwait: CLOCK_REALTIME test (Intentionally sleeping 1 second...) pthread_cond_timedwait: CLOCK_MONOTONIC test (Intentionally sleeping 1 second..., see docs about CLOCK_MONOTONIC test) =2D-8<---------------cut here---------------end--------------->8--- There is no output after that last line. It just sits there. I left it there for about 24 hours, and it didn't make any progress. I tried with =2D-cores=3D1, too, but the problem still occurred. Therefore, it probably isn't a multithreading issue. On x86_64-linux Guix, using the aforementioned commit, on top of Fedora 32, the tests pass and the libfaketime builds successfully. Therefore, this is probably a platform-specific issue. The README file for libfaketime says: > CLOCK_MONOTONIC test: Running "make test" performs a series of tests > after successful compilation of the libfaketime library. On some > platforms, the "CLOCK_MONOTONIC test" will apparently hang > forever. If and only if this happens on your platform, add the CFLAG > -DFORCE_MONOTONIC_FIX to src/Makefile and recompile libfaketime. Do > not set FORCE_MONOTONIC_FIX on platforms where the test does not > hang. In fact, we do set this in Guix, via the (apparently undocumented) FAKETIME_COMPILE_CFLAGS environment variable: =2D-8<---------------cut here---------------start------------->8--- (define-public libfaketime (package (name "libfaketime") ... (arguments '(#:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (setenv "CC" "gcc") (setenv "PREFIX" out) ;; XXX: Without this flag, the CLOCK_REALTIME test = hangs ;; indefinitely. See README.packagers for more inf= ormation. ;; Try removing this for future versions of libfake= time. (setenv "FAKETIME_COMPILE_CFLAGS" "-DFORCE_MONOTONI= C_FIX") ... =2D-8<---------------cut here---------------end--------------->8--- In spite of this, the test hangs on powerpc64le-linux. Out of curiosity, I tried NOT setting FAKETIME_COMPILE_CFLAGS, but the behavior was the same: it still got stuck forever on powerpc64le-linux. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmDBkzUVHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkad5Q8P+O5nwDGGIaykQbkLx9iBNKpdUYL+ 53P7x6/OBOkcA8YhZcuXtVjYekYNVi97uXhqndVc9G/SB/gKWhioVa/KCcewq1Kd 3hzQTOM5LZjuREc2GotEViNGYOhwPHqfwbOmQLlBptj3OmBjUlA7XUkUvlTk2oE9 oYwYckPi9fLoRB6OdTQFqrTS1aOQvePEp0qJYOvoyRvrjDmsKdhkc2ny1HaG12kj QkY0EUvhX96FadKeilcjMmWNXt1AEvSa7Op2e0J4zwPHioiryCGHuCrCdViWgTnd aY00vyvRbd+LNmXgBda1ZwjDZ8uzi+D1yAsNGlWmiyCR0aQL+ZqIqnbhwzyJ8m1O ymHKBHf2njZM37HcOyAkjUwft++Ikcm4trLU3jynFRoevXFnf6xc8pMlELnp19YB 64pi1kqxS9OU/alWEH4lkQNoBfQmH+FSSoELIyuN4t/VswouO2qXuv682tMKO+4Y 21muJDBIJe4Bupp8gE+0ox+DgMHg3ck4wmfJeqSAUBkWJpDNJeGKnJpHaTPehNbY kFYiRqBoo62Ft9MOyjsujE8b5fDZF+njpNE+Hvf8IehWOtzpOA03YWW4ToD4C/vS VryYK8FEt9FH6q3l8hBFPkjrD3kdL9s2HyBxjP7OP1EewCEBwd1CGgQTRpdUPTLJ fWFtWgLzeADkDeQ= =75A5 -----END PGP SIGNATURE----- --=-=-=--