From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id iM6DIG1aTWEJwwAAgWs5BA (envelope-from ) for ; Fri, 24 Sep 2021 06:56:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id MPonHG1aTWEQXwAAbx9fmQ (envelope-from ) for ; Fri, 24 Sep 2021 04:56: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 1869029168 for ; Fri, 24 Sep 2021 06:56:13 +0200 (CEST) Received: from localhost ([::1]:51462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTdFs-0003GA-5C for larch@yhetil.org; Fri, 24 Sep 2021 00:56:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTdFi-0003Fx-5X for bug-guix@gnu.org; Fri, 24 Sep 2021 00:56:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mTdFh-0006gP-Tz for bug-guix@gnu.org; Fri, 24 Sep 2021 00:56:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mTdFh-0006Oy-T7 for bug-guix@gnu.org; Fri, 24 Sep 2021 00:56:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#41625: Sporadic guix-offload crashes due to EOF errors Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 24 Sep 2021 04:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41625 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 41625-submit@debbugs.gnu.org id=B41625.163245933924574 (code B ref 41625); Fri, 24 Sep 2021 04:56:01 +0000 Received: (at 41625) by debbugs.gnu.org; 24 Sep 2021 04:55:39 +0000 Received: from localhost ([127.0.0.1]:56437 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTdFL-0006OH-9x for submit@debbugs.gnu.org; Fri, 24 Sep 2021 00:55:39 -0400 Received: from mail-qt1-f181.google.com ([209.85.160.181]:47009) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mTdFJ-0006O0-Ct for 41625@debbugs.gnu.org; Fri, 24 Sep 2021 00:55:37 -0400 Received: by mail-qt1-f181.google.com with SMTP id e16so8320732qte.13 for <41625@debbugs.gnu.org>; Thu, 23 Sep 2021 21:55:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oBtVOpCgR3ohhXcPmqxErEsP2nstBie2IJHykElJg0Q=; b=pRxYodCiJveMC7h9gHjJNCanad1Y0NCqmfSS5LUh4y8mpG9d266lp0kNi86RxHOKTE yerru+uD03UUZeOOFA1WuVRvNcyuA9QUmN7dmFaGD4f56eCNyoDU8IikwAir3hFvWWJH NPqFDIY2SsY3i9WhWnI7cI2/4VlRiY6t4pqOkIUzP5bx5PmK6NxQvX/nndc7OiJimJAn YEmGGRooulEoIcwt9+XZLZ+OcYwFXkVIQ23f8vq9dWn0KCrF+mrWLWS3F/YI6/8LuYiZ QbKl1P/TrLR4i47Kw9mKZxWUMOvP0ZyJ3Sl9+XCrul6yvmxOaad5EEHOeTZE6Y3Q6Gf4 6j7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=oBtVOpCgR3ohhXcPmqxErEsP2nstBie2IJHykElJg0Q=; b=NQCTumt3oy1JvxWsKLA7XPEoDvzivFAAQvxN8Z2wAVHkE32WXJi5JAwLOBkqR+Reb3 GJ2rEI6+6apmdSwcRD8KdCasC1YbTPKND8zWfjAYG7mNDoMvHEuXnJ/Olp/xIqfW+fYn cuqSwo8lygr1ZDPzj5ejf8DpS6B24Q3xnXJOcUJLJ25ylGfgJ/K6XMhLjFePka00POyS DK9xf+g79T3AH28KOpGcLrI+xv/8hB04ml6K/nm4qVlEE7H8IZRLSBlgIF09cu2BsuN1 VFX6MiOK3617M69MAF1uYVmKX//XpGXiN3qsFdIPgFGJ/bmESRCDyi4ffTIu7qL73weE iQ1g== X-Gm-Message-State: AOAM533EmFCg5H1WwM3SIwgf9ra6QOa9C6DCOejsCjV9uY9FMBxYPohD J8IEzmdAfQno9jdKGyXyklA= X-Google-Smtp-Source: ABdhPJzTibbXOZls+Jhdd6vnS0H6i5CLcwvrPgmVVU81p8iI4zXtbHWstwQrFGeMQ9VIJypi70gxGQ== X-Received: by 2002:ac8:4243:: with SMTP id r3mr2335196qtm.187.1632459331916; Thu, 23 Sep 2021 21:55:31 -0700 (PDT) Received: from hurd (dsl-10-149-91.b2b2c.ca. [72.10.149.91]) by smtp.gmail.com with ESMTPSA id l13sm5806942qkj.130.2021.09.23.21.55.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 21:55:31 -0700 (PDT) From: Maxim Cournoyer References: <87mtsky9um.fsf@gmail.com> <20210525155003.27590-1-maxim.cournoyer@gmail.com> <875yz61rvt.fsf@gnu.org> <87mtsikwsm.fsf_-_@gmail.com> <87fsy9x3ev.fsf@gnu.org> <87r1hsjkbv.fsf_-_@gmail.com> <878s2lw330.fsf_-_@gnu.org> Date: Fri, 24 Sep 2021 00:55:30 -0400 In-Reply-To: <878s2lw330.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 05 Jul 2021 10:57:07 +0200") Message-ID: <878rzmk1x9.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 41625@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=1632459373; 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=oBtVOpCgR3ohhXcPmqxErEsP2nstBie2IJHykElJg0Q=; b=qhmg8yiL/gpbUQn3mREN0rYRP2ac4UTTbZFjKoGPVQv7rXVF3qNN9tmKIV9vxhQ9TOnemv /uAiz6uLI1qUiETqxCFy30CLZURD/43FX6E931S3SyjZEv+QK85o+PnXV4pfUFENQ01VER 9XqC/ANuqzn1SVJK0AaEuP1upVYQpL1UkP/WjbaEbzvsmOS2lQSj28I+MHDgfjv8EakPpW Zq5gpz9dImkypZQJio/1vNu5kEiV6v70tN8sX6k6pemq6Wqt1AeIgWgZA8omMn0UwRB89/ a5pwZ2+kjXfrJHqHVZKN1+EjscQQigUDd34FN1aV+E0xXRcuOoaWqifKFMreCw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632459373; a=rsa-sha256; cv=none; b=phxQr6lEUGwpTdyw8yWrlY1rNVY3RmOlpQ2q48tsU1JL3iOkLGVmBeO7UImqzQFwanl8+B x5Xoy1UiSTIpmlac/bzP9Ys6XCYyGx0rnB0OcDrDEgqJ9yBbudPoA7IDEillcuK7AViTMH sljHLMWWCZHNM0WIWA5Qy0oVhIkuFhdmJTP14iPbSIZy/jfxZOKllb3/f6bpQoeZoCiABP GPvS7lczT/nKNor9VAyRvauxppNPYMRelKkHyDFbZ5ccCNO/Gpe+8o+a0VY26CSZRyo1LG Ff7yFuG9w7g+qF/bpUpykDeIuVPFX2Wht0cAcv3GMhf68CDcHqV7inhT9C+qGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=pRxYodCi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=pRxYodCi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 1869029168 X-Spam-Score: -1.69 X-Migadu-Scanner: scn1.migadu.com X-TUID: /LEHLqbWM4K+ Oh, and for completion, here's a reproducer I used here to debug with my low power offload machine: --8<---------------cut here---------------start------------->8--- x(use-modules (guix scripts offload) (guix inferior) ((guix ssh) #:hide (open-ssh-session)) (ice-9 match) (ssh popen)) (define machine (build-machine (name "tm") (port 22) (user "root") (systems (list "armhf-linux")) ;; ecdsa-sha2-nistp256 (host-key "ssh-ecdsa-p256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIx32IqtlUr2VMypLItGSnmKzd0eJkgnzPkVbOZbn4HFQD5KvWB98t4IkT0PESjs+DDQfI/PwRENo3yqd5GjukA=") (parallel-builds 2) (compression "none") (private-key "/home/maxim/.ssh/id_rsa.1"))) (define open-ssh-session (@@ (guix scripts offload) open-ssh-session)) (define session (open-ssh-session machine 15)) (define repl-command '("guix" "repl" "-t" "machine")) (define pipe (apply open-remote-pipe* session OPEN_BOTH repl-command)) ;;; Hangs ;;;(port->inferior pipe) (define rest (match (read pipe) (('repl-version 0 rest ...) rest))) (define %inferior-packages (@@ (guix inferior) %inferior-packages)) (define %inferior-package-table (@@ (guix inferior) %inferior-package-table)) (define inferior (@@ (guix inferior) inferior)) (define inferior-socket (@@ (guix inferior) inferior-socket)) (define result (inferior 'pipe pipe close (cons 0 rest) (delay (%inferior-packages result)) (delay (%inferior-package-table result)))) (define send-inferior-request (@@ (guix inferior) send-inferior-request)) (send-inferior-request '(() repl-version 0 1 1) result) (inferior-eval '(use-modules (guix)) result) ;;; Hangs! ;;t(inferior-eval '(use-modules (gnu)) result) (send-inferior-request '(use-modules (gnu)) result) (define socket (inferior-socket result)) ;;Throw to key `match-error' with args `("match" "no matching pattern" #)' ;;(read-repl-response socket result) ;; -> guix using 100% cpu, reading package modules for ~ 1m30s ;;; guile-ssh returns on timeout? (15 s) -> yes (read socket) --8<---------------cut here---------------end--------------->8--- I wish the Guile debugger was more capable; it'd have spared me the above manual labor :-) Maxim