From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QD+hByg/VmVsAgEAauVa8A:P1 (envelope-from ) for ; Thu, 16 Nov 2023 17:11:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QD+hByg/VmVsAgEAauVa8A (envelope-from ) for ; Thu, 16 Nov 2023 17:11:20 +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 E86405AB7C for ; Thu, 16 Nov 2023 17:11:19 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Q8SpkduX; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1700151080; 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=Hoa/HpRjYMa3oSgGGU5CZ42j0NfyZn+fMdX3mCypXxg=; b=tmmeARmHNHwQJbc+3xtN+mvHV5r+bthtImPiYXapvDHfYaPaB61W9o/mwbQoMTtAtxE1nG 9PP9TOoZHbLh+P7fYvUGbM6XOOhysCT01JWB8C04/ZkcEE8n6wUPgP6gLE5Oe6TAjuY1OU CW5Acm4iMI4qQ6G6TXpceN2YKJIi3guk+SCTKuw8nIB0Z1R7GxmOyMZdUVeFfy7Y71mC7K 5Zh+qGUyvs7/HV8qBFrdarRx7yWgBKJGrvQQwQk31oblzmGtMXYvzcDhH8Uz6H4ae4Qdzs nFE7XD+5Mxa64fGXG4SAIscXy8QF9cSogBulJk7gpz38TWUFNSz7BUdVcMq/Vg== 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=Q8SpkduX; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1700151080; a=rsa-sha256; cv=none; b=lU3H4Mv22WKXO8enNC0m2LgIYM2lCv6OGsD48VotONmZrbd0aR1mhmSmgJK8naGGkSm8G2 9CQCBmsZJccP+/nF1a2j+2MJBGg0euzAGw5tV+7zZXxsGSD8hqzBV3oGhpVIVh0VTKXr5o bZBwU3xYlTARxesDeYLCv2+i3uzKJaH0ebKCOphTVEU6/LfMYZncwAINW1o43pIEBzhgr6 TQs93Pvvt8sbELJc7yiCoqrcFUszdLReyc89T+BHudkm8Q6sf/HqWmtsiWggeavX3CPYFk YHkRdMysRS8QaCRlkVqVkS6avJ2t3UchTu984CY3F7MZAj7QEzUQvM6RmZhOgw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3exM-0002Oa-I9; Thu, 16 Nov 2023 11:11:04 -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 1r3exL-0002O4-MO for bug-guix@gnu.org; Thu, 16 Nov 2023 11:11:03 -0500 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 1r3exL-00024H-EX for bug-guix@gnu.org; Thu, 16 Nov 2023 11:11:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3exK-0000RB-46 for bug-guix@gnu.org; Thu, 16 Nov 2023 11:11:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#67041: [cuirass] cuirass-web crash Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 16 Nov 2023 16:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67041 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: 67041@debbugs.gnu.org, guix-sysadmin Received: via spool by 67041-submit@debbugs.gnu.org id=B67041.17001510091608 (code B ref 67041); Thu, 16 Nov 2023 16:11:02 +0000 Received: (at 67041) by debbugs.gnu.org; 16 Nov 2023 16:10:09 +0000 Received: from localhost ([127.0.0.1]:57466 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3ewS-0000Ps-S0 for submit@debbugs.gnu.org; Thu, 16 Nov 2023 11:10:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50180) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3ewP-0000PG-BQ for 67041@debbugs.gnu.org; Thu, 16 Nov 2023 11:10:08 -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 1r3ewK-0001Zm-4N; Thu, 16 Nov 2023 11:10:00 -0500 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=Hoa/HpRjYMa3oSgGGU5CZ42j0NfyZn+fMdX3mCypXxg=; b=Q8SpkduXa4WCdKU/z6dw kc3BdSm1X02HFNYCmWTw6haCJy0la8epXYQKidSfCyg6nsnEAtUmHJwKYeeP4QNFBCrcooE9JOFM3 Z2bmsZ8wFjPA+cuF6zUcy5KdTNwnZyJRG5MSphi72WC97JC16jvZhmR3lqDvUz4O6y+KU1h7dXSG6 tAWndhwktxSL/EVAtN2h2fyAA3l5p42LjXErFUGxOuByNEwldgbSXR6Jlomfb7QMCpeybjuZkzODq eSz/VAvdnu3/0uwCzh398umhHNEcac3Zv7RMCclB9vIQe9Umh5Qpkh6pLf9de8SXtxSGotrCN6n8v nmRlGe0Wx23qpQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: <87ttptemk7.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 10 Nov 2023 08:59:36 -0500") References: <87ttptemk7.fsf@gmail.com> Date: Thu, 16 Nov 2023 17:09:49 +0100 Message-ID: <874jhlu1bm.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: -6.79 X-Spam-Score: -6.79 X-Migadu-Queue-Id: E86405AB7C X-Migadu-Scanner: mx10.migadu.com X-TUID: bPbI8PBX2KtA Hi, Maxim Cournoyer skribis: > 2023-11-10 13:11:30 ice-9/boot-9.scm:1685:16: In procedure raise-exceptio= n: > 2023-11-10 13:11:30 In procedure accept: Too many open files Apparently there=E2=80=99s something that causes =E2=80=98cuirass web=E2=80= =99 to leak file descriptors, the number being otherwise stable around 50: --8<---------------cut here---------------start------------->8--- 2023-11-08 06:53:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 07:03:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 07:13:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 07:23:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 07:33:23 heap: 54.97 MiB; threads: 9; file descriptors: 50 2023-11-08 07:43:23 heap: 54.97 MiB; threads: 9; file descriptors: 50 2023-11-08 07:53:23 heap: 54.97 MiB; threads: 9; file descriptors: 50 2023-11-08 08:03:23 heap: 54.97 MiB; threads: 9; file descriptors: 50 2023-11-08 08:13:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 08:23:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 08:33:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 08:43:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 08:53:23 heap: 61.34 MiB; threads: 9; file descriptors: 50 2023-11-08 09:03:23 heap: 61.34 MiB; threads: 9; file descriptors: 51 2023-11-08 09:13:23 heap: 61.34 MiB; threads: 9; file descriptors: 154 2023-11-08 09:23:23 heap: 61.34 MiB; threads: 9; file descriptors: 232 2023-11-08 09:33:23 heap: 61.34 MiB; threads: 9; file descriptors: 282 2023-11-08 09:43:23 heap: 61.34 MiB; threads: 9; file descriptors: 385 2023-11-08 09:53:23 heap: 61.34 MiB; threads: 9; file descriptors: 489 2023-11-08 10:03:23 heap: 61.34 MiB; threads: 9; file descriptors: 608 2023-11-08 10:13:23 heap: 61.34 MiB; threads: 9; file descriptors: 665 2023-11-08 10:23:23 heap: 61.34 MiB; threads: 9; file descriptors: 706 2023-11-08 10:33:23 heap: 61.34 MiB; threads: 9; file descriptors: 760 2023-11-08 10:43:23 heap: 61.34 MiB; threads: 9; file descriptors: 802 2023-11-08 10:53:23 heap: 61.34 MiB; threads: 9; file descriptors: 865 2023-11-08 11:03:23 heap: 61.34 MiB; threads: 9; file descriptors: 969 2023-11-08 11:13:24 heap: 61.34 MiB; threads: 9; file descriptors: 0 2023-11-08 11:23:24 heap: 61.34 MiB; threads: 9; file descriptors: 0 --8<---------------cut here---------------end--------------->8--- Looking at the logs, the FD leak may come from this: --8<---------------cut here---------------start------------->8--- 2023-11-08 09:03:35 GET /eval/903503 2023-11-08 09:03:35 In cuirass/http.scm: 2023-11-08 09:03:35 1074:25 11 (url-handler _ _ _) 2023-11-08 09:03:35 295:4 10 (evaluation-html-page #< id: 90350?> ?) 2023-11-08 09:03:35 In cuirass/logging.scm: 2023-11-08 09:03:35 111:18 9 (call-with-time-logging "builds request fo= r evaluation?" ?) 2023-11-08 09:03:35 In ice-9/boot-9.scm: 2023-11-08 09:03:35 1752:10 8 (with-exception-handler _ _ #:unwind? _ # = _) 2023-11-08 09:03:35 In cuirass/utils.scm: 2023-11-08 09:03:35 99:24 7 (_) 2023-11-08 09:03:35 In cuirass/database.scm: 2023-11-08 09:03:35 1503:2 6 (_ _) 2023-11-08 09:03:35 1439:28 5 (proc _) 2023-11-08 09:03:35 In ice-9/boot-9.scm: 2023-11-08 09:03:35 1685:16 4 (raise-exception _ #:continuable? _) 2023-11-08 09:03:35 In cuirass/utils.scm: 2023-11-08 09:03:35 96:12 3 (_ #<&compound-exception components: (#<&e= rror> #<&orig?>) 2023-11-08 09:03:35 In fibers/operations.scm: 2023-11-08 09:03:35 154:10 2 (perform-operation _) 2023-11-08 09:03:35 In fibers/scheduler.scm: 2023-11-08 09:03:35 357:6 1 (suspend-current-task _) 2023-11-08 09:03:35 In ice-9/boot-9.scm: 2023-11-08 09:03:35 1685:16 0 (raise-exception _ #:continuable? _) 2023-11-08 09:03:35 Attempt to suspend fiber within continuation barrier --8<---------------cut here---------------end--------------->8--- Fortunately, this is easy to reproduce: --8<---------------cut here---------------start------------->8--- $ ./pre-inst-env guile GNU Guile 3.0.9 Copyright (C) 1995-2023 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> ,use(fibers) scheme@(guile-user)> ,use(cuirass utils) scheme@(guile-user)> (run-fibers (lambda () (define pool (make-resource-pool (iota 10))) (with-resource-from-pool pool x (pk 'x x) (throw 'doh!)))) ;;; (x 0) Uncaught exception in task: In fibers.scm: 186:20 9 (_) 145:21 8 (_) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In cuirass/utils.scm: 99:24 6 (_) In current input: 6:44 5 (_ _) In ice-9/boot-9.scm: 1685:16 4 (raise-exception _ #:continuable? _) In cuirass/utils.scm: 96:12 3 (_ #<&compound-exception components: (#<&error> #<&irritants i= rritants: ()> #<&exception-with-kind-and-args kind: doh! args: ()>)>) In fibers/operations.scm: 154:10 2 (perform-operation _) In fibers/scheduler.scm: 357:6 1 (suspend-current-task _) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: Attempt to suspend fiber within continuation barrier --8<---------------cut here---------------end--------------->8--- To be continued=E2=80=A6 Ludo=E2=80=99.