From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2HM2GY2YWl8vCwAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 21:20:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 2CMIFY2YWl/iRwAA1q6Kng (envelope-from ) for ; Thu, 10 Sep 2020 21:20:13 +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 12FE89402A2 for ; Thu, 10 Sep 2020 21:20:13 +0000 (UTC) Received: from localhost ([::1]:45914 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGTzH-0005Oa-RZ for larch@yhetil.org; Thu, 10 Sep 2020 17:20:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGTz9-0005O3-El for bug-guix@gnu.org; Thu, 10 Sep 2020 17:20:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGTz9-0003t4-52 for bug-guix@gnu.org; Thu, 10 Sep 2020 17:20:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kGTz9-0006qO-15 for bug-guix@gnu.org; Thu, 10 Sep 2020 17:20:03 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43321: programs depending on libcap 2.31 are crashing (including ntpd, chrony, and potentially others) Resent-From: Jesse Dowell Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 10 Sep 2020 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43321 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43321@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159977280026280 (code B ref -1); Thu, 10 Sep 2020 21:20:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2020 21:20:00 +0000 Received: from localhost ([127.0.0.1]:41447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGTz5-0006ph-Lf for submit@debbugs.gnu.org; Thu, 10 Sep 2020 17:20:00 -0400 Received: from lists.gnu.org ([209.51.188.17]:59820) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGTmh-0004Ns-Dd for submit@debbugs.gnu.org; Thu, 10 Sep 2020 17:07:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGTmh-0000L3-9p for bug-guix@gnu.org; Thu, 10 Sep 2020 17:07:11 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:33503) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGTmf-0002J1-5P for bug-guix@gnu.org; Thu, 10 Sep 2020 17:07:10 -0400 Received: by mail-lj1-x233.google.com with SMTP id k25so10050417ljk.0 for ; Thu, 10 Sep 2020 14:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rj9PxiBuDPjbMCLrz5CFAh4TdMKYIUCM69aoaqJWRsQ=; b=gVyTGAXtOdbKs3zCBPYY0bmhORWyTuaiLlJrmzbdcRYZPGpAm+O+sCJUCl0AkBapRN Uar2U77qbWDV1SJhG+fbOI4yESXNQdNdThV2RUpuEXvb0NrlxjNriGmnjOMNe6U6cf9V LcatVBT2R7+Ajb8nhAorUgs7iRp1gGGPwOK1pM4eVe7sTHief4gRIUI0LEovvjCdmams TFDsCvzK7L1e2fcLsW2QZVEyHK3MWgH1FGYRxjIgkENN0utu5qblGd8CtIdR4ZMcKp4T nJzFPoK9WLjcbi4SHKWx4G+HW+2D+IQXSMUdqT5x08V/M3pvw9yhzj9/5Er96lCeeBaQ wIWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rj9PxiBuDPjbMCLrz5CFAh4TdMKYIUCM69aoaqJWRsQ=; b=tjL49ZG54pkJFh4NHErTxbWHtrjWSTbDg69c+jjAG658gD1NNVxYLXAEdMx6EuZCNB VPgEhFMTDDj8xuDPrH8yfv/aJskGii1llU5gg8vFoznJffCvXv191I/rw2d3zOp6/sF7 MAwEkGryY3kWK4rQbr2urTYyP2mUBcqS0l+V9YOvrIGbjTVCPtHwXolpgWH1uOnSfxB1 paG4hiWwjHNF2x2Q5J9EuNfQO9m2VehdMjWU6ljHneGWQ5LUMixPnsF8hNdyBgix6Pd/ sa7uGLIC1022bNRiEIf/nHEzqRSn/SLlwIiIUt3+pod7KBRcKbXDFEGXpK4oHvAP76ew nOCQ== X-Gm-Message-State: AOAM530q1fWnlVvKddDMtHwmBo0sX1NnUrp7/zmKogV+UsFtnc0qcbwZ Ab6M1hlF8WCw65WRwVmIhNx9kNADqphRC14ovph9NvNvhv0= X-Google-Smtp-Source: ABdhPJzL1qRxXACvgy/arGHpVHT9m+pilhw3A754iKcywWTRqcGsu5bRfhPVAGXs/MzV3esiGqJz6i/MKgLzjMeg4qU= X-Received: by 2002:a2e:6819:: with SMTP id c25mr5708894lja.187.1599772026772; Thu, 10 Sep 2020 14:07:06 -0700 (PDT) MIME-Version: 1.0 From: Jesse Dowell Date: Thu, 10 Sep 2020 17:06:55 -0400 Message-ID: Content-Type: multipart/alternative; boundary="000000000000609f2a05aefbf3ba" Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=jesse.dowell@gmail.com; helo=mail-lj1-x233.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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, HTML_MESSAGE=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.7 (/) X-Mailman-Approved-At: Thu, 10 Sep 2020 17:19:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=gVyTGAXt; 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-Spam-Score: 1.59 X-TUID: Hh+QS12Q6PHU --000000000000609f2a05aefbf3ba Content-Type: text/plain; charset="UTF-8" Hello, I am experiencing issues with ntpd crashing after a recent `guix pull` and `guix system reconfigure`. Messages like the following can be found in /var/log/messages.... --8<---------------cut here---------------start------------->8--- Sep 9 10:04:06 localhost ntpd[10104]: Listen normally on 10 wlp2s0 [fda3:bae9:8e85:0:1421:58a2:ada:1923]:123 Sep 9 10:04:06 localhost vmunix: [13620.607643] traps: ntpd[10104] general protection fault ip:7fc1baa34207 sp:7ffd6b331f80 error:0 in libcap.so.2.31[7fc1baa33000+3000] Sep 9 10:04:06 localhost ntpd[10104]: Listen normally on 11 wlp2s0 [2601:582:300:88a:58f1:d50e:9b9a:37d7]:123 Sep 9 10:04:06 localhost ntpd[10104]: Listen normally on 12 wlp2s0 [fe80::487a:7283:64fd:9e25%6]:123 Sep 9 10:04:06 localhost ntpd[10104]: Listen normally on 13 tun0 [fe80::7672:ef25:4507:33e7%7]:123 Sep 9 10:04:06 localhost ntpd[10104]: Listening on routing socket on fd #30 for interface updates Sep 9 10:04:06 localhost ntpd[10104]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized Sep 9 10:04:06 localhost ntpd[10104]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized Sep 9 10:04:06 localhost shepherd[1]: Service ntpd has been disabled. Sep 9 10:04:06 localhost shepherd[1]: (Respawning too fast.) --8<---------------cut here---------------end--------------->8--- At first I thought this was ntpd specific so I tried switching to chronyd and experienced the same problem. --8<---------------cut here---------------start------------->8--- Sep 9 14:41:56 localhost shepherd[1]: Service chronyd has been started. Sep 9 14:41:56 localhost chronyd[26478]: chronyd version 3.5.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SECHASH +IPV6 -DEBUG) Sep 9 14:41:56 localhost vmunix: [30290.527369] traps: chronyd[26478] general protection fault ip:7f1653729207 sp:7fffc9161900 error:0 in libcap.so.2.31[7f1653728000+3000] Sep 9 14:41:56 localhost shepherd[1]: Respawning chronyd. --8<---------------cut here---------------end--------------->8--- I was able to fix the issue by rebuilding chronyd with the libcap/next package. To give more context - I'm using guix master and am using the latest 5.8 kernel. I'm wondering if it might be something related to recent kernel upgrades but I haven't tried reverting to a previous kernel. Is there a plan to go ahead and perform the switch described in the source code for gnu/packages/linux.scm? --8<---------------cut here---------------start------------->8--- ;; libcap 2.31 causes problems for 'fakeroot', so provide this newer variant. ;; To be merged with libcap on the next rebuild cycle. (define-public libcap/next (package (inherit libcap) (version "2.34") (source (origin (method url-fetch) (uri (string-append "mirror://kernel.org/linux/libs/security/linux-privs/" "libcap2/libcap-" version ".tar.xz")) (sha256 (base32 "048n1gy2p48vl9hkrr9wymfxxcpwj2aslz2bv79nhl4m2lhd9kdf")))))) --8<---------------cut here---------------end--------------->8--- Best, Jesse --000000000000609f2a05aefbf3ba Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am experiencing issues with nt= pd crashing after a recent `guix pull` and `guix system reconfigure`. Messa= ges like the following can be found in /var/log/messages....

=
--8<---------------cut here---------------start-------------&= gt;8---
Sep =C2=A09 10:04:06 localhost ntpd[10104]: Listen normally on 1= 0 wlp2s0 [fda3:bae9:8e85:0:1421:58a2:ada:1923]:123
Sep =C2=A09 10:04:06 = localhost vmunix: [13620.607643] traps: ntpd[10104] general protection faul= t ip:7fc1baa34207 sp:7ffd6b331f80 error:0 in libcap.so.2.31[7fc1baa33000+30= 00]
Sep =C2=A09 10:04:06 localhost ntpd[10104]: Listen normally on 11 wl= p2s0 [2601:582:300:88a:58f1:d50e:9b9a:37d7]:123
Sep =C2=A09 10:04:06 loc= alhost ntpd[10104]: Listen normally on 12 wlp2s0 [fe80::487a:7283:64fd:9e25= %6]:123
Sep =C2=A09 10:04:06 localhost ntpd[10104]: Listen normally on 1= 3 tun0 [fe80::7672:ef25:4507:33e7%7]:123
Sep =C2=A09 10:04:06 localhost = ntpd[10104]: Listening on routing socket on fd #30 for interface updatesSep =C2=A09 10:04:06 localhost ntpd[10104]: kernel reports TIME_ERROR: 0x4= 1: Clock Unsynchronized
Sep =C2=A09 10:04:06 localhost ntpd[10104]: kern= el reports TIME_ERROR: 0x41: Clock Unsynchronized
Sep =C2=A09 10:04:06 l= ocalhost shepherd[1]: Service ntpd has been disabled.
Sep =C2=A09 10:04= :06 localhost shepherd[1]: =C2=A0 (Respawning too fast.)
--8<-------= --------cut here---------------end--------------->8---
At first I thought this was ntpd specific so I tried switching = to chronyd and experienced the same problem.

--8&l= t;---------------cut here---------------start------------->8---
Sep = =C2=A09 14:41:56 localhost shepherd[1]: Service chronyd has been started. <= br>Sep =C2=A09 14:41:56 localhost chronyd[26478]: chronyd version 3.5.1 sta= rting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER -SIGND +ASYNCDNS +SE= CHASH +IPV6 -DEBUG)
Sep =C2=A09 14:41:56 localhost vmunix: [30290.527369= ] traps: chronyd[26478] general protection fault ip:7f1653729207 sp:7fffc91= 61900 error:0 in libcap.so.2.31[7f1653728000+3000]
Sep =C2=A09 14:41:56 = localhost shepherd[1]: Respawning chronyd.
--8<---------------cut he= re---------------end--------------->8---

I = was able to fix the issue by rebuilding chronyd with the libcap/next packag= e.

To give more context - I'm using guix maste= r and am using the latest 5.8 kernel. I'm wondering if it might be some= thing related to recent kernel upgrades but I haven't tried reverting t= o a previous kernel.

Is there a plan to go ahead a= nd perform the switch described in the source code for gnu/packages/linux.s= cm?=C2=A0

--8<---------------cut here----------= -----start------------->8---
;; libcap 2.31 causes problems for '= fakeroot', so provide this newer variant.
;; To be merged with libca= p on the next rebuild cycle.
(define-public libcap/next
=C2=A0 (packa= ge
=C2=A0 =C2=A0 (inherit libcap)
=C2=A0 =C2=A0 (version "2.34&q= uot;)
=C2=A0 =C2=A0 (source (origin
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 (method url-fetch)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 (uri (string-append
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "mirror://kernel.org/linux/libs/security/linux-pri= vs/"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 "libcap2/libcap-" version ".tar.xz"))
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (sha256
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(base32
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "048n1gy2p48vl9hkrr9wymfxxcpwj2aslz= 2bv79nhl4m2lhd9kdf"))))))
--8<---------------cut here-----------= ----end--------------->8---

Best,
Jesse
--000000000000609f2a05aefbf3ba--