From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id IIIgEiINfGCvAQAAgWs5BA (envelope-from ) for ; Sun, 18 Apr 2021 12:42:42 +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 QKzZDCINfGCiRAAAbx9fmQ (envelope-from ) for ; Sun, 18 Apr 2021 10:42:42 +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 37F5D14ED4 for ; Sun, 18 Apr 2021 12:42:41 +0200 (CEST) Received: from localhost ([::1]:41186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY4sy-0005Y7-De for larch@yhetil.org; Sun, 18 Apr 2021 06:42:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52694) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lY4sc-0005TF-Vj for help-guix@gnu.org; Sun, 18 Apr 2021 06:42:19 -0400 Received: from mail2.protonmail.ch ([185.70.40.22]:28443) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lY4sY-0002FT-N7 for help-guix@gnu.org; Sun, 18 Apr 2021 06:42:18 -0400 Date: Sun, 18 Apr 2021 10:42:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail3; t=1618742531; bh=SoF5TNRnZYPx92qIvGOZUfmEU+rApaiW08L6I0T3DmI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=AJ98oXzQyA2VMiM/QBBADy96dnwDeoBH6brIiR5kmAD5gDajmtSCIWtBKiPLjCovy K3C8AZoaUwCqAGbQF5/j+hOakhkJix/Pq0Yb/5CGkBdK+F1joDxZpSn9muMKZYdwE7 Mc93HJiaJd00rphv6/s+LsATbql2QGrBFhHoSlb8nwNeKA8GmFzUfe9LhxzrIEIGZR LDJ2ZAdJvk23Jx/vgYEebFlyqQCR61vVLit1ffXQoFSnnkGrupW3INUWQ2airHcJES dAxUXSNGu8j1BQNUbIxd06S0Gum64naQL3W5j+4K2N+dI4QcZwwj17OQdFPWuwyac9 le1jYKHCFpD1A== To: "greenfork.lists@yandex.com" From: Ekaitz Zarraga Subject: Re: How to debug hanging "check" phase when building Kakoune Message-ID: <9-XX1BFfXeeBAnqcuj6YIDH3DiJxFUCMZ0aHcWRWl97LVBS7DXpElt9DZkmQusNFEhtcpFYcXNrLGi7ESUCHLviIARipPJRSUYh8qlq0H9M=@elenq.tech> In-Reply-To: <87sg3ocdmb.fsf@yandex.com> References: <87sg3ocdmb.fsf@yandex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.22; envelope-from=ekaitz@elenq.tech; helo=mail2.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Cc: "help-guix@gnu.org" Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618742561; h=from:from:sender:sender:reply-to: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SoF5TNRnZYPx92qIvGOZUfmEU+rApaiW08L6I0T3DmI=; b=E4kXlWGkZBDGm2Ipp9rx7vqapgWMOrKXhuWi0N9SW3WkENGAS8TNFo7bT4HSC7l8HVovyV g3zWxAmI2jzAMj4dVkx+gUigiRhQalYxVim5EAXcCsmyCak8z4RQPTTl2qVbjbI1ognX4h Pbl+WOkMZyUxu4bqyiPR6TUXNEXLD6D1UF0vlM21XAWCVdk4VYtm05pEoW4sJOFH9ve6mh hmtF1O3xART4vtcuKV76yFlgXpMzoWVbhVTCpkesJItgyFvnyQot/CM8LUUyISf9ipMq60 uPzZUR+9FmpQHjOp1l3I8CxSf17BQ6/KccBmTIxqOADilrcDm/cX6I8tivaMzQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618742561; a=rsa-sha256; cv=none; b=VAp7/FGdaMz8XmCv4Yx1sMnxb9xIUCiZsEWjshM4lEAhXmjnQgXfPgPnxk7Dcg9lcFNVuW Vkll/1EOG8STQmE6L2L8cxSX9kvnCEqvROKJIIdRTuuIKaDHp5pgKI5Y2pE/HztLufXcnT 1LOh2wz3ivMhNZ0fyMgzY85fr8vuBeDksNxLXozM++zkpr+auw1oaXWCAkVgG9ecVZStGZ YMEP6AsUedUMMoo2XXULaqQTQxILkkEtZfu5ySzwRrNxZFVRDBPLjFJGY1K08hDO0wOfeO 1tG0Hv2FcHhb3nFsJUgt9Plu/ttc893P2Ff8qYdr5HGJYQtyfTjNTEqJDuxslw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b=AJ98oXzQ; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Spam-Score: -3.14 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail3 header.b=AJ98oXzQ; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 37F5D14ED4 X-Spam-Score: -3.14 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8bn3IiK5AV4d Hey! Pretty cool question, let's see if my Bash skills are not lost like tears in the rain. =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 Sunday, April 18, 2021 8:26 AM, Dmitry Matveyev wrote: > > I have assumption that this is somehow connected with read-write > permissions because when I keep failed builds and later try to delete > them, it asks whether I really want to delete some read-only files. > > I have no idea how exactly that `test/run` script works with all the > pipes and output redirection. And I have no idea how to check why this > build phase hangs. Any tips would be really helpful. I agree, it looks like it's related with that. That `cat` you marked there is reading from the file descriptor 4 and discarding its output. That's not a reasonable thing to do in general, *unless* you are reading from a file that is being written to as a pipe (this case is a named pipe, done with `mkfifo`). The `exec 4ui-in` is opening those files and binding them to the file descriptors. So any time you see reading from the fd 4 they are reading from ui-out Pipes are special files that can be used for inter-process communication in this case I think this cat is reading from the pipe until it's empty, in order to consume the data that is being sent by a process. My guess is that the ui-out and ui-in fifos don't have write permission so the process is not able to run, and it hangs in the write, or it's the `cat` who dies in the reading from an empty fifo. It's going to wait until an EOF comes, and that's not happening, because none can write the EOF there. Does this make any sense? HTH, Ekaitz