From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MPRTACIF52DenQAAgWs5BA (envelope-from ) for ; Thu, 08 Jul 2021 16:01:06 +0200 Received: from aspmx2.migadu.com ([2001:41d0:2:c151::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aNiRNyEF52DldwAAbx9fmQ (envelope-from ) for ; Thu, 08 Jul 2021 14:01:05 +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 aspmx2.migadu.com (Postfix) with ESMTPS id 5275B24B5F for ; Thu, 8 Jul 2021 16:01:05 +0200 (CEST) Received: from localhost ([::1]:37250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m1UaN-0001Td-VH for larch@yhetil.org; Thu, 08 Jul 2021 10:01:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59242) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m1UZO-0001Pq-Kb for bug-guix@gnu.org; Thu, 08 Jul 2021 10:00:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45523) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m1UZO-00071H-6d for bug-guix@gnu.org; Thu, 08 Jul 2021 10:00:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m1UZO-0006QN-4S for bug-guix@gnu.org; Thu, 08 Jul 2021 10:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48903: guix substitute: error: TLS error in procedure 'read_from_session_record_port': Error decoding the received TLS packet. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 08 Jul 2021 14:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48903 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 48903-submit@debbugs.gnu.org id=B48903.162575277324625 (code B ref 48903); Thu, 08 Jul 2021 14:00:01 +0000 Received: (at 48903) by debbugs.gnu.org; 8 Jul 2021 13:59:33 +0000 Received: from localhost ([127.0.0.1]:57069 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1UYv-0006P7-6l for submit@debbugs.gnu.org; Thu, 08 Jul 2021 09:59:33 -0400 Received: from mail-qk1-f177.google.com ([209.85.222.177]:33607) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m1UYs-0006Os-8P for 48903@debbugs.gnu.org; Thu, 08 Jul 2021 09:59:32 -0400 Received: by mail-qk1-f177.google.com with SMTP id 14so5758377qkh.0 for <48903@debbugs.gnu.org>; Thu, 08 Jul 2021 06:59:30 -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=nuveo/qWOYuufgNWkW5tgIosQZkW1EnQFhZAFm95jic=; b=Nl5qV67i0Odukorb3ipILiEz0n2zKfok/v+yX7AKM8MPt0NGRyoz5xMPfR8iDvYBdB OLpu8gOSz/cq87ZFNG3uziwmbDH0zs+0uIHtVi2sovjZOOBXU2z5I+waaJsidi9lVGrS XAQ7YpyP0SOm7XzMp2t52TIlLp8g4J73qKsA4dCmCT6jQgCgls8mxEFEJrctE8HRbkfA ftB+xg+G/dabQXlX/Ucqro+BUynkVZuK2gKX4nLlsOQdIiZ6hZFM2glLK1RH8UXF7zfk aC5jJJQCi4trXmfg3AYnwXSen6wEYTP+obrojjwiranZmjYi5Ytlj8QZ9pW87KG3YFHf qF5A== 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=nuveo/qWOYuufgNWkW5tgIosQZkW1EnQFhZAFm95jic=; b=BP0B4dFfGkHGDZE+fRuc8OUf9ecGz3T7ogfp7G7KqNx50hSPTO+xdvQUEZ9W4jZVJ4 E1iUahkI0mwcxS4afKzjGKk86DbsV8HnqdJxDnurXl08E55o7zdsS/Y0Mx2iQ6Rs+hji Xy95S5R+hN3W4t1uwEGSu3gUluBe7noGt+hgO656REhUMUekQ/Wmwl5t2m61UnXXSPjb SUOdrqFMx9ZXTaokduhMcHCYYDjy1dKqN0/io9yUgZE2BssX+EWZf0vIDYNttmSiXpb0 uZXInY96CrdxSawid5RrKCkLA9Mg0WDWelfbGKGdOFIzQQd1Y5zDYLLl1aPxKXqovaEF EAiQ== X-Gm-Message-State: AOAM533wg+zudwJsCVwYiiD7G3ThS8DfmlQ697Si8i6TppR+mCX5qvoe KQJLscZpYYPPqW1wm77pYnniLOu9MrykcA== X-Google-Smtp-Source: ABdhPJxkbIekGCvJ2DmJai0pEffH5BOJv1uvz6L7xUSRvbns6yLpm/ZHg+mTC6Ro/NJBirMEQPqwzg== X-Received: by 2002:a05:620a:208e:: with SMTP id e14mr9514248qka.328.1625752764402; Thu, 08 Jul 2021 06:59:24 -0700 (PDT) Received: from hurd (dsl-157-151.b2b2c.ca. [66.158.157.151]) by smtp.gmail.com with ESMTPSA id 192sm21571qke.72.2021.07.08.06.59.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jul 2021 06:59:23 -0700 (PDT) From: Maxim Cournoyer References: <87bl8hvhgx.fsf@gmail.com> <87wnr05tfz.fsf@gnu.org> <87o8bovm7t.fsf@gmail.com> <87sg10pdxs.fsf@gnu.org> <871r8j5nev.fsf@gmail.com> <874kdemb4k.fsf@gnu.org> <87h7hc3i6v.fsf@gmail.com> <87y2akspsh.fsf@gnu.org> Date: Thu, 08 Jul 2021 09:59:22 -0400 In-Reply-To: <87y2akspsh.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 05 Jul 2021 18:12:30 +0200") Message-ID: <87pmvs52kl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: , Cc: 48903@debbugs.gnu.org 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=1625752865; 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: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=nuveo/qWOYuufgNWkW5tgIosQZkW1EnQFhZAFm95jic=; b=fQVUCjTnOmMjO93kjJhlTb2bmW30qqTRHHMu8bAKVp/Ts3So2iHLHNiueNn48p7sUxHOi8 K95VWYors8CFFDni9J275qANlz/BYX3b6TE1HOpS7NfXLrWzR2AbgXPnFE5h3qC9CN3s5U OA+wu8gNde1TKq7+Ol5rqD3oxwtPBDH4gdjzwMngrTrstzHJvxpfcvNd6c3T74MWkpR4vR DjWbGke17tkVxdzfRLTqvx4DObUP1G0nczVlwPgSEDJuQ2Nsvd1miMQcJnN1ri2s0RKR5s yTH0dAUVO7jO2qz8J8HDqwJaKGTjtm0E/ybfXGlEicjglaePDnTxnU0goAB5eg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625752865; a=rsa-sha256; cv=none; b=VoxIAKyLWMucYKsMTZ/4e6HFjmquMc5fN+lzf6rYuY8iXqvRfLA7KBX2q3HmZnjusx629T n1rY/DjNG2mc12PS+GwwnaTH33LRDMayeKg/LqaoWDiy0WfoulN5RKhNQ1pYj9nXaZBhAi NEa41CVP1Oo4JwYeJmtewXZu+o1DJWHyVggFJZ9Gjk3zJBizh08addRERWOaiyJzEATBQu A01IIzPlUvr1Bq4HXdgkzVrdZYhxmuJXqaPHkiiXbS0tn/nsDrVzQMV/ZPMEUxGf4n8ZJX 7RTLn/GNu87+jNCdEftNcPTb8uSgy1zj//c1UwzmMJgyk8XgYA2jARHYPEGTpw== ARC-Authentication-Results: i=1; aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Nl5qV67i; spf=pass (aspmx2.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: 2.79 Authentication-Results: aspmx2.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Nl5qV67i; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx2.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: 5275B24B5F X-Spam-Score: 2.79 X-Migadu-Scanner: scn1.migadu.com X-TUID: VmFfOBgjyODE --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! Ludovic Court=C3=A8s writes: > Maxim Cournoyer skribis: > >> Ludovic Court=C3=A8s writes: >> >>> Hi, >>> >>> Maxim Cournoyer skribis: >>> >>>> I've tried with the following modified version which runs multiple >>>> threads in parallel (to mimic --max-jobs=3D4 on the daemon), and I've = yet >>>> to trigger it, although the hard drive is grinding heavily: >>> >>> Note that =E2=80=98--max-jobs=3D4=E2=80=99 leads guix-daemon to spawn 4= =E2=80=98guix substitute=E2=80=99 >>> processes, which is not what the script is doing here. >> >> Oh! I had overlooked that. What the modified version did is create >> threads rather than processes, right? > > Yes. > > So I=E2=80=99m not sure how to better test this. Perhaps you could try > introducing random delays in the loop (which could cause connections to > go stale), using different substitute URLs, things like that. I've tried some to reproduce the issue with the modified scripts below, but in vain. I'm not sure if my delay is inserted at the right place. I also suspect that my attempt to shuffle the substitute-urls is not really useful, as that's probably what would have happened anyway (although I haven't followed in the code deeply enough to confirm). --=-=-= Content-Type: application/x-sh Content-Disposition: inline; filename=substitute-stress-launcher.sh Content-Transfer-Encoding: base64 IyEvdXNyL2Jpbi9lbnYgYmFzaAoKbWF4X3Byb2Nlc3Nlcz00Cgpmb3IgKCggam9iPTA7IGpvYiA8 ICRtYXhfcHJvY2Vzc2VzOyBqb2IrKykpOyBkbwogICAgSk9CX0lEPSRqb2IgZ3VpbGUgc3Vic3Rp dHV0ZS1zdHJlc3Muc2NtICYKZG9uZQo= --=-=-= Content-Type: application/octet-stream Content-Disposition: inline; filename=substitute-stress.scm Content-Transfer-Encoding: base64 KHVzZS1tb2R1bGVzIChndWl4KSAoZ251IHBhY2thZ2VzKQogICAgICAgICAgICAgKGd1aXggc2Ny aXB0cyBzdWJzdGl0dXRlKQogICAgICAgICAgICAgKGd1aXggZ3JhZnRzKQogICAgICAgICAgICAg KGd1aXggYnVpbGQgdXRpbHMpCiAgICAgICAgICAgICAoc3JmaSBzcmZpLTEpCiAgICAgICAgICAg ICAoc3JmaSBzcmZpLTI3KQogICAgICAgICAgICAgKGljZS05IG1hdGNoKQogICAgICAgICAgICAg KGljZS05IHRocmVhZHMpKQoKCihzZXR2YnVmIChjdXJyZW50LWlucHV0LXBvcnQpICdsaW5lKQoK KGRlZmluZSB0ZXN0LWRpcmVjdG9yeSAiL3RtcC9zdWJzdGl0dXRlLXRlc3QiKQoKKGRlZmluZSBq b2ItaWQgKGdldGVudiAiSk9CX0lEIikpCgooZGVmaW5lIHBhY2thZ2VzCiAgOzsgU3Vic2V0IG9m IHBhY2thZ2VzIGZvciB3aGljaCB3ZSByZXF1ZXN0IHN1YnN0aXR1dGVzLgogIChhcHBlbmQgKG1h cCBzcGVjaWZpY2F0aW9uLT5wYWNrYWdlICcoImxpYnJlb2ZmaWNlIgogICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgInVuZ29vZ2xlZC1jaHJvbWl1bSIKICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICJvcGVuamRrIgogICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgInRleG1hY3MiKSkKICAgICAgICAgICh0YWtlIChmb2xkLXBh Y2thZ2VzIGNvbnMgJygpKSAyMDApKSkKCihkZWZpbmUgKHNwYXduLXN1YnN0aXR1dGlvbi10aHJl YWQgaW5wdXQgdXJscykKICAiU3Bhd24gYSAnZ3VpeCBzdWJzdGl0dXRlJyB0aHJlYWQgdGhhdCBy ZWFkcyBjb21tYW5kcyBmcm9tIElOUFVUIGFuZCB1c2VzClVSTFMgYXMgdGhlIHN1YnN0aXR1dGUg c2VydmVycy4iCiAgKGNhbGwtd2l0aC1uZXctdGhyZWFkCiAgIChsYW1iZGEgKCkKICAgICAocGFy YW1ldGVyaXplICgoJXJlcGx5LWZpbGUtZGVzY3JpcHRvciAjZikKICAgICAgICAgICAgICAgICAg ICAoY3VycmVudC1pbnB1dC1wb3J0IGlucHV0KSkKICAgICAgIChzZXRlbnYgIl9OSVhfT1BUSU9O UyIKICAgICAgICAgICAgICAgKHN0cmluZy1hcHBlbmQgInN1YnN0aXR1dGUtdXJscz0iIChzdHJp bmctam9pbiB1cmxzKSkpCiAgICAgICAobGV0IGxvb3AgKCkKICAgICAgICAgKGZvcm1hdCAoY3Vy cmVudC1lcnJvci1wb3J0KSAic3RhcnRpbmcgc3Vic3RpdHV0ZXJ+JSIpCiAgICAgICAgIDs7IENh dGNoICJubyB2YWxpZCBzdWJzdGl0dXRlIiBlcnJvcnMuCiAgICAgICAgIChjYXRjaCAncXVpdAog ICAgICAgICAgIChsYW1iZGEgKCkKICAgICAgICAgICAgIChndWl4LXN1YnN0aXR1dGUgIi0tc3Vi c3RpdHV0ZSIpKQogICAgICAgICAgIChjb25zdCAjZikpCiAgICAgICAgICh1bmxlc3MgKGVvZi1v YmplY3Q/IChwZWVrLWNoYXIgaW5wdXQpKQogICAgICAgICAgIChsb29wKSkpKSkpKQoKKG1hdGNo IChwaXBlKQogICgoaW5wdXQgLiBvdXRwdXQpCiAgIChsZXQgKCh0ZXN0LWRpcmVjdG9yeSogKHN0 cmluZy1hcHBlbmQgdGVzdC1kaXJlY3RvcnkgIi0iCiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgam9iLWlkKSkKICAgICAgICAgKHRocmVhZCAoc3Bhd24tc3Vic3RpdHV0 aW9uLXRocmVhZAogICAgICAgICAgICAgICAgICBpbnB1dCAlZGVmYXVsdC1zdWJzdGl0dXRlLXVy bHMpKSkKCiAgICAgKGZvcm1hdCAoY3VycmVudC1vdXRwdXQtcG9ydCkgInN0YXJ0aW5nIGpvYiB+ YS4uLn4lIiBqb2ItaWQpCgogICAgIDs7IFJlbW92ZSB0aGUgdGVzdCBkaXJlY3RvcnkuCiAgICAg KHdoZW4gKGZpbGUtZXhpc3RzPyB0ZXN0LWRpcmVjdG9yeSopCiAgICAgICAoZm9yLWVhY2ggKGxh bWJkYSAoZikKICAgICAgICAgICAgICAgICAgIChmYWxzZS1pZi1leGNlcHRpb24gKG1ha2UtZmls ZS13cml0YWJsZSBmKSkpCiAgICAgICAgICAgICAgICAgKGZpbmQtZmlsZXMgdGVzdC1kaXJlY3Rv cnkqICM6ZGlyZWN0b3JpZXM/ICN0KSkKICAgICAgIChkZWxldGUtZmlsZS1yZWN1cnNpdmVseSB0 ZXN0LWRpcmVjdG9yeSopKQogICAgIChta2Rpci1wIHRlc3QtZGlyZWN0b3J5KikKCiAgICAgKHBh cmFtZXRlcml6ZSAoKCVncmFmdD8gI2ZhbHNlKSkKICAgICAgICh3aXRoLXN0b3JlIHN0b3JlCiAg ICAgICAgIDs7IEFzayBmb3Igc3Vic3RpdHV0ZXMgZm9yIFBBQ0tBR0VTLgogICAgICAgICAoZm9y LWVhY2ggKGxhbWJkYSAocGFja2FnZSBuKQogICAgICAgICAgICAgICAgICAgICA7OyBSYW5kb20g c2xlZXAuCiAgICAgICAgICAgICAgICAgICAgIChzbGVlcCAocmFuZG9tLWludGVnZXIgNikpCgog ICAgICAgICAgICAgICAgICAgICAoZGVmaW5lIGl0ZW0KICAgICAgICAgICAgICAgICAgICAgICAo cnVuLXdpdGgtc3RvcmUgc3RvcmUKICAgICAgICAgICAgICAgICAgICAgICAgIChsZXQgKChzdWJz dGl0dXRlLXVybAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChsaXN0LXJlZiAlZGVm YXVsdC1zdWJzdGl0dXRlLXVybHMKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKHJhbmRvbS1pbnRlZ2VyCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAobGVuZ3RoICVkZWZhdWx0LXN1YnN0aXR1dGUtdXJscykpKSkpCiAgICAgICAgICAg ICAgICAgICAgICAgICAgIChwayAndXNpbmctc3Vic3RpdHV0ZS11cmwgc3Vic3RpdHV0ZS11cmwp CiAgICAgICAgICAgICAgICAgICAgICAgICAgIChzZXQtYnVpbGQtb3B0aW9ucwogICAgICAgICAg ICAgICAgICAgICAgICAgICAgc3RvcmUgIzpzdWJzdGl0dXRlLXVybHMgKGxpc3Qgc3Vic3RpdHV0 ZS11cmwpKQogICAgICAgICAgICAgICAgICAgICAgICAgICAocGFja2FnZS1maWxlIHBhY2thZ2Up KSkpCgogICAgICAgICAgICAgICAgICAgICAoZm9ybWF0IG91dHB1dCAic3Vic3RpdHV0ZSB+YSB+ YS9+YX4lIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgIGl0ZW0gdGVzdC1kaXJlY3Rvcnkq IG4pKQogICAgICAgICAgICAgICAgICAgcGFja2FnZXMKICAgICAgICAgICAgICAgICAgIChpb3Rh IChsZW5ndGggcGFja2FnZXMpKSkpCiAgICAgICAoZm9ybWF0ICN0ICJzZW50IH5hIHN1YnN0aXR1 dGlvbiByZXF1ZXN0cy4uLn4lIgogICAgICAgICAgICAgICAobGVuZ3RoIHBhY2thZ2VzKSkKICAg ICAgIChjbG9zZS1wb3J0IG91dHB1dCkKCiAgICAgICA7OyBXYWl0IGZvciBzdWJzdGl0dXRpb24g dG8gY29tcGxldGUuCiAgICAgICAoam9pbi10aHJlYWQgdGhyZWFkKSkpKSkK --=-=-= Content-Type: text/plain Thanks, Maxim --=-=-=--