From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id APRsA+sdDWaQrQAAe85BDQ:P1 (envelope-from ) for ; Wed, 03 Apr 2024 11:14:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id APRsA+sdDWaQrQAAe85BDQ (envelope-from ) for ; Wed, 03 Apr 2024 11:14:19 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="Jz8S/hx/"; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712135659; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-to: 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=DUATG0C0fMH52WhmYUtxVetyldNtx9rkdOPiEdZ+Rnc=; b=g7bYnkRgxETAZs24k+D3pT7uNmjTQ9ubKKAANMVdCk8EXimy8k5OUJIeAgl4ZUPzDvCdKT ZsOozBkmcKFSeU6EvsGfcaDLBszpYmp7SQ5Teld9kMAD2EehTOmCJi3hhw6JBkkReZQOMm qLiPYGap0Sfzc/vGp7Vx5N/ixTE5GsrIsCJgNFTQDZNdJUhD/xbQd9/Bnz34l7rXziPP6+ 94dcZrdbftfbrUG87NZXsCvLKLHL2Y1YyxFKDd6QvIULod7Y2h/Oq4aUYCW2OaHWd3bTSl 54/nZ0Ww/9vKrpsvaGHNjYhZ9gbki5MXH5fjOpELD0t1RRgk2ELii1sjU8IivA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712135659; a=rsa-sha256; cv=none; b=qGiPZkO16DS4J8Zfk3PoecBn4omvqXew9NgkQ7crhmYXLJurddVTv1tmn1DzYdTqZM/4d1 T5EAlW9agm8OJnWIikYYL/1FCcd9N8QOTvycDsrbQW3UdgwXaB6ludBExB1w2kkBQIJhYr p7m2Zd4wu9Sj4fzOi0HSd/dCx9C21lVRAHw3g5jFsKSxwj6zD0bycQcISfi3e4l2TOzYtH 1NA/i+Jheue0Bscfy7GIPaZica2KEH/Q3ZOXiNDLwYNmK6RL9XQ92edf8hp0Mn8gS4F6t+ jisVkSz/lXtOSqgojBySQRvk/L6sdA70Iyh3E96Fl9b+J0NQqkjL7jVaG7xUDQ== 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="Jz8S/hx/"; 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"; dmarc=pass (policy=none) header.from=gnu.org 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 ED0896110C for ; Wed, 3 Apr 2024 11:14:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rrwgy-00046S-3C; Wed, 03 Apr 2024 05:14:00 -0400 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 1rrwgw-000468-T7 for bug-guix@gnu.org; Wed, 03 Apr 2024 05:13:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rrwgw-0004zx-Io for bug-guix@gnu.org; Wed, 03 Apr 2024 05:13:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rrwh0-0001wu-PL for bug-guix@gnu.org; Wed, 03 Apr 2024 05:14:02 -0400 Subject: bug#67629: [Cuirass] =?UTF-8?Q?=E2=80=98remote-server=E2=80=99?= wrecks havoc when misbehaving clients connect Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Date: Wed, 03 Apr 2024 09:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 67629 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 67629-done@debbugs.gnu.org Mail-Followup-To: 67629@debbugs.gnu.org, ludo@gnu.org, ludovic.courtes@inria.fr Received: via spool by 67629-done@debbugs.gnu.org id=D67629.17121356057422 (code D ref 67629); Wed, 03 Apr 2024 09:14:02 +0000 Received: (at 67629-done) by debbugs.gnu.org; 3 Apr 2024 09:13:25 +0000 Received: from localhost ([127.0.0.1]:57045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrwgO-0001vb-Hu for submit@debbugs.gnu.org; Wed, 03 Apr 2024 05:13:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rrwgM-0001vC-3s for 67629-done@debbugs.gnu.org; Wed, 03 Apr 2024 05:13:22 -0400 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 1rrwgC-0004jO-IH for 67629-done@debbugs.gnu.org; Wed, 03 Apr 2024 05:13:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=DUATG0C0fMH52WhmYUtxVetyldNtx9rkdOPiEdZ+Rnc=; b=Jz8S/hx/3QacNZvhCT1p wOBnxpwm6bq5FihMhuYiwVS3jSPbLIQYDqQ0CoYTlKMnl4mlp4pcTiXwjQLdX6SfGUyhi6/E7luIv 1RJAi2SbLdzpqB5iJdIWvBNR0oyrLc723JGTT6uRfZRJsEqtnSCPWTQdDBQItHVVAqPhzAnFmy2pv jbADp8NGHSOBB1K9RpF84rDv6RjPEKqEFN0OpiWnT4TQrdJbM7VUwIILzJqoEPXzMlCT7B4z6vfZn W/KvtzdH2i+E3Gpjz+JBorGK+Smfx3lX267butyeCaVXtM4Rpg32rAngpHCrWWsWyJCpqRHfN3148 VHdX/Wt2+YyZiw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <871qc1myj6.fsf@inria.fr> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Mon, 04 Dec 2023 22:46:21 +0100") References: <871qc1myj6.fsf@inria.fr> Date: Wed, 03 Apr 2024 11:13:10 +0200 Message-ID: <87o7aqzu55.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) 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 X-Migadu-Spam-Score: -7.06 X-Spam-Score: -7.06 X-Migadu-Queue-Id: ED0896110C X-Migadu-Scanner: mx12.migadu.com X-TUID: fjA4XN/7Ym+7 Ludovic Court=C3=A8s skribis: > The =E2=80=98cuirass remote-server=E2=80=99 process goes awry when misbeh= aved clients > connect; specifically, some of its fibers crash, leaving it running but > inactive: > > 2023-12-04 10:13:14 periodic update: 0 resumable, 0 failed builds > 2023-12-04 10:13:28 error: Connection reset by peer when replying to xx.x= x.xx.254. > 2023-12-04 10:13:42 error: invalid log received from xx.xx.xx.254 > 2023-12-04 10:13:42 error: EOF while receiving log from xx.xx.xx.254 > 2023-12-04 10:13:48 Uncaught exception in task: > 2023-12-04 10:13:48 In fibers.scm: > 2023-12-04 10:13:48 186:20 8 (_) > 2023-12-04 10:13:48 145:21 7 (_) > 2023-12-04 10:13:48 In ice-9/boot-9.scm: > 2023-12-04 10:13:48 1752:10 6 (with-exception-handler _ _ #:unwind? _ = #:unwind-for-type _) > 2023-12-04 10:13:48 In cuirass/scripts/remote-server.scm: > 2023-12-04 10:13:48 695:11 5 (_) > 2023-12-04 10:13:48 In ice-9/boot-9.scm: > 2023-12-04 10:13:48 1747:15 4 (with-exception-handler # _ #:unwind? _ #:unwind-for-type = _) > 2023-12-04 10:13:48 In cuirass/scripts/remote-server.scm: > 2023-12-04 10:13:48 437:23 3 (serve-build-requests _ #< getq= : # #))> getq-gc-co > unter: # putq: # putq-gc-counter: #>) > 2023-12-04 10:13:48 In cuirass/remote.scm: > 2023-12-04 10:13:48 466:6 2 (receive-message _ #:router? _) > 2023-12-04 10:13:48 In ice-9/boot-9.scm: > 2023-12-04 10:13:48 1685:16 1 (raise-exception _ #:continuable? _) > 2023-12-04 10:13:48 1685:16 0 (raise-exception _ #:continuable? _) > 2023-12-04 10:13:48 ice-9/boot-9.scm:1685:16: In procedure raise-exceptio= n: > 2023-12-04 10:13:48 Throw to key `match-error' with args `("match" "no ma= tching pattern" (# # #<= zmq-message 7f981881d860>))'. With commit 9a1452ee021c9f773424961cfeef47ca0b7c5c5a, =E2=80=98cuirass remote-server=E2=80=99 handles this situation gracefully. I=E2=80=99m still curious about who=E2=80=99s sending us garbage: it has to= be valid zmq, just with the wrong number of parts. From the logs, it seemed like a port scanner or something on the MDC network was sending garbage on all the open ports, but that would need to be a sophisticated one. Ludo=E2=80=99.