From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sJbWLe/ClGKn3wAAbAwnHQ (envelope-from ) for ; Mon, 30 May 2022 15:13:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AFvCLe/ClGKW/AAA9RJhRA (envelope-from ) for ; Mon, 30 May 2022 15:13:19 +0200 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 5FC5823725 for ; Mon, 30 May 2022 15:13:19 +0200 (CEST) Received: from localhost ([::1]:36228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nvfCw-0005VI-7E for larch@yhetil.org; Mon, 30 May 2022 09:13:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43870) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nvfAk-00031r-GJ for guix-patches@gnu.org; Mon, 30 May 2022 09:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49343) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nvfAk-0008B9-5W for guix-patches@gnu.org; Mon, 30 May 2022 09:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nvfAk-0006sy-0c for guix-patches@gnu.org; Mon, 30 May 2022 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55673] [PATCH v2] cache: Catch valid integer for 'last-expiry-cleanup'. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 30 May 2022 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Maxime Devos Cc: 55673@debbugs.gnu.org Received: via spool by 55673-submit@debbugs.gnu.org id=B55673.165391620826343 (code B ref 55673); Mon, 30 May 2022 13:11:01 +0000 Received: (at 55673) by debbugs.gnu.org; 30 May 2022 13:10:08 +0000 Received: from localhost ([127.0.0.1]:43232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvf9r-0006qp-Jt for submit@debbugs.gnu.org; Mon, 30 May 2022 09:10:07 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:45986) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nvf9o-0006pg-In for 55673@debbugs.gnu.org; Mon, 30 May 2022 09:10:05 -0400 Received: by mail-pf1-f179.google.com with SMTP id b135so10522759pfb.12 for <55673@debbugs.gnu.org>; Mon, 30 May 2022 06:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7ToDzmp+h4B5rl1XQRmIY86NWdFcEOq2o9ggZW7kryc=; b=eUmwRRJiLC4vmMVV8Cbc0jVwKNoRwD6IuVLpLmHC3o6HlkGqM4JbILxBPYNGBOj/M6 qZ9iDXGGXf8cGRqFf0p1A6g85wLGfPzVUqpDszaL7AMguPh1i+CwTSBWTB0rs4+k1DyU iia1XtRDS0TM/1wtnwUweBIzNxxYoZ/py8yhSfv6LTKmRYsKj/C1BZHtTD8BLiiZvXKB TQt2/oY4O4YxBpANQrjblfjUK4GLuW3xq9rV0yWmSudmqRjBCQRl537V1utWR+mR7jAh BFbidwB1xkUim5Y7N8J7cFkwxX2s2u7ouJKkeEElLCVPaZUPQJARv+L4m1ofcofQKIf/ vzRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7ToDzmp+h4B5rl1XQRmIY86NWdFcEOq2o9ggZW7kryc=; b=wzN2W5eSuXTG5TOzAUC36iB6iYBb7Tq5MYtkXUQagD3xMM2gaOCZHrvixhYrrB2wvG h/nQDeXEoxwR9FXND3vENZdH/FuQpyVI7+9LRzxdFeuS+OjAyYT+xsA+73Jax5AZ93rz Oif+GevoOga7X4qHyXwl3D1TzuhuDWX7LvZmOS4Iy+O0XepOQcEII4nOJdyHU6emM7lg v1QfD2Z8afivnJscVvziX/iTPWlJ/d29PNTH2TO4+CetRenw9nb+K6vatVZHnHELqwuM +IdPTYSDlaNgs/1iUs2Mtdtb0HuzIW+YdhAolix8aIOS7k62W0YwZ5SNrR+5dds2G4pn AuWg== X-Gm-Message-State: AOAM532/e571eSfkOvSCgZZ49RQ1ZgCDaGjpdHoRXnWpb9wDsakrUuH/ 5Xa/237GdW+XLYG8eszVEhqxm/AwupzHdvBo0/U= X-Google-Smtp-Source: ABdhPJyAxQPb28zHP8X2Y5KN2ue6pdXZPwCRFLvyJIKPr0NQL5jMFDHoqCH9s2SMo1Q3sCv5AEfJaD9AHsbP+X6crbg= X-Received: by 2002:a63:144c:0:b0:3fa:6f09:a3e4 with SMTP id 12-20020a63144c000000b003fa6f09a3e4mr31154132pgu.102.1653916198778; Mon, 30 May 2022 06:09:58 -0700 (PDT) MIME-Version: 1.0 References: <20220527082519.501697-1-zimon.toutoune@gmail.com> <20220527154652.700549-1-zimon.toutoune@gmail.com> <239d8888536d1573ecd466b96c8ff6170316daa2.camel@telenet.be> In-Reply-To: <239d8888536d1573ecd466b96c8ff6170316daa2.camel@telenet.be> From: zimoun Date: Mon, 30 May 2022 15:09:47 +0200 Message-ID: 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653916399; 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=7ToDzmp+h4B5rl1XQRmIY86NWdFcEOq2o9ggZW7kryc=; b=Vkxxd3qVq5Zsj3KHCPhDGaJe3MvmJOJ4EGJ9tlsCjHoSYO0PATgcVOs83ksz7Y7tG+Lkx1 h5man7Ea6/9VsFUs26bvlnl9rO1/OetSFIS2vkdp4FgOIA8FY9M8FRUGXFuM1OphqyErVU rZ1rnAW0MdQ8m/kqIe97Mx3v9AbmtVCTlUsfui6/aniQHwF5FcCtVFysrZVpnyWi6eqoAR iqvh4r3X0ytHb0OMjG+99W6HqS6vFxvtR8IYCe/0ppxZqOJNzdnEIJ+jSjMmDMpn8OYPQn 5XAHZQT4FVxOAO+h9S1riMykDrrdZEMBJJNTKdIp5oFBdJ3Ne32TX0shozzbRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653916399; a=rsa-sha256; cv=none; b=bdUzbrf17mPF+zAkE8FRhX6zZZ77WBgBvDfD9OFilfLeJ7aKlZ8U+5dx+DX4TTCjDp5Xqs /ZvZkyMmzSUBd1O5/BnE+cZPEFn59CN4rPaWZ45GZPOs+bVSI+z2HzbQW1jZ756tBYpTuG glVFFRh4/2CrGoRe4CtvlWbbgZ0C4aXvcZEa/xjcqtUyOstCZ1IE0VE6t56p2E8O+emlxY 9T6fk+OeLmwZEr+0XmN6IjMhdn2fZQzNKxTcUNIDKgsjTP5N6mEzfmPJZ4UzT9LFoA6jUX QLiy+yOJYLa1K7f7ZcCK7BlPTpsyV5Q6kG9kW/wnyG04S18eRo8zd1BeL9Yoxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eUmwRRJi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 5.47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=eUmwRRJi; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 5FC5823725 X-Spam-Score: 5.47 X-Migadu-Scanner: scn0.migadu.com X-TUID: TVlBX0jCxjwJ On Fri, 27 May 2022 at 19:33, Maxime Devos wrote: > Why are 'stack-error' and 'out-of-memory' being caught? > I recommend using one of the regexes from string->generations > in (guix ui) instead to avoid catching too much. Well, I have sent a v3. Note that that 'string->generations' does not catch the value out of range we are talking. --8<---------------cut here---------------start------------->8--- $ guix package --list-generations=3D12E4567890 Backtrace: 9 (primitive-load "/home/simon/.config/guix/current/bin/guix") In guix/ui.scm: 2230:7 8 (run-guix . _) 2193:10 7 (run-guix-command _ . _) In ice-9/boot-9.scm: 1752:10 6 (with-exception-handler _ _ #:unwind? _ #:unwind-for-type _) In guix/scripts/package.scm: 799:7 5 (_) In ice-9/boot-9.scm: 1747:15 4 (with-exception-handler # _ =E2=80=A6) In guix/scripts/package.scm: 810:16 3 (_) In guix/ui.scm: 1887:9 2 (matching-generations "12E4567890" "/var/guix/profiles/per-user/simon/guix-profile" =E2=80=A6) 1760:13 1 (string->generations _) In ice-9/boot-9.scm: 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure string->number: Value out of range: 4567890 --8<---------------cut here---------------end--------------->8--- Cheers, simon