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 8EL6BDwrgmMlvgAAbAwnHQ (envelope-from ) for ; Sat, 26 Nov 2022 16:05:32 +0100 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 CObzBDwrgmOOUAEA9RJhRA (envelope-from ) for ; Sat, 26 Nov 2022 16:05:32 +0100 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 BF9EBED90 for ; Sat, 26 Nov 2022 16:05:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oywjp-0003ND-FG; Sat, 26 Nov 2022 10:05:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oywjo-0003Mo-4h for bug-guix@gnu.org; Sat, 26 Nov 2022 10:05:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oywjl-00031o-Rm for bug-guix@gnu.org; Sat, 26 Nov 2022 10:05:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oywjl-0006qo-N9 for bug-guix@gnu.org; Sat, 26 Nov 2022 10:05:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#59493: cuirass-remote-worker crash Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 26 Nov 2022 15:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59493 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mathieu Othacehe Cc: 59493-done@debbugs.gnu.org Received: via spool by 59493-done@debbugs.gnu.org id=D59493.166947507626298 (code D ref 59493); Sat, 26 Nov 2022 15:05:01 +0000 Received: (at 59493-done) by debbugs.gnu.org; 26 Nov 2022 15:04:36 +0000 Received: from localhost ([127.0.0.1]:41123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oywjL-0006q6-TB for submit@debbugs.gnu.org; Sat, 26 Nov 2022 10:04:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oywjH-0006pn-JK for 59493-done@debbugs.gnu.org; Sat, 26 Nov 2022 10:04:34 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oywjA-0002yR-Bi for 59493-done@debbugs.gnu.org; Sat, 26 Nov 2022 10:04:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=KhqAAEkctIOfXVs4zW1Ev0eSdLj4imVe4C7EFUJXas8=; b=fC7K7w56IWBt3vQRR8Lo pJOWcYp0Vi/cyrOVgK7tbROny0hTuk8BZ7GwAtCnxEcXSQWif342S+DBmNu//TLe8LpdEg15yS2UP 4Nvq41SquM2I8AiOqRGOD05uggc04GlvMMP1v3d/zRvVxDfCLUrpj61VYxXssADXZZRH4x2QJa8KU W0ImxkA5htmopczYJkvpjfgFaJMVbD7oz783erZ7p+0zoQLkPxq6kYYMJp9AS2+/Xe/AoyQ35loOk JyPyp9dVDcP6HOhhxUQ1+41y6DTYVGDxu/XvFa68c/BacYeWzuS4XjCv3PS6jVVTbkwHCuW5XJKYd n04reEsP7qW8qw==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oywj8-00033O-UO; Sat, 26 Nov 2022 10:04:23 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87ilj6hc2a.fsf@inria.fr> <87h6yqw0sf.fsf@gnu.org> <87tu2pfzaj.fsf@gnu.org> <87k03lwtd7.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 6 Frimaire an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la =?UTF-8?Q?M=C3=A2che?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 26 Nov 2022 16:04:20 +0100 In-Reply-To: <87k03lwtd7.fsf@gnu.org> (Mathieu Othacehe's message of "Wed, 23 Nov 2022 17:03:32 +0100") Message-ID: <87edtp92q3.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669475131; 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=KhqAAEkctIOfXVs4zW1Ev0eSdLj4imVe4C7EFUJXas8=; b=SYCnrd5s/Q9xR86FS6dm8dden/43KPPlfKxoRzIKJTu8KGebzrw4Gn57Jbyx3rVVZh+/bZ xSmaGzk9xdb47LyUqIY/m1PVAY4/q+Z2NHHTCuB4n40CMi8q5ek30/aS9ONwaFBFczPXgK 9lnpKz8f8Hr0cdCyBr1XGMKhSB781h1fH1V6DA1GifkIHo4Bzb+k9W95HLLd+1XcGRxvR5 SgLtXPXkGJyTuDz2nBpAwf7sdzrPrh3H1T8NxNnzHHieEcK+SdD3pCTaeh+q8ptpqJjm0C VW3mjz78QNWhi1rvPTQijPhvIlDjf9GGNl6Nut6OOyekk9j0WbpFTLweGile3g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669475131; a=rsa-sha256; cv=none; b=cS5ZZJzzD1HnJeGh5pFy5It1AGPBG1/uoY4DgmpJ0VxZ5LjRpbxxJ32AD/0GhqBODbgIqn TA3RJQH26Mcm1T6pCt/WOGpI5FoLiJXH3/SEYG4FSkD1jaTCere7yg+8IAslwkyZDWDrkb k+WVl0FG8x7rPU/QToxDakB0wIbB4dOD8sR7fqYV4bbIO8xyphhsLT/+kCFnir+5f5rnVL ObjWJl9frCsja/Z0k0fjDbOslrnuAcPfpOYnnHhyM+LEOC91ZjPDvGHzO6kbOirYz34mlF 5Ql8YLdpRjxI6P5H158IFMa46djFycVBpmFrwdn8QSHSGIvEKAdHp8t8DPD6mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=fC7K7w56; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.87 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=fC7K7w56; dmarc=pass (policy=none) header.from=gnu.org; 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: BF9EBED90 X-Spam-Score: -3.87 X-Migadu-Scanner: scn1.migadu.com X-TUID: mMaKQ4UpatSQ Hi, Mathieu Othacehe skribis: >> To me, ideally this would be either multi-threaded or Fiberized. The >> latter would be more fruitful but what might be difficult is >> guile-simple-zmq integration with Fibers (but maybe not: zmq_getsockopt >> + ZMQ_FD lets us get the file descriptor of a socket). > > I would prefer the multi-threaded approach if possible. While the > concept of Fiber is nice it adds another layer of complexity and > instability to those programs which are already hard to debug. I guess it=E2=80=99s not black and white. Shared-state multithreading is an endless source of bugs, regardless of the language being used; message-passing (what Fibers is about) is more tractable. Sure Fibers can have bugs of its own (I=E2=80=99m well aware of that :-)) b= ut at Fiber-using code can be simpler and less error-ridden than the equivalent shared-state code. Anyway, we=E2=80=99re not there yet. Can you remember the rationale for forking in remote-worker.scm, or do you think we might as well do it all in a single process? Thanks, Ludo=E2=80=99.