From debbugs-submit-bounces@debbugs.gnu.org Sun Mar 21 10:39:09 2021 Received: (at 46212) by debbugs.gnu.org; 21 Mar 2021 14:39:09 +0000 Received: from localhost ([127.0.0.1]:55238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNzES-0002xB-Mp for submit@debbugs.gnu.org; Sun, 21 Mar 2021 10:39:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNzEQ-0002wg-K0 for 46212@debbugs.gnu.org; Sun, 21 Mar 2021 10:39:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:40456) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNzEL-0003KW-Be; Sun, 21 Mar 2021 10:39:01 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=37198 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lNzEK-0002lD-Hc; Sun, 21 Mar 2021 10:39:00 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Christopher Baines Subject: Re: bug#46212: ci.guix.gnu.org narinfos with excessive NarSize References: <87zh0pf9ip.fsf@cbaines.net> <87r1lzftnx.fsf@cbaines.net> Date: Sun, 21 Mar 2021 15:38:58 +0100 In-Reply-To: <87r1lzftnx.fsf@cbaines.net> (Christopher Baines's message of "Mon, 01 Feb 2021 19:57:06 +0000") Message-ID: <874kh43725.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46212 Cc: Mathieu Othacehe , 46212@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi there! Christopher Baines skribis: > Guix gives the following error when it encounters one of these bad > narinfos: > > error: integer expected from stream I get this while attempting to install flightgear from 12c17b46f1464db5591572754c814c845a2057ad. It has the scary NarSize: --8<---------------cut here---------------start------------->8--- $ wget -qO - https://ci.guix.gnu.org/k094mjy3m1cyh85vd27l2gn0w5ikscya.narin= fo | head -9 StorePath: /gnu/store/k094mjy3m1cyh85vd27l2gn0w5ikscya-flightgear-2018.3.5 URL: nar/gzip/k094mjy3m1cyh85vd27l2gn0w5ikscya-flightgear-2018.3.5 Compression: gzip FileSize: 1797450320 URL: nar/lzip/k094mjy3m1cyh85vd27l2gn0w5ikscya-flightgear-2018.3.5 Compression: lzip FileSize: 1605734577 NarHash: sha256:0bwyhvqr7l5sk6fckymj41bivm6ws09aid8lg6lg0bmy513kn0aw NarSize: 18446744072099352280 --8<---------------cut here---------------end--------------->8--- The nar was baked on March 17th: --8<---------------cut here---------------start------------->8--- ludo@berlin ~$ ls -l /var/cache/guix/publish/lzip/k094mjy3m1cyh85vd27l2gn0w= 5ikscya-flightgear-2018.3.5.narinfo -rw-r--r-- 2 guix-publish guix-publish 2232 Mar 17 22:20 /var/cache/guix/pu= blish/lzip/k094mjy3m1cyh85vd27l2gn0w5ikscya-flightgear-2018.3.5.narinfo --8<---------------cut here---------------end--------------->8--- The nar size is indeed negative again: --8<---------------cut here---------------start------------->8--- ludo@berlin ~$ sudo sqlite3 /var/guix/db/db.sqlite SQLite version 3.28.0 2019-04-16 19:49:53 Enter ".help" for usage hints. sqlite> select * from validpaths where path=3D'/gnu/store/k094mjy3m1cyh85vd= 27l2gn0w5ikscya-flightgear-2018.3.5'; 45484766|/gnu/store/k094mjy3m1cyh85vd27l2gn0w5ikscya-flightgear-2018.3.5|sh= a256:5c013b4728be2ef0a87914b5a812d0dcd41d5720b2fac99c99bad093f1869e2f|16158= 25221|/gnu/store/r995zx36fm4k4r1mwyy22mg2syjdc0fj-flightgear-2018.3.5.drv|-= 1610199336 --8<---------------cut here---------------end--------------->8--- Registration date is: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (date->string (time-utc->date (make-time time-utc 0 16= 15825221) 3600)) $11 =3D "Mon Mar 15 17:20:21+0100 2021" --8<---------------cut here---------------end--------------->8--- Right now berlin is running guix-1.2.0-13.a53f711, which AFAICS includes the narsize bound checking added in 13a7d2a538b00aa0a8cf9b999f1a4ff3e5959af= 9. This only ensures that narsize is positive. Could it be that wrapping happens in sqlite itself? Or could it be that Cuirass itself uses an older version of (guix store database)? Ludo=E2=80=99.