From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +HcIAJwvoWLUYAEAbAwnHQ (envelope-from ) for ; Thu, 09 Jun 2022 01:24:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sOgMAJwvoWI4jwAA9RJhRA (envelope-from ) for ; Thu, 09 Jun 2022 01:24:12 +0200 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 9532264B2 for ; Thu, 9 Jun 2022 01:24:11 +0200 (CEST) Received: from localhost ([::1]:53480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nz522-0007El-OB for larch@yhetil.org; Wed, 08 Jun 2022 19:24:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nz51u-0007Eb-MC for bug-guix@gnu.org; Wed, 08 Jun 2022 19:24:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50652) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nz51u-0006qr-CA for bug-guix@gnu.org; Wed, 08 Jun 2022 19:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nz51u-0004uT-7w for bug-guix@gnu.org; Wed, 08 Jun 2022 19:24:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#53225: shepherd freezes if wireguard is started with dns config enabled Resent-From: Nathan Dehnel Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 08 Jun 2022 23:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53225 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 53225@debbugs.gnu.org Received: via spool by 53225-submit@debbugs.gnu.org id=B53225.165473063318857 (code B ref 53225); Wed, 08 Jun 2022 23:24:02 +0000 Received: (at 53225) by debbugs.gnu.org; 8 Jun 2022 23:23:53 +0000 Received: from localhost ([127.0.0.1]:44549 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nz51k-0004u5-LU for submit@debbugs.gnu.org; Wed, 08 Jun 2022 19:23:52 -0400 Received: from mail-yb1-f176.google.com ([209.85.219.176]:47086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nz51f-0004tp-Pa for 53225@debbugs.gnu.org; Wed, 08 Jun 2022 19:23:51 -0400 Received: by mail-yb1-f176.google.com with SMTP id r82so38971903ybc.13 for <53225@debbugs.gnu.org>; Wed, 08 Jun 2022 16:23:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=DPkq2vRJ/gby3dslzjip3bcSwRFZyjt6jcozQqyDuFk=; b=gdY8L9ibUUWozgGcX19XeQYnrVOBRorMONVRACbGmKW2180BukOuPWkqanCLYX5SYL qCSo5gBXI/IW/K8ZGn3xg9Y4UA4MAKG6qKZuVKEgCvCR6tXcE6kIIC3/+pekpT6cbH+p rssiZJsm168vVk0IAvKU+0H+6x2GvBOds5vsLuYDHx8iF9d6ziSZN7/AluWtcKBDi50I xqzypX2/S4h7YVJvFeTxzzUUsqCIlLjK2NgfVtwckdXe7TmlYwSm7jL6A/F3nIg6ucBN P1iHNWYnu1n1pwW69bYRlNbvk6OVivocxYhKU2PVdXtKUvvaZ+aNZIBFZ+L3wxrvu3XG TGFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=DPkq2vRJ/gby3dslzjip3bcSwRFZyjt6jcozQqyDuFk=; b=GiU1uBDdI5CMpFAyzvHsgG2Iid93VUavvbVfAT3Y1vExFiSMIPXzdaRvDqK3S9NyvN HfAh89twNYXqBp1QfLTRW6kgdXCj+3W77+iT2hUR2glFkt7/p8E0WgEr952NcaLq2GU0 esWgINv0HY7Q6F/iagD9qqqhUQgxjIWI86VXDeHb9Jj+HOZn3f560/k5gObchov4CY6M drHFhrBynY5IZGWBSU3e9JG80EOp5L9rRWTovz0JfHiOxwJ0ii2ki3/RSXCrH7CHKlwc KprZOIowEdjM19UUvR95AW+7FDVzfnrCAVsLH3oCeBmgoCVEbCohbAWj1JYo61Fr+RkJ xc6w== X-Gm-Message-State: AOAM5309YJYlWB0HyI3t+EzL9kXBAXAl51b/r2nfb+jc89aV0FTZYj0i tUbI+T0zDenTZLN3tgqd5VtMVDqCbJhJ9wJDyIFVFAhpOiXyAA== X-Google-Smtp-Source: ABdhPJxP4fO6gLRqzt/Q92kPnCoZcor74an1mjWDILdDXwZpGigDrlMFtJHXjVry6mU9Xb0ux56aJ9U9guiNZkef2PE= X-Received: by 2002:a25:b00b:0:b0:664:2460:e244 with SMTP id q11-20020a25b00b000000b006642460e244mr2530522ybf.19.1654730622171; Wed, 08 Jun 2022 16:23:42 -0700 (PDT) MIME-Version: 1.0 References: <87pmov7jrr.fsf@gnu.org> <87y23eo4lj.fsf@gnu.org> <87o7zbp4lr.fsf@gnu.org> In-Reply-To: <87o7zbp4lr.fsf@gnu.org> From: Nathan Dehnel Date: Wed, 8 Jun 2022 18:23:31 -0500 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654730651; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=DPkq2vRJ/gby3dslzjip3bcSwRFZyjt6jcozQqyDuFk=; b=ZiaqYkl51pT4Fjp7Q2mZ58RFmHiSmv1/MOI/i0uFoTRas6GZeY/1PRUG+4pYMPz5VLke9f NtdaXNifOInnBQ+Ed64BRSzwuTz/V49jCWuZCOe385MIax9HLuMbEh3vGTU085t39OkLb7 mETHjUirceyaznVfzb1rjxp7PzCjovvYkLhteqZEwECorqB+oq1KvC2+2eS35Ip32zWsoU 6SeU0pq9KPkHscz9y8cF9TQXns4kdSMlZ2ANotZ2gjpOYTSlWY5vzYM4cljg+/veik27cQ bVMSyyC+jgGZWEE+urJ25pd4WGd/ajy60TNgFozPaRiH2YAWYdX7HjE153cqrA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654730651; a=rsa-sha256; cv=none; b=cfNwNrpwAxaToZ9hIcGNkSlPp/Kt84ao7UzKl1sv7VwmJupYgh8ZQK+PGPhSkZQVOPR+Tk 9rHb5SlSdjYgeyJjD3iuKM+wMrvxaZoQaSiE1AdK7axkoIqSUKJSk+KC3mY3jvv7i6Copa pAOrZNfoJZ6K3pfEx9RksWCryecTSTpPt+6L4UQnrBPOBzi+tyWzToNpOzTpGIffaLDq4h rIffv0XJ3yC6r/DC/e/B6IVbLQwE4rJFbAYzo7l2Pe3THg2AOhkIzW8dPHpdbpV9yVKHOG DekxrfYdOWZ+aroTIKqCBiYlh7suQZoxmoBbgBRRvkdKqeb1egrW2Nd9SQiQMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gdY8L9ib; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 6.00 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=gdY8L9ib; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 9532264B2 X-Spam-Score: 6.00 X-Migadu-Scanner: scn1.migadu.com X-TUID: VWA2dgDIwaxB >Could you be more specific? Specifically, could you share >/var/log/messages for the parts related to Wireguard? root@guixtest ~# cat /var/log/messages | grep -i wireguardJun 8 18:20:07 localhost vmunix: [ 6.330271] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information. Jun 8 18:20:07 localhost vmunix: [ 6.330276] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld . All Rights Reserved. >However, the standard >service constructors/destructors no longer block, and shepherd can serve >multiple clients concurrently. I don't know, I guess wireguard uses "non-standard" constructors. On Thu, Jun 2, 2022 at 8:38 AM Ludovic Court=C3=A8s wrote: > > Hi Nathan, > > Nathan Dehnel skribis: > > > Just tested and Shepherd 0.9 does not fix this issue. > > Could you be more specific? Specifically, could you share > /var/log/messages for the parts related to Wireguard? > > > On Mon, Jan 17, 2022 at 7:48 AM Ludovic Court=C3=A8s wro= te: > > [...] > > >> One command sent to shepherd by =E2=80=98herd =E2=80=A6=E2=80=99 must = have completed before the > >> next one is processed. > >> > >> You can experience it like this: > >> > >> sudo herd eval root '(sleep 3)' & echo status && sudo herd status > >> > >> Here the first =E2=80=98herd=E2=80=99 command has shepherd block for 3= seconds, so the > >> second =E2=80=98herd=E2=80=99 command won=E2=80=99t print anything unt= il 3 seconds have passed. > > This is actually still the case with 0.9, because here we=E2=80=99re call= ing > (@ (guile) sleep), which blocks. So=E2=80=A6 not a good example. > > The short story is: it is still possible to write code that blocks > shepherd, as with the =E2=80=98sleep=E2=80=99 example above. However, th= e standard > service constructors/destructors no longer block, and shepherd can serve > multiple clients concurrently. > > Ludo=E2=80=99.