From unknown Fri Jun 13 06:09:35 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48941 <48941@debbugs.gnu.org> To: bug#48941 <48941@debbugs.gnu.org> Subject: Status: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs Reply-To: bug#48941 <48941@debbugs.gnu.org> Date: Fri, 13 Jun 2025 13:09:35 +0000 retitle 48941 [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs reassign 48941 guix submitter 48941 Chris Marusich severity 48941 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 00:21:27 2021 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 To: bug-guix@gnu.org Subject: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs 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-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= 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----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 11 22:56:22 2021 Received: (at 48941) by debbugs.gnu.org; 12 Jun 2021 02:56:22 +0000 Received: from localhost ([127.0.0.1]:40139 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrtos-00013d-9H for submit@debbugs.gnu.org; Fri, 11 Jun 2021 22:56:22 -0400 Received: from mail-pl1-f169.google.com ([209.85.214.169]:35721) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lrtop-00013P-AO for 48941@debbugs.gnu.org; Fri, 11 Jun 2021 22:56:21 -0400 Received: by mail-pl1-f169.google.com with SMTP id x19so3755408pln.2 for <48941@debbugs.gnu.org>; Fri, 11 Jun 2021 19:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version; bh=Q5wqZCp/rr7wLQ69IbYF5A3ryNG1ynqJFxmj5IWymBw=; b=hwzQVCYfiUd7KFWa90dRkTf1TTVqWJUEba3Dw8BxJ92Vn3z2VdWwnOZK+ON8QexDh0 7C3uHYAl1SbE9HU2PzlhpQCNr+V5DtZL7Ob3arnaW5W1pJY8XXl6WMCk2Qyh3Dprl1W1 ebB3Q8YxASuUE54cwvOUunBL5iaee9XkYA2l+ac6SFbc2ao4oU1gZjD8oibdleGFK7so X0wufyMvA6z1/VegwppxB1P+rajNRJl4WrHGNBwO741RIc2KJ/1GyUcAzmFei6Nprxhz eVKwMMkNR9oyfyCLbT7x9wPNOuwUv/Ovp77EireT11yjPL6OGV8T+sW4AxjDgfeJnNFv XADA== 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:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Q5wqZCp/rr7wLQ69IbYF5A3ryNG1ynqJFxmj5IWymBw=; b=Bh+hJeXCNbNF8M2nP362hzdYJOUslQvsCzpxORdSlAZsZ1f12aFyuzQSRBX10ZCa8B 26WWh+vBA9geP9ymHx9Z1yZ85VOJnCocJTaF7afx4On2nwiqvRD9j+n9j1aC00aVFcn0 +f8MiR1rGvgyrHKHQ6fRBFtzHCgZeGKG6HudJFSqqOB+14gxQqcUgT8JGqO3UUotoVI+ kTNHzQ6FLxMLYdXJxXYYiM2DdHOU/5nZ4wlYUOaUfCRtHc4dZTnvoTFsO05SAMF7TX8l 3fRGnnKvB005db0t6mMmKUqKAEQ16nZtUrIfChyBVz95On0jKqNHVqxJM6ZB4OV76QJU 4acA== X-Gm-Message-State: AOAM532NSaZ/d5kWhSNv2E5/awrW5ijkOz4pKAs4oYWu57hqopbCBhmt T6wWag7IP4VAesP3sD100q0f+mwWzzgHew== X-Google-Smtp-Source: ABdhPJy3W82OnBCNU2hQf3AQ2+/gUar/GoneRKBMU+mkmyp/LCTtYn6937bw2XtetglJsZ0YHOm2sQ== X-Received: by 2002:a17:90a:ad98:: with SMTP id s24mr12374764pjq.211.1623466572900; Fri, 11 Jun 2021 19:56:12 -0700 (PDT) Received: from garuda-lan ([2601:601:9d01:3f90::b043]) by smtp.gmail.com with ESMTPSA id p7sm6590418pfb.45.2021.06.11.19.56.11 for <48941@debbugs.gnu.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Jun 2021 19:56:11 -0700 (PDT) From: Chris Marusich To: 48941@debbugs.gnu.org Subject: Re: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs References: <871r9atkne.fsf@gmail.com> Date: Fri, 11 Jun 2021 19:56:08 -0700 In-Reply-To: <871r9atkne.fsf@gmail.com> (Chris Marusich's message of "Wed, 09 Jun 2021 21:21:09 -0700") Message-ID: <87wnqzssdz.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" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48941 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Since I'm not sure how to proceed, I've reported this upstream and asked for help: https://github.com/wolfcw/libfaketime/issues/335 =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmDEIkgVHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkadNacP/1DrC2awRDnUCdPKj2QfVnWUqDq/ M9P5++oDYTi/cVQLo7EyBb5OLaMajnO4hNhBrafqGTc6Q/udoji1X/7dJfxzdre0 Uzzurk5qzyEPYDo7fw/gtx6Ok5UZ4Dc/zuOe4zBsBbAkw8yaD9ONnBRgXZl8AGaQ mFPYtjr2+cCZHLOUWVV+9B3g5FLvnsjcX3IfKjzvCT9YF1Y0fEuwerHTrhBsQEJb 6QVCLzqObThhjakAIlVozqVQFUbrp6o6hLPl1pT44Z5VuDWyIWBf1q73JonV5d3q 1dKv3isuVYK8IhiAWV/dWM3lWt/PZ4X9rI4317zANthNATFBjOzfpCo9U2AGRW/O WM2G1FhfVET+1PUXAz5RxcGN9p2t/IQmMOBtBnB7dvARg6dNYEFnCowtL6BESOao oHkeFWB4oQPJMgb+j8Roa4KtjaCuFQ6z15Mk1ZdIP9iStHVjD1JGlXNQORkaXX3y OqzByvkUrfmYmzpthk77yTxHr8m1RG665VU4b4TOXfvEOjjqjR9Goz9a1RgETM6U XZasaL5wZguftXAAA7/GkptPO1mE5wZxRKw4cvKjlJ/vE4xnBpLJNMdGvOAjIqfT v0F9MtHcbfJgloRLAI+R9Y3k4A4+wgLUE+486pC50ySA9ZjGF/ffuSM85hbPJQws Yp1WZAp4X1TRxrOc =aG6a -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 01:08:45 2021 Received: (at 48941) by debbugs.gnu.org; 21 Jul 2021 05:08:45 +0000 Received: from localhost ([127.0.0.1]:35937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m64TM-00026n-OT for submit@debbugs.gnu.org; Wed, 21 Jul 2021 01:08:45 -0400 Received: from mail-pl1-f181.google.com ([209.85.214.181]:37752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m64TL-00026Y-Dj for 48941@debbugs.gnu.org; Wed, 21 Jul 2021 01:08:44 -0400 Received: by mail-pl1-f181.google.com with SMTP id y3so390971plp.4 for <48941@debbugs.gnu.org>; Tue, 20 Jul 2021 22:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:user-agent:mime-version; bh=Tvi0/ZigNKMceviRsWxJygrOiom1a0+Y3ZFmUSVKvqw=; b=pQnyZ69sS+psoQEWtnNC6SmdewrU4PyM4BTcGQuQ79Axu2zjcjD98mD07EDFczWcOv LLWOABwCIrccMC7QydGYj+MiiNnKCyDsV++WhxTw4XCbBBbm52ouk6N6S22katq1cQnI JHmA6+v2x0ntxmS9fImNmTGitkvmEqIaBotigq3Pym5ambJ8yqVv69Bk2DFPrgZU0TYh n67LNyBDVZe0beN4tTeNF58BCO177xllLf0DwD06/DA7OH74Miz7bDzNQec/dKvQOGDF altxutNqaTw8iPZVU8DXRuc1R+a6J2FQ/GBRKEwBTCS3kWJP0kSkj8/7fkPEkfg6WLXO 6NFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :mime-version; bh=Tvi0/ZigNKMceviRsWxJygrOiom1a0+Y3ZFmUSVKvqw=; b=mxT5s9MZj++h0q81aQgnAcTM2SxWIeiPj9D3RLDmCYn2ssdSb9CPeu2eTlLgJ4KP6G YI/YGKEcpvWbtLuI6atZ28/12tyN0S573mS1TF89lnpxx751/sHmO/qMJUxop4C/g3Hw SKQbwmdxNS0Cuu1PQue6xRUBEeVuxHEwtDqWTJ3SHN4qQ5nD1u5jjBLW6QMUTPg0Pd/R fUQqorAW9O1FnRbof7aovhi9b9IdtGyRKPThN40rqB85J2Mp86sjwgAed0vXAT1AIGUe K4AyT0rrwmteNItFZWJblqaqh2EDcg8QCHlOPGtx+WelCweJA/OFB4aIfp3hB83me5mr 6pvg== X-Gm-Message-State: AOAM533ngqTFVRG965hG4KEWasMEECD5/GVgujZtc8jSvONgdHcWIf6A pwn5yY+h9wXqgVBC0HflqB8= X-Google-Smtp-Source: ABdhPJznvtZFvIckR305jmQWWzs7sCB7iu2XNUpPa1/o37qcoIw/Qng/azbhB6b1xw1346EMCfTnhQ== X-Received: by 2002:a17:90a:43c3:: with SMTP id r61mr2024714pjg.11.1626844117471; Tue, 20 Jul 2021 22:08:37 -0700 (PDT) Received: from garuda-lan ([2601:601:9d01:3f90::b00d]) by smtp.gmail.com with ESMTPSA id j21sm20973101pjz.26.2021.07.20.22.08.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 22:08:36 -0700 (PDT) From: Chris Marusich To: 48941@debbugs.gnu.org Subject: Re: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs Date: Tue, 20 Jul 2021 22:08:31 -0700 Message-ID: <874kco8d9s.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" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48941 Cc: guix-devel@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I need a little help figuring out how to use gdb in Guix for bug 48941: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48941 Here's the situation. A libfaketime test hangs forever. Upstream suggested I debug it. I'm trying to, but gdb errors out. What am I doing wrong? It's probably something simple, but I can't see what. I'll describe what I've done. First, I started a build like so: ./pre-inst-env guix build --keep-failed libfaketime While the problematic test hung, I found the PID of the test and killed it. This caused the build to fail, leaving the build environment for me to play around in. I entered a pure environment that contains all the things I need to debug the test (gcc 10.3.0 is currently the default gcc on core-updates): ./pre-inst-env guix environment --pure libfaketime --ad-hoc gcc-toolchain= @10.3.0 gcc-toolchain@10.3.0:debug gdb In the pure environment, I confirmed I can build and run the hanging test via the following commands (I added -g in order to get debug symbols): make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix test OK, so I can trigger the hang. Great! Next step, fire up GDB: =2D-8<---------------cut here---------------start------------->8--- [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source/te= st $ gdb ./timetest GNU gdb (GDB) 10.2 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64le-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./timetest... (gdb)=20 =2D-8<---------------cut here---------------end--------------->8--- The debug symbols provided by gcc-toolchain@10.3.0:debug are under $GUIX_ENVIRONMENT/lib/debug. This is the value of GUIX_ENVIRONMENT: =2D-8<---------------cut here---------------start------------->8--- $ echo $GUIX_ENVIRONMENT /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-profile =2D-8<---------------cut here---------------end--------------->8--- By the way, this directory corresponds to glibc 2.33: =2D-8<---------------cut here---------------start------------->8--- $ realpath /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-profile/lib/debug /gnu/store/8akrlhc25d7xvi85gzvginw0vdi4zyg4-glibc-2.33-debug/lib/debug =2D-8<---------------cut here---------------end--------------->8--- Let's tell GDB where to find those debug symbols: (gdb) set debug-file-directory /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq= 6-profile/lib/debug Let's also tell GDB to set the environment variables that upstream recommended when running the test program: =2D-8<---------------cut here---------------start------------->8--- (gdb) set environment LD_PRELOAD=3D../src/libfaketime.so.1 (gdb) set environment FAKETIME=3D-10d (gdb) set environment NO_FAKE_STAT=3D1 =2D-8<---------------cut here---------------end--------------->8--- Now run it: =2D-8<---------------cut here---------------start------------->8--- (gdb) run Starting program: /tmp/guix-build-libfaketime-0.9.9.drv-0/source/test/timet= est=20 /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.33' not fou= nd (required by ../src/libfaketime.so.1) /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.32' not fou= nd (required by /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/lib/= libpthread.so.0) /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.32' not fou= nd (required by /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/lib/= libdl.so.2) /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.32' not fou= nd (required by /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/lib/= librt.so.1) During startup program exited with code 1. (gdb)=20 =2D-8<---------------cut here---------------end--------------->8--- Huh? What happened? I've double checked that I'm using gdb provided by Guix: =2D-8<---------------cut here---------------start------------->8--- $ type -P gdb /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-profile/bin/gdb =2D-8<---------------cut here---------------end--------------->8--- I also tried running gdb by invoking it via that absolute file name, and it still errored out in the same way. I'm operating in a --pure environment. All the tools are provided by Guix. I'm surprised that /bin/sh and /lib are even mentioned above. If anyone can provide any advice, I'd be very grateful. I'm not sure how to proceed. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmD3q88VHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkadEpsQAIJLVTNnKRcnkie5ZVnnElRq9ARJ Vbe9LOeTunNHTSNe/EvpxXyBRu3jkSF5nK5BaiA49WpdtL3y2R+V+jv8cHbupg+D jwXxzyIZXcb+IazfctTysyCM/3ocVK/f0ENdajzNbCyEF0327CsTpruYxVIhGcyl xKN1a/mPbRJlWq6ay59nr3CL19CoUIOpRnzZdi114Y4RhOX1o1ULSkhO6g988Q8C wde1iBbK6SffzMKimk5ChjOk1SzfaPef+IZL8PDl9B4poPGjiXgBLef3AOrvobFq z5zx6jNfi2tMMO0dDoSUDNjcnkfZHooyu3VM+McpIqa5fTs0cdK1qYn+EP9vzltk EPIcd37AgQuKPQFB15w67zKPLlk7BFfQ3V/WHM2Hft9u0+Uw53mSum5XugJEUVFz hb3CS22Th84fGhUHRHfldfA9jWpfdFA2xlqPOxH0+XO+81II+/GrBtrKaKq8BXEL YagM4LkOiDF6yYN6f2ItkRtJiCadAg+ws5vbfmFN77bmbP2m5HZb6sHhBntY4R2M lUcG9g/1JjGo3Gm/cPo+isCjAC7QZOknCdlPP75X0+fD7+DQLzcCHdl4t3YnZxbF UcJfXf05SRiOyC8YaK0oj/jvlivDYgWcX6CttVW1USGb/7cTIlyjp2lIwbPSIXOq axD/y2F4IwjJ78GR =ef4c -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 21 10:31:35 2021 Received: (at 48941) by debbugs.gnu.org; 21 Jul 2021 14:31:35 +0000 Received: from localhost ([127.0.0.1]:38202 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6DG3-0004pr-CD for submit@debbugs.gnu.org; Wed, 21 Jul 2021 10:31:35 -0400 Received: from mail-40141.protonmail.ch ([185.70.40.141]:17124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6DG1-0004pd-1t for 48941@debbugs.gnu.org; Wed, 21 Jul 2021 10:31:34 -0400 Date: Wed, 21 Jul 2021 14:31:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1626877886; bh=VOkQHaf4r1W4KUUDzvAjnnzl1VDczy3C6up3zbTaRNc=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=sNwc7eMO+DqAxPXXyG7LKv5rPtsdrbKJevJqZfHRSB4CHKPbXeHw+xtVLVybBhXWE omnFaso5AEk0VH0YDOkm38e7nRZplw49pZBWUhVm2EwCGIeuz4EMbEnc8XLLb90WVY qdFDfbSey7oVqAMAM8AXuu9PQtm7PJGbOQ96zD4w= To: Chris Marusich From: Kaelyn Subject: Re: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs Message-ID: In-Reply-To: <874kco8d9s.fsf@gmail.com> References: <874kco8d9s.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=3.8 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,URIBL_BLACK shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, July 21st, 2021 at 1:08 AM, Chris Marusich wrote: Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [185.70.40.141 listed in wl.mailspike.net] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (kaelyn.alexi[at]protonmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: libc.so] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 48941 Cc: guix-devel@gnu.org, 48941@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Kaelyn Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Hi, =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, July 21st, 2021 at 1:08 AM, Chris Marusich wrote: > Hi, > > I need a little help figuring out how to use gdb in Guix for bug 48941: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D48941 > > Here's the situation. A libfaketime test hangs forever. Upstream > > suggested I debug it. I'm trying to, but gdb errors out. What am I > > doing wrong? It's probably something simple, but I can't see what. > > I'll describe what I've done. First, I started a build like so: > > ./pre-inst-env guix build --keep-failed libfaketime > > While the problematic test hung, I found the PID of the test and killed > > it. This caused the build to fail, leaving the build environment for me > > to play around in. > > I entered a pure environment that contains all the things I need to > > debug the test (gcc 10.3.0 is currently the default gcc on > > core-updates): > > ./pre-inst-env guix environment --pure libfaketime --ad-hoc gcc-toolchain= @10.3.0 gcc-toolchain@10.3.0:debug gdb > > In the pure environment, I confirmed I can build and run the hanging > > test via the following commands (I added -g in order to get debug > > symbols): > > make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix > > make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix test > > OK, so I can trigger the hang. Great! Next step, fire up GDB: > > --8<---------------cut here---------------start------------->8--- > > [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source/= test > > $ gdb ./timetest > > GNU gdb (GDB) 10.2 > > Copyright (C) 2021 Free Software Foundation, Inc. > > License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.ht= ml > > This is free software: you are free to change and redistribute it. > > There is NO WARRANTY, to the extent permitted by law. > > Type "show copying" and "show warranty" for details. > > This GDB was configured as "powerpc64le-unknown-linux-gnu". > > Type "show configuration" for configuration details. > > For bug reporting instructions, please see: > > https://www.gnu.org/software/gdb/bugs/. > > Find the GDB manual and other documentation resources online at: > > http://www.gnu.org/software/gdb/documentation/. > > For help, type "help". > > Type "apropos word" to search for commands related to "word"... > > Reading symbols from ./timetest... > > (gdb) > > --8<---------------cut here---------------end--------------->8--- > > The debug symbols provided by gcc-toolchain@10.3.0:debug are under > > $GUIX_ENVIRONMENT/lib/debug. This is the value of GUIX_ENVIRONMENT: > > --8<---------------cut here---------------start------------->8--- > > $ echo $GUIX_ENVIRONMENT > > /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-profile > > --8<---------------cut here---------------end--------------->8--- > > By the way, this directory corresponds to glibc 2.33: > > --8<---------------cut here---------------start------------->8--- > > $ realpath /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-profile/lib/debug > > /gnu/store/8akrlhc25d7xvi85gzvginw0vdi4zyg4-glibc-2.33-debug/lib/debug > > --8<---------------cut here---------------end--------------->8--- > > Let's tell GDB where to find those debug symbols: > > (gdb) set debug-file-directory /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq= 6-profile/lib/debug > > Let's also tell GDB to set the environment variables that upstream > > recommended when running the test program: > > --8<---------------cut here---------------start------------->8--- > > (gdb) set environment LD_PRELOAD=3D../src/libfaketime.so.1 > > (gdb) set environment FAKETIME=3D-10d > > (gdb) set environment NO_FAKE_STAT=3D1 > > --8<---------------cut here---------------end--------------->8--- > > Now run it: > > --8<---------------cut here---------------start------------->8--- > > (gdb) run > > Starting program: /tmp/guix-build-libfaketime-0.9.9.drv-0/source/test/tim= etest > > /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.33' not f= ound (required by ../src/libfaketime.so.1) /bin/sh: /lib/powerpc64le-linux-= gnu/libc.so.6: version` GLIBC_2.32' not found (required by /gnu/store/kmblb= ljiygayhlc5gb02an9imhy90ws9-glibc-2.33/lib/libpthread.so.0) Are you using Guix on a foreign distro? This line looks like your distro's = normal libc.so was being used and it was from glibc-2.31 or older. The x86-= 64 systems I have that run pure Guix don't have any /lib*/ directories. You= might try running gdb with LD_LIBRARY_PATH=3D/gnu/store/kmblbljiygayhlc5gb= 02an9imhy90ws9-glibc-2.33/lib to have the Guix libc.so picked up before the= other one. HTH Cheers, Kaelyn > > /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.32' not f= ound (required by /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/li= b/libdl.so.2) /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version` GLIBC= _2.32' not found (required by /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-g= libc-2.33/lib/librt.so.1) > > During startup program exited with code 1. > > (gdb) > > --8<---------------cut here---------------end--------------->8--- > > Huh? What happened? I've double checked that I'm using gdb provided by > > Guix: > > --8<---------------cut here---------------start------------->8--- > > $ type -P gdb > > /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-profile/bin/gdb > > --8<---------------cut here---------------end--------------->8--- > > I also tried running gdb by invoking it via that absolute file name, and > > it still errored out in the same way. > > I'm operating in a --pure environment. All the tools are provided by > > Guix. I'm surprised that /bin/sh and /lib are even mentioned above. > > If anyone can provide any advice, I'd be very grateful. I'm not sure > > how to proceed. > > -------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ---------------------------------------------------------------------------= ------------------------------------------ > > Chris From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 22 14:36:04 2021 Received: (at 48941) by debbugs.gnu.org; 22 Jul 2021 18:36:04 +0000 Received: from localhost ([127.0.0.1]:41592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6dYB-0004Qh-TR for submit@debbugs.gnu.org; Thu, 22 Jul 2021 14:36:04 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:31236) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6dYA-0004QD-9a for 48941@debbugs.gnu.org; Thu, 22 Jul 2021 14:36:03 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id C9F6740411; Thu, 22 Jul 2021 20:35:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:date:subject:subject :from:from:received:received:received; s=dkim20160331; t= 1626978955; x=1628793356; bh=QNr6tv87419eur8jyVttwaXDkklHtyoRXKo GigfDSjQ=; b=CrkGUngOB1YfZgiAr9eRo39+wnI8bF/00LAMSftoEJf9UFhop7U 5cNKMtrhGFzOsCong52XFX0xU4J+cibTa5ysqnPDilrfay5Lyc6FpfUcZiQbCMF2 A5lfD0D/k67ZfYD9GilpRyDV6OligVHyYo4UHHlzI3zJamFUApClQ965DpnGmHv7 QVP/nSEFdpxwSFtWuzkAAZSnG1t93iPe27PemGdKQBC8h/HQ0p9x4Qz/pqjoB7tG /Er6Apm1lelTM72ab9RUUplNkddr2UVdQVoAjqmJNxYZ/wdnJmXK18WDrVDqGZlk KF6sdfm6Lfuc70AdvZFz8QKe/C8PNZUYzOxsn9xiyWnVg0ph+Uusb8Q3WJY/E8VF qI7TXgXUXeiKogaFBsHzsOoULfZ2IY6rkG3qRoY/HGlK6h2NhDGJ3nKJs+lGe33e tlb8jCNZDsj/fJcklfQlEDoVKXCk4IxZ8SLSXeYI12cWJBWw4iCtuloW04hnVwo8 TR8Gzi2VktwDZyw8FL5ft3Jht73bEpEGQ5wNc2jo8HAz/tq7FnKtE7m2iKgOLTa9 okjaLWOQPF92Ws18E33Q1u5wgcw3I9P8Rim0g61QvsJanc9pU9nO+NpPbvr4HTCL jUBtDp5Y6J9LBs8DAjblWTz9Jt3OjTqzbpEHUxVFHkhn3J+UTuMSdAOQ= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -0.2 X-Spam-Level: X-Spam-Status: No, score=-0.2 tagged_above=-10 required=5 tests=[BAYES_00=-1.9, URIBL_BLACK=1.7] autolearn=no autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XcpJmEFYlAjI; Thu, 22 Jul 2021 20:35:55 +0200 (CEST) Received: from int-mx002.mykolab.com (unknown [10.9.13.2]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id DAE80403CB; Thu, 22 Jul 2021 20:35:53 +0200 (CEST) Received: from ext-subm001.mykolab.com (unknown [10.9.6.1]) by int-mx002.mykolab.com (Postfix) with ESMTPS id DFF0A39BE; Thu, 22 Jul 2021 20:35:50 +0200 (CEST) From: Thiago Jung Bauermann To: Chris Marusich , Kaelyn Subject: Re: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs Date: Thu, 22 Jul 2021 15:35:36 -0300 Message-ID: <8085623.jmDMpusFku@popigai> In-Reply-To: References: <874kco8d9s.fsf@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, Em quarta-feira, 21 de julho de 2021, às 11:31:25 -03, Kaelyn escreveu: > Hi, > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ > > On Wednesday, July 21st, 2021 at 1:08 AM, Chris Maru [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: libc.so] X-Debbugs-Envelope-To: 48941 Cc: guix-devel@gnu.org, 48941@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) Hello, Em quarta-feira, 21 de julho de 2021, =C3=A0s 11:31:25 -03, Kaelyn escreveu: > Hi, >=20 > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 >=20 > On Wednesday, July 21st, 2021 at 1:08 AM, Chris Marusich=20 wrote: > > Now run it: > >=20 > > --8<---------------cut here---------------start------------->8--- > >=20 > > (gdb) run > >=20 > > Starting program: > > /tmp/guix-build-libfaketime-0.9.9.drv-0/source/test/timetest > >=20 > > /bin/sh: /lib/powerpc64le-linux-gnu/libc.so.6: version `GLIBC_2.33' not > > found (required by ../src/libfaketime.so.1) /bin/sh: > > /lib/powerpc64le-linux-gnu/libc.so.6: version` GLIBC_2.32' not found > > (required by > > /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/lib/libpthread. > > so.0) > Are you using Guix on a foreign distro? This line looks like your > distro's normal libc.so was being used and it was from glibc-2.31 or > older. GDB uses the shell to launch the debugged program. That is probably where =E2=80=98/bin/sh=E2=80=99 is entering the picture here. I don=E2=80=99t kno= w whether that has any=20 relation to your foreign distro=E2=80=99s libc being used. The output of `help run` in GDB mentions that the shell is specified by the= =20 =E2=80=98$SHELL=E2=80=99 environment variable. Perhaps you have that set? One way to see if this is the problem is to use the GDB command `set startup-with-shell off` to make it launch the debugged program without= =20 the shell. > The x86-64 systems I have that run pure Guix don't have any > /lib*/ directories. You might try running gdb with > LD_LIBRARY_PATH=3D/gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/l > ib to have the Guix libc.so picked up before the other one. HTH Another alternative worth trying is the =E2=80=98--container=E2=80=99 optio= n to =E2=80=98guix=20 environment=E2=80=99, to completely isolate GDB from the foreign distro. Yo= u might=20 want to add the coreutils package to the =E2=80=98--ad-hoc=E2=80=99 list so= that you can=20 get amenities such as an ls command. :-) =2D-=20 Thanks, Thiago From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 23 01:34:56 2021 Received: (at 48941) by debbugs.gnu.org; 23 Jul 2021 05:34:56 +0000 Received: from localhost ([127.0.0.1]:42135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6npo-0001QT-7c for submit@debbugs.gnu.org; Fri, 23 Jul 2021 01:34:56 -0400 Received: from mail-pl1-f176.google.com ([209.85.214.176]:42782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6npk-0001QE-Q2 for 48941@debbugs.gnu.org; Fri, 23 Jul 2021 01:34:54 -0400 Received: by mail-pl1-f176.google.com with SMTP id i1so1886739plr.9 for <48941@debbugs.gnu.org>; Thu, 22 Jul 2021 22:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=6bVyGagHeNhGt3bObTWCSOw74B89PyjQhNFAbW1Wmy8=; b=OSA2SOO0XVYn4p/nh7rTOgSxDaBz+Bad78dU0+XuAFDbJSK2lCT+gEcMq+mBzyRzbR tOKWUUcCqzc8XLRNZk17+Q/OXoPxgbCTdElCTzc6+YWLb3LKAicDIZs21E25qK8+xaXp 68nn6avF16u8NaQZq47WYunBK0rzKtx0MLoFxSz9EQRgcU4JXONsoUnhLxeWtiZumWMm c2/0PmKrpq7Sxo891V++JPiw3dBnDW8n6w+fjaSyCNmBCK/ZvHGpyGs1aQ9GGBpNh1v5 SDJRnfYrTzhQAlNi8SiUxiUBf0l+hMBo2lb/kGjBoJeQjALNbPKAlFfsoqG4mw6mbSrS aJsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=6bVyGagHeNhGt3bObTWCSOw74B89PyjQhNFAbW1Wmy8=; b=eTDveMiTpfuTiPDLwDHoJvUN3T0kkDXIFKOtqgCN6wQOKiaEjkyatFFqLMG2MTmq9d Wf19Y4AGWsDb8DPJzW9mmP14X+u+xnGt0J96Pr6bV6PtLn6G7N9qKtRrcjWOuxkbqGlH StJer2Jx8sQP6RDpV4cyvWCVWneR/VeYlbRxF1omdUuB9s8agR8YA/W9pekOVpljO36P xUTVhmeqz7M5mJqt2nRYyeU8fjPX5sRHfg8w8r4Q/gZ/dI8X5C6EmMnszrZ89PQAtMy4 Nf8l2E1InKYrW8vmXz3oBj0rcF8srMqAhN2HaBukicw7hZklXZpXSKLX/eQy/8hrTk3Y vFkQ== X-Gm-Message-State: AOAM531w/XL4CcB2o9thILhYlwjrX3Ts2xywYnzI3ny4LgUklbOa3zqt N78Sh+6Fhm42L9lSmVfLG42hI5O18iNs4w== X-Google-Smtp-Source: ABdhPJxOh5fMalroWf7wlX2TI2KfcIMlRkamupZ7CprRdMh0yJU9lQrGzGE2SatCJ5hf4D3QqPyFhg== X-Received: by 2002:a65:61ab:: with SMTP id i11mr3382252pgv.168.1627018486453; Thu, 22 Jul 2021 22:34:46 -0700 (PDT) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id z23sm4705571pjq.57.2021.07.22.22.34.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 22:34:45 -0700 (PDT) From: Chris Marusich To: Kaelyn Subject: Re: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs References: <874kco8d9s.fsf@gmail.com> Date: Thu, 22 Jul 2021 22:34:41 -0700 In-Reply-To: (Kaelyn's message of "Wed, 21 Jul 2021 14:31:25 +0000") Message-ID: <87v9511tla.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" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi Kaelyn, Thank you for the reply. Kaelyn writes: Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (cmmarusich[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.214.176 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.214.176 listed in wl.mailspike.net] 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: libc.so] X-Debbugs-Envelope-To: 48941 Cc: guix-devel@gnu.org, 48941@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi Kaelyn, Thank you for the reply. Kaelyn writes: > Are you using Guix on a foreign distro? This line looks like your > distro's normal libc.so was being used and it was from glibc-2.31 or > older. The x86-64 systems I have that run pure Guix don't have any > /lib*/ directories. You might try running gdb with > LD_LIBRARY_PATH=3D/gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33/= lib > to have the Guix libc.so picked up before the other one. HTH Yes, I'm using Guix on a foreign distro. It isn't clear to me what is trying to access the /lib directories. That's what I'm trying to figure out. In a --pure environment using only Guix-built tools, one would expect that I would not have to set LD_LIBRARY_PATH. However, if I can't figure it out, that's another trick I can try. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmD6VPEVHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkad1/oQAJ4J8jNcBJnglAMTV/7lEGsFT8AS Vg4wKqfuXZbOyu5YF2pfzkO684G9yAVBghh/WjDnS139ToWJakv6WNwSMfZz7mS/ cxuFuCj7qksbXrR/xrJ1qKvn3u7f0jmqiiGP8TtYoV8xBlRiMlpt/cJ/2H7lYyKI bQEUd5hkZ2UagZdTzTzPfoacFv0/DCyetUxpJjr2vsVk4ZVWXnU1pF36R8phK9ob ku5mU910gPgjXBnUOEoAxxIW0NYXQe+BQfBhl75HD69YOlsA5gfmtiBDXHQ67fXy ne/3ppoXFtOhyog77EHMFbrbXiQZsBOqUO8WpAH0fF74QqMXg5DG1fPvAKjr+xw2 qjpJglQHTaYlsyIX4+2cPjiDIil5EM+1siBhEnKRfEQhltbIXbQ4BzUc3OOHx4am pLGBQ2puN7YGklekI63Thh/A0V0gNJGWqFJA3Vu6hK3D0BJPC8krl/sflDxGqDst 5tCb3lfrXBbUuhJwRM6mj/7RFBk/CrEseojWLotPHsETcD0PTZhDV6ZJ48Un4sUs DF9fnfV5dRuFWG4LNKB34CJeYyj9GJDxIKLCriwb1cQdtFm3KaTTtj++HmnsbW6G 3wbfLNNXV+sBZgZy8/MCyaBse6r9xUUEkjPIjuMFKKZomcTek1OfYpK+Za17DNK8 tk87vF+hq9alazyb =3ciu -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 23 02:02:06 2021 Received: (at 48941) by debbugs.gnu.org; 23 Jul 2021 06:02:06 +0000 Received: from localhost ([127.0.0.1]:42147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6oFx-00022N-NW for submit@debbugs.gnu.org; Fri, 23 Jul 2021 02:02:05 -0400 Received: from mail-pj1-f52.google.com ([209.85.216.52]:43977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m6oFt-000228-K9 for 48941@debbugs.gnu.org; Fri, 23 Jul 2021 02:01:57 -0400 Received: by mail-pj1-f52.google.com with SMTP id m2-20020a17090a71c2b0290175cf22899cso2409756pjs.2 for <48941@debbugs.gnu.org>; Thu, 22 Jul 2021 23:01:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=rbocEtNaoFHnfL1K2JB76JBiCOPncP4uiQ2FMkJsRRU=; b=Pr8YbFJh5fwUe4cN3mgm6y64F2C/Zi8YLne70Y7fTAOcVrFkQ6XBpaLVaHV+qxfbep kd8u0oc6N1qslf8wGpDNKJcR7nUhC8ldKLMfo0dZsZEQ2l3gUwnf+N3ljHO+yEltwDnO VeKaehhmQXLFdL7w3GqVPMAwpGr6Q60DxO3j2l4q7xRjG5pl+BJGhsPOk8HgXNKjS6oG p/Xa5MgR6JkXfPXLO7ONn2qYIGNBxyB3ADclMAbRtSYc3/rYJlTIItv2jFBKqho6zru6 8uodJc/gszRhavMZ1/56TopY6lmMdvpXiRfT8CCm9d+KiTgaIoy/s+/6KLUpBDvUDi6c dFnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=rbocEtNaoFHnfL1K2JB76JBiCOPncP4uiQ2FMkJsRRU=; b=aFtKE9U6GJ6JqGR+BuSetuVTN/70HBU1AHVwvFI5dCMyrK1sMJ5itZ/nXxLbaxY9YD joPXEohem6ZARLwL0VWjevwofTWE1pJ4K476vmN+me2UXLnWrd1bClu8kyyHc8JNePrG jrlqrVtcd/pZoMDOugQHYrOsu+F5Xv3M4xdXDqom94s8Ynb0YnKKdVTOJqbUEDotg7YN VQuGxiprW5Au7jm3EWoZHCJCwqQhUhC6uhwWy1B7x4SK5CVtYTWNWBtIhPCqvOk4OrJ/ vMoq8Bk/LiEFzBYZ4z7TVlFcMT3GkMB+YKlEVf5ltILIHuX5tjo1RQvn7q3mNUI7PCLg tsSw== X-Gm-Message-State: AOAM532avAKKNPp4EFH/ezwMT9Xspzts0VXJnXZ5Av0cHH7n38Iz/s/3 /gi8O8Tnj1u+2OhyLRXnEPtSLfff/PwfKQ== X-Google-Smtp-Source: ABdhPJzBJJES8X9RS4bkUCm1/YDmdtsXNUVVZp899wxnwJvTywPvZAVMYbKv0am33GlfC1zgXGLv/Q== X-Received: by 2002:a17:90a:d305:: with SMTP id p5mr11966038pju.96.1627020106850; Thu, 22 Jul 2021 23:01:46 -0700 (PDT) Received: from garuda-lan (c-24-18-44-142.hsd1.wa.comcast.net. [24.18.44.142]) by smtp.gmail.com with ESMTPSA id y5sm32088640pfn.87.2021.07.22.23.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 23:01:46 -0700 (PDT) From: Chris Marusich To: Thiago Jung Bauermann Subject: Re: bug#48941: [powerpc64le-linux] libfaketime CLOCK_MONOTONIC test hangs References: <874kco8d9s.fsf@gmail.com> <8085623.jmDMpusFku@popigai> Date: Thu, 22 Jul 2021 23:01:42 -0700 In-Reply-To: <8085623.jmDMpusFku@popigai> (Thiago Jung Bauermann's message of "Thu, 22 Jul 2021 15:35:36 -0300") Message-ID: <87r1fp1sc9.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" X-Spam-Score: 1.7 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Thiago Jung Bauermann writes: > GDB uses the shell to launch the debugged program. That is probably where > ‘/bin/sh’ is entering the picture here. I don’t know whether that has any > relation to your foreign distro’s libc [...] Content analysis details: (1.7 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (cmmarusich[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.216.52 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.216.52 listed in list.dnswl.org] 1.7 URIBL_BLACK Contains an URL listed in the URIBL blacklist [URIs: libc.so] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: 48941 Cc: guix-devel@gnu.org, Kaelyn , 48941@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.7 (/) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thiago Jung Bauermann writes: > GDB uses the shell to launch the debugged program. That is probably where > =E2=80=98/bin/sh=E2=80=99 is entering the picture here. I don=E2=80=99t k= now whether that has any=20 > relation to your foreign distro=E2=80=99s libc being used. > > The output of `help run` in GDB mentions that the shell is specified by t= he=20 > =E2=80=98$SHELL=E2=80=99 environment variable. Perhaps you have that set? > > One way to see if this is the problem is to use the GDB command > `set startup-with-shell off` to make it launch the debugged program witho= ut=20 > the shell. Thank you for this suggestion. When I ran "set startup-with-shell off", gdb successfully launched the program. It seems something in the Guix-built software is trying to run /bin/sh. Perhaps there is stray hard-coded path in GDB or something that needs to be fixed... In any case, I'm glad I can continue debugging! >> The x86-64 systems I have that run pure Guix don't have any >> /lib*/ directories. You might try running gdb with >> LD_LIBRARY_PATH=3D/gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-glibc-2.33= /l >> ib to have the Guix libc.so picked up before the other one. HTH > > Another alternative worth trying is the =E2=80=98--container=E2=80=99 opt= ion to =E2=80=98guix=20 > environment=E2=80=99, to completely isolate GDB from the foreign distro. = You might=20 > want to add the coreutils package to the =E2=80=98--ad-hoc=E2=80=99 list = so that you can=20 > get amenities such as an ls command. :-) When I tried "--container", gdb successfully launched the program. So it's another viable work-around for the gdb issue. As for the actual libfaketime bug, when it hung I pressed Control+C, and here's the backtrace at that point: =2D-8<---------------cut here---------------start------------->8--- (gdb) backtrace #0 0x00007ffff7eccba0 in __futex_abstimed_wait_common64 (futex_word=3D0x7f= fff7aaf1c0, expected=3D, clockid=3D, abstime= =3D0x0, private=3D, cancel=3D) at ../sysdeps/= nptl/futex-internal.c:74 #1 0x00007ffff7eb9934 in __pthread_clockjoin_ex (threadid=3D14073734856318= 4, thread_return=3D0x7fffffffe2d0, clockid=3D, abstime=3D, block=3D) at pthread_join_common.c:102 #2 0x00007ffff7eb9684 in __pthread_join (threadid=3D, threa= d_return=3D) at pthread_join.c:24 #3 0x0000000010001784 in main (argc=3D1, argv=3D0x7fffffffe718) at timetes= t.c:146 =2D-8<---------------cut here---------------end--------------->8--- Here's the entire session in which I built the problematic test and debugged it, including a full back trace with local variables: =2D-8<---------------cut here---------------start------------->8--- [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0 $ ~/guix-core-updates/pre-inst-env guix environment libfaketime --ad-hoc gc= c-toolchain@10.3.0:debug gdb [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0 $ cd source/ [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source $ make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix clean make -C src clean make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source= /src' make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/= src' make -C test clean make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source= /test' make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/= test' [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source $ make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix make -C src all make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source= /src' gcc -o libfaketime.o -c -std=3Dgnu99 -Wall -Wextra -Werror -Wno-nonnull-com= pare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DF= AKE_INTERNAL_CALLS -fPIC -DPREFIX=3D'"'/tmp/guix-build-libfaketime-0.9.9.dr= v-0/myprefix'"' -DLIBDIRNAME=3D'"'/lib/faketime'"' -DFORCE_MONOTONIC_FIX -g= libfaketime.c gcc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1 -lpthread -Wl,--versi= on-script=3Dlibfaketime.map -shared libfaketime.o -ldl -lm -lrt gcc -o libfaketimeMT.o -c -std=3Dgnu99 -Wall -Wextra -Werror -Wno-nonnull-c= ompare -DFAKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -= DFAKE_INTERNAL_CALLS -fPIC -DPREFIX=3D'"'/tmp/guix-build-libfaketime-0.9.9.= drv-0/myprefix'"' -DLIBDIRNAME=3D'"'/lib/faketime'"' -DFORCE_MONOTONIC_FIX = -g -DPTHREAD_SINGLETHREADED_TIME libfaketime.c gcc -o libfaketimeMT.so.1 -Wl,-soname,libfaketimeMT.so.1 -lpthread -Wl,--v= ersion-script=3Dlibfaketime.map -shared libfaketimeMT.o -ldl -lm -lrt gcc -o faketime -std=3Dgnu99 -Wall -Wextra -Werror -Wno-nonnull-compare -DF= AKE_PTHREAD -DFAKE_STAT -DFAKE_UTIME -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTE= RNAL_CALLS -fPIC -DPREFIX=3D'"'/tmp/guix-build-libfaketime-0.9.9.drv-0/mypr= efix'"' -DLIBDIRNAME=3D'"'/lib/faketime'"' -DFORCE_MONOTONIC_FIX -g faket= ime.c -lpthread -Wl,--version-script=3Dlibfaketime.map -lrt make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/= src' [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source $ make FAKETIME_COMPILE_CFLAGS=3D'-DFORCE_MONOTONIC_FIX -g' CC=3Dgcc PREFIX= =3D/tmp/guix-build-libfaketime-0.9.9.drv-0/myprefix test make -C src all make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source= /src' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source/= src' make -C test all make[1]: Entering directory '/tmp/guix-build-libfaketime-0.9.9.drv-0/source= /test' gcc -c -std=3Dgnu99 -Wall -DFAKE_STAT -Werror -Wextra -DFORCE_MONOTONIC_FIX= -g timetest.c gcc -o timetest timetest.o -lrt -lpthread ./testframe.sh functests # Begin Test Suites in functests # Begin functests/test_exclude_mono.sh # PLATFORM=3Dlinuxlike out=3D1763825.60556745 When not faking monotonic time, timestamps should be= different ref=3D1763826.62729077 - ok # functests/test_exclude_mono.sh summary: 1 succeeded, 0 failed # End functests/test_exclude_mono.sh - OK # Begin functests/test_null.sh out=3D0 () ref=3D1627019232 - ok # functests/test_null.sh summary: 1 succeeded, 0 failed # End functests/test_null.sh - OK # Begin functests/test_true.sh # functests/test_true.sh summary: 1 succeeded, 0 failed # End functests/test_true.sh - OK # Begin functests/test_walkone.sh # PLATFORM=3Dlinuxlike out=3D1 (secs since Epoch) - ok out=3D2 (secs since Epoch) - ok out=3D4 (secs since Epoch) - ok out=3D8 (secs since Epoch) - ok out=3D16 (secs since Epoch) - ok out=3D32 (secs since Epoch) - ok out=3D64 (secs since Epoch) - ok out=3D128 (secs since Epoch) - ok out=3D256 (secs since Epoch) - ok out=3D512 (secs since Epoch) - ok out=3D1024 (secs since Epoch) - ok out=3D2048 (secs since Epoch) - ok out=3D4096 (secs since Epoch) - ok out=3D8192 (secs since Epoch) - ok out=3D16384 (secs since Epoch) - ok out=3D32768 (secs since Epoch) - ok out=3D65536 (secs since Epoch) - ok out=3D131072 (secs since Epoch) - ok out=3D262144 (secs since Epoch) - ok out=3D524288 (secs since Epoch) - ok out=3D1048576 (secs since Epoch) - ok out=3D2097152 (secs since Epoch) - ok out=3D4194304 (secs since Epoch) - ok out=3D8388608 (secs since Epoch) - ok out=3D16777216 (secs since Epoch) - ok out=3D33554432 (secs since Epoch) - ok out=3D67108864 (secs since Epoch) - ok out=3D134217728 (secs since Epoch) - ok out=3D268435456 (secs since Epoch) - ok out=3D536870912 (secs since Epoch) - ok out=3D1073741824 (secs since Epoch) - ok # functests/test_walkone.sh summary: 31 succeeded, 0 failed # End functests/test_walkone.sh - OK # Test Suites summary: 4 succeeded, 0 failed # End Test Suites - OK 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) ^Cmake[1]: *** [Makefile:19: test] Interrupt make: *** [Makefile:11: test] Interrupt [130] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source $ cd test/ [0] [env] marusich@suzaku:/tmp/guix-build-libfaketime-0.9.9.drv-0/source/te= st $ gdb ./timetest GNU gdb (GDB) 10.2 Copyright (C) 2021 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64le-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./timetest... (gdb) set debug-file-directory /gnu/store/32fjhp30k34fh0g9f1gmgcj8pc5wldq6-= profile/lib/debug (gdb) add-auto-load-safe-path /gnu/store/kmblbljiygayhlc5gb02an9imhy90ws9-g= libc-2.33/lib/libthread_db-1.0.so (gdb) set environment LD_PRELOAD=3D../src/libfaketime.so.1 (gdb) set environment FAKETIME=3D-10d (gdb) set environment NO_FAKE_STAT=3D1 (gdb) set startup-with-shell off (gdb) run Starting program: /tmp/guix-build-libfaketime-0.9.9.drv-0/source/test/timet= est [Thread debugging using libthread_db enabled] Using host libthread_db library "/gnu/store/kmblbljiygayhlc5gb02an9imhy90ws= 9-glibc-2.33/lib/libthread_db.so.1". [New Thread 0x7ffff7aaf0f0 (LWP 2140545)] 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) ^C Thread 1 "timetest" received signal SIGINT, Interrupt. 0x00007ffff7eccba0 in __futex_abstimed_wait_common64 (futex_word=3D0x7ffff7= aaf1c0, expected=3D, clockid=3D, abstime=3D0x= 0, private=3D, cancel=3D) at ../sysdeps/nptl/= futex-internal.c:74 74 ../sysdeps/nptl/futex-internal.c: No such file or directory. (gdb) backtrace #0 0x00007ffff7eccba0 in __futex_abstimed_wait_common64 (futex_word=3D0x7f= fff7aaf1c0, expected=3D, clockid=3D, abstime= =3D0x0, private=3D, cancel=3D) at ../sysdeps/= nptl/futex-internal.c:74 #1 0x00007ffff7eb9934 in __pthread_clockjoin_ex (threadid=3D14073734856318= 4, thread_return=3D0x7fffffffe2d0, clockid=3D, abstime=3D, block=3D) at pthread_join_common.c:102 #2 0x00007ffff7eb9684 in __pthread_join (threadid=3D, threa= d_return=3D) at pthread_join.c:24 #3 0x0000000010001784 in main (argc=3D1, argv=3D0x7fffffffe718) at timetes= t.c:146 (gdb) backtrace -full #0 0x00007ffff7eccba0 in __futex_abstimed_wait_common64 (futex_word=3D0x7f= fff7aaf1c0, expected=3D, clockid=3D, abstime= =3D0x0, private=3D, cancel=3D) at ../sysdeps/= nptl/futex-internal.c:74 r4 =3D 265 r7 =3D 0 _arg5 =3D 0 _arg2 =3D r5 =3D 2140545 r8 =3D 4294967295 _arg6 =3D 4294967295 _arg3 =3D r0 =3D 221 r3 =3D -512 r6 =3D 0 _arg4 =3D _arg1 =3D sc_cancel_oldtype =3D 0 sc_ret =3D clockbit =3D err =3D op =3D #1 0x00007ffff7eb9934 in __pthread_clockjoin_ex (threadid=3D14073734856318= 4, thread_return=3D0x7fffffffe2d0, clockid=3D, abstime=3D, block=3D) at pthread_join_common.c:102 ret =3D _buffer =3D {__routine =3D 0x7ffff7eb97d0 , __arg =3D 0x7f= fff7aaf518, __canceltype =3D -6000, __prev =3D 0x0} tid =3D pd =3D 0x7ffff7aaf0f0 self =3D result =3D 0 pd_result =3D #2 0x00007ffff7eb9684 in __pthread_join (threadid=3D, threa= d_return=3D) at pthread_join.c:24 No locals. #3 0x0000000010001784 in main (argc=3D1, argv=3D0x7fffffffe718) at timetes= t.c:146 now =3D 140737488347536 tb =3D {time =3D 140737354082104, millitm =3D 1, timezone =3D 0, ds= tflag =3D 0} tv =3D {tv_sec =3D 140737354081200, tv_usec =3D 1} ts =3D {tv_sec =3D 140737354092312, tv_nsec =3D 0} timerid1 =3D 0x0 timerid2 =3D 0x7ffff7f313ca sev =3D {sigev_value =3D {sival_int =3D -134273224, sival_ptr =3D 0= x7ffff7ff2738}, sigev_signo =3D -1358151624, sigev_notify =3D 0, _sigev_un = =3D {_pad =3D {-7632, 32767, 1140867716, 32767, -134571396, 32767, -1342510= 08, 32767, -7888, 32767, -135299328, 32767}, _tid =3D -7632, _sigev_thread =3D {_funct= ion =3D 0x7fffffffe230, _attribute =3D 0x7fff44004284}}} its =3D {it_interval =3D {tv_sec =3D 140737488347536, tv_nsec =3D 1= 40737353288760}, it_value =3D {tv_sec =3D 140737488347512, tv_nsec =3D 7737= 577984389116719}} mask =3D {__val =3D {4294967297, 140737488347472, 1, 0, 1, 14073735= 4081200, 140737488347648, 0, 384, 140737353252608, 140737350926336, 1407373= 50298984, 140737354086848, 0, 4294967295, 7883960601630828079}} sa =3D {__sigaction_handler =3D {sa_handler =3D 0x31325f6d68735f65,= sa_sigaction =3D 0x31325f6d68735f65}, sa_mask =3D {__val =3D {215624265780= , 9, 0, 140737354076688, 0, 0, 0, 0, 0, 0, 1392, 140737353287368, 140737353= 293872, 140737353482696, 140737353288760, 140737353481312}}, sa_flags= =3D -134274128, sa_restorer =3D 0x7fffffffe2b0} buf =3D {st_dev =3D 140733797368452, st_ino =3D 140737353809984, st= _nlink =3D 140737354104320, st_mode =3D 4294959792, st_uid =3D 32767, st_gi= d =3D 4294959992, __pad2 =3D 32767, st_rdev =3D 268633376, st_size =3D 0, s= t_blksize =3D 0, st_blocks =3D 140737354076688, st_atim =3D {tv_sec =3D 1407374883= 47824, tv_nsec =3D 140737488348952}, st_mtim =3D {tv_sec =3D 1, tv_nsec =3D= 8}, st_ctim =3D {tv_sec =3D 0, tv_nsec =3D 140737352442432}, __glibc_reser= ved4 =3D 140737488347904, __glibc_reserved5 =3D 8, __glibc_reserved6 =3D 268442956} thread =3D 140737348563184 ret =3D 0x7fffffffe300 timer_getoverrun_timerid1 =3D -7816 timer_getoverrun_timerid2 =3D 32767 (gdb) =2D-8<---------------cut here---------------end--------------->8--- I'll forward this information to upstream and ask if they need more. I'll also let them know which version of the libraries (e.g., glibc) are being used, since they said it might help to know. =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAmD6W0YVHGNtbWFydXNp Y2hAZ21haWwuY29tAAoJEN1AmhXYIkaddo0P/1DiEtdNUywcLEnkKkAbfct+mqem q5xNmxqKGzGJIISlyQp2WoeWp9CL2XzeyEg4IrN3FvEP+2RPA8LYA4bD4LmE9/u1 6WSx1VRszBpfqTwKjQlp2Uyz6YxNkPG/dQsTz8mKEPVpeEk4WJL13QATbjrpKwdt WDq583gNyn9naZqJ1HtPhw3d4oEnFaIcLfi4KwGkiPCsLI2XVZAwttkdRQoEU5nw tvONCqzFMY8rVslrqwXHITH804jwip/sMMrLFcbvE2/nxTr/YhX7CHJ93BuPEfgk hCyi1T/foxiNXpFhjtjGa3dRTvW3IW/QExlG4WYSrE1bQ8gjWHTJgqb1aiY22ftY g8YavwUC+3C0Dqij5D9Z5nJVXR726S7QjuBC/4XhHNDkF8BmyhOQPQw7OeqHAAbO u31DALHaIdbLs0RUcWAHXW9BxVdEKqa2/dxn+KTlG4uCbf5zYuMlsckMLPsveZfm fnNv4avOF/sda1kcKWs0/1Co5Sq4O4bHIE+qBu9NZQLLFSzlQSxWuJmi2dHCQp+x JRNUlz9L8qS6VVMaerbiz5JSR3yeZmqsAm4JJ82aFEwJeaK/nAKG6/1VRhcx7npP LCsHI2dSJAbkLbV4Jui8Vwuz+61HUaepnrUxSlY5qrN3jwkHvWMFlPHTRY9P708F 2IpPqoGqRWpYUAIF =js9c -----END PGP SIGNATURE----- --=-=-=--