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 ms0.migadu.com with LMTPS id SB/GBDbw+WHCOQEAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 03:45:10 +0100 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 0EEUAjbw+WG7JAEA9RJhRA (envelope-from ) for ; Wed, 02 Feb 2022 03:45:10 +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 B34E8205A7 for ; Wed, 2 Feb 2022 03:45:09 +0100 (CET) Received: from localhost ([::1]:37692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nF5ds-0007yl-1f for larch@yhetil.org; Tue, 01 Feb 2022 21:45:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nF0aG-0004Zq-6X for bug-guix@gnu.org; Tue, 01 Feb 2022 16:21:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51404) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nF0aE-0001wu-7m for bug-guix@gnu.org; Tue, 01 Feb 2022 16:21:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nF0aE-0003R3-4G for bug-guix@gnu.org; Tue, 01 Feb 2022 16:21:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#53696: Integer overflow on Guix GC size calculation Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 01 Feb 2022 21:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53696 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ekaitz Zarraga , 53696@debbugs.gnu.org Received: via spool by 53696-submit@debbugs.gnu.org id=B53696.164375042713152 (code B ref 53696); Tue, 01 Feb 2022 21:21:02 +0000 Received: (at 53696) by debbugs.gnu.org; 1 Feb 2022 21:20:27 +0000 Received: from localhost ([127.0.0.1]:44307 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nF0Zf-0003Q3-Ey for submit@debbugs.gnu.org; Tue, 01 Feb 2022 16:20:27 -0500 Received: from mail-ej1-f65.google.com ([209.85.218.65]:40840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nF0Ze-0003Po-0Z for 53696@debbugs.gnu.org; Tue, 01 Feb 2022 16:20:26 -0500 Received: by mail-ej1-f65.google.com with SMTP id p15so58170931ejc.7 for <53696@debbugs.gnu.org>; Tue, 01 Feb 2022 13:20:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=FTGg6816TWHxkAKV+uDGJ9e6MztmK5W0Q/NdzDnkCOI=; b=hyW0yUiocS6KtO/E1WnN8W/MN8QYs+aHQGtPxxRH82OD//3ULJO2ywpyqD1AgqLpQJ H/zZJ/pfRPeqwXVvbbMWbLeqB/w7E3X3bc+DOkf7c1L1N6zwFroOqMok10Ijimz3eaoq +aoPDwhw75Qw3cqA+O0FUrTaovZnhrYGsgb/TjzLGKo0xVGTtIMugxRxvav7m6AtGy2n 5i2ena2qslzPFjktVTvs0i7jAYeD3vlgnnnpD10j9BgUKUTxZVL3KZjkW1dWptfN+cLK kS4yJb3+YbUzQ1xLQ1NVFBFOMsiWEfi5nmixngID+HKA6NhtzsAGno/BuqTrjlC7y/NZ ++vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=FTGg6816TWHxkAKV+uDGJ9e6MztmK5W0Q/NdzDnkCOI=; b=MchCHyjR3u2nVMS2leWlmrxavHDsllLVm6AIWUCM2kgqqY4BBI1jrl37jqhp6d/vWk IhisYu5bmPDDWx+HXzK/mzFrHPQ1/TLaDIAj5t4LpuyyTo6gTFxyYHQLbXCans2tdA69 WIWYpb5M3fm55xMsOePFFLdmJEBF2whmIykWli2/Ksu08FW4E7H5Vts9RNhG0nR88kQu au5RpoS+2LzZmtPeCQ7Q4cQ/GBQ2SycY5TNUt2162sSHgQmTDBeQi/7wrMiWlW1mwX9h IDs9YW6N8pOMsfWQOqTTl+JbFSOSwpCemrNOQgbKHwAXFJI+7gMcxxTwnQyBghZoicOY RPKQ== X-Gm-Message-State: AOAM533Fh/xQeXBWrCkJpD2ztjVrolSu0ugJEpj4A8d+BhO4ivegg7aw 62mrlk1O8+muX8D3H1yzbuA= X-Google-Smtp-Source: ABdhPJzNw9rUr54n9ruNqDe+NE5dWk8jBwvpLKoopnmRArnp74VRAaeyJGJv/BK8+//InX8fZxhAuw== X-Received: by 2002:a17:906:1e14:: with SMTP id g20mr21397303ejj.251.1643750420044; Tue, 01 Feb 2022 13:20:20 -0800 (PST) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id d22sm6905410ejr.138.2022.02.01.13.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Feb 2022 13:20:19 -0800 (PST) Message-ID: From: Liliana Marie Prikler Date: Tue, 01 Feb 2022 22:20:18 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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" 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=1643769909; 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-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=FTGg6816TWHxkAKV+uDGJ9e6MztmK5W0Q/NdzDnkCOI=; b=EfXoXgW33xkvnfvbNz4Iy3aG7jCFe0JMjuaqt6O62eFZye2ID1u9FXx2JRW6jtkj4U6Am0 JOFOaNmYugTp7dJ4aABPbxjv//Sy+F8cYUtx5oSqN9Lp8t4C24tPHqh0uzVeIMGtrlOw2b YDNbi8f+f+LEwMkNr4AC0FvXSer3YHjql28+5LKyyUPf2oTPi8qYXQ8OWIwwE3pxw/ytJM EmZacxVdvLVtBSfpEQ+knDqAVmP2Vm3+qzLDqb5VSaXI3/wCI7QA43YvBCXZtSMr6vaDu3 7bA1JxvzGX87wRgW9c8xDa7zRgrUEAnNWQRH/Qo2vus2i70FpsyXjw1XwtBBbg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643769909; a=rsa-sha256; cv=none; b=uhSceOS0SPLUCM1NzIUkXtcuOL2X+9cJZwmgNmc3ocnILiP8PdT0cM2/hr/e2POFDtYIos ayVv6fhQ6LqpnC5lE4NWVZnPKEWpSoEzRTehHJ87Lm2ZfvKxSzK6/JUgriqKyHqY7h/Wot Ap0xaqnlD1ULxlejhqOs2oRIa6IqUm0X1EU1MRJHf/e75tsTrg8wpRspOCIXTCDx+Qi2WL v2wsN147olRW87kZ2qzUt2gPMITt5jlObVeji205rO05i1UlZgKeiKX7NQ27kj+pftx/de CYeBT0bgke4RqIdgsJ/cMEJVDZaZXu1SV5zz9TUtU50fNgGpEGZNVubd6WglLw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hyW0yUio; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: -2.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=hyW0yUio; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: B34E8205A7 X-Spam-Score: -2.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: euAgIHsUKl+l Am Dienstag, dem 01.02.2022 um 14:06 +0000 schrieb Ekaitz Zarraga: > Hi, > > I noticed there's some kind of a wierd integer overflow on the size > calculation on `guix gc`: > > [17592186042896 MiB] deleting > '/gnu/store/j2s6kva8l20m6rjj10bnknq99jc9rg6w-ghc-random-1.2.0- > builder' > [17592186042896 MiB] deleting > '/gnu/store/8nx7zzj629qvv1533c48bl19wrkwcjh2-curl-7.79.1-doc' > [17592186042897 MiB] deleting > '/gnu/store/dcsi13588yyjws76s1wjc7h5spnjd2vn-ghc-kan-extensions- > 5.2.3-builder' > [17592186042897 MiB] deleting > '/gnu/store/5zrhw6kvb8wd3n6lazpblqzsg92y320b-ghc-sop-core-0.5.0.1- > builder' > [17592186042897 MiB] deleting > '/gnu/store/l2ya1z3la9qfdj9139f09q3djs36lw3l-ghc-aeson-pretty-0.8.9- > builder' > [17592186042897 MiB] deleting > '/gnu/store/8a8nbfxq508r7qywkhaw8jj8hicpfjh8-ghc-prelude-extras- > 0.4.0.3-builder' > [17592186042897 MiB] deleting > '/gnu/store/wbz6vkiz7cq8c531xvb31lxm28nz332i-ghc-8.10.7' > [19 MiB] deleting '/gnu/store/i5np7ifiabg333g2l8ycmvbhimnrrx8k-ghc- > 8.10.7-doc' > [170 MiB] deleting '/gnu/store/yx9zjw9118gzfcx33adfwy6kghrzxkys-ghc- > pem-0.2.4-builder' > [170 MiB] deleting '/gnu/store/pinvkg1x5rpsgm95zhn50l6xq7rly43f-perl- > test-output-1.033.drv' > [170 MiB] deleting '/gnu/store/k1bdc950d62g1pw4yw1khgmfr32m3rpm-perl- > sub-exporter-0.988.drv' I find it somewhat concerning that you've accumulated more than 2^64 bytes of garbage. Are some items counted double here? Other than that, that's pretty normal size_t wraparound semantics. I don't think that number is used for anything other than displaying. Cheers