From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mBqYLfBmd2BP6AAAgWs5BA (envelope-from ) for ; Thu, 15 Apr 2021 00:04:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4GFGJ/Bmd2CvEgAAbx9fmQ (envelope-from ) for ; Wed, 14 Apr 2021 22:04:32 +0000 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 31D8F1B58F for ; Thu, 15 Apr 2021 00:04:32 +0200 (CEST) Received: from localhost ([::1]:51426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWncd-0002Se-Dt for larch@yhetil.org; Wed, 14 Apr 2021 18:04:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWncA-0002SO-AL for bug-guix@gnu.org; Wed, 14 Apr 2021 18:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52679) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWncA-0000Rk-02 for bug-guix@gnu.org; Wed, 14 Apr 2021 18:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWnc9-0004YK-QQ for bug-guix@gnu.org; Wed, 14 Apr 2021 18:04:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#47064: [racket-users] bytevector-uncompress: internal error uncompressing Resent-From: Philip McGrath Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Apr 2021 22:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47064 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Mark H Weaver , Jack Hill , 47064@debbugs.gnu.org Received: via spool by 47064-submit@debbugs.gnu.org id=B47064.161843782817477 (code B ref 47064); Wed, 14 Apr 2021 22:04:01 +0000 Received: (at 47064) by debbugs.gnu.org; 14 Apr 2021 22:03:48 +0000 Received: from localhost ([127.0.0.1]:35992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWnbt-0004Xl-22 for submit@debbugs.gnu.org; Wed, 14 Apr 2021 18:03:48 -0400 Received: from mail-qk1-f171.google.com ([209.85.222.171]:39523) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWnbn-0004XT-LB for 47064@debbugs.gnu.org; Wed, 14 Apr 2021 18:03:43 -0400 Received: by mail-qk1-f171.google.com with SMTP id e13so13346120qkl.6 for <47064@debbugs.gnu.org>; Wed, 14 Apr 2021 15:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philipmcgrath.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=MZfHZpeZK+lUIA+h/f0Byj4SwrGYgwjdkqQnycUsdaE=; b=ksQ+0j9DOfN5Fa8/3tygzUA+VPnIzm5heWubSN5fRAsYMOk9kbpjegj86Is84WLimo IzU1yhyAYXTjCVjsTBzwPhkOAj7lpDIzEU4aCNyNthIVuSR8IEZiWCsBONTcn6MJx0iq gYAja8h6pU4kS2zCe1UtyPTQIvP+wLrwAUfbpPGFlZY41Pls1sIoXUocj9J7Tqmoo/3w bz5crgDTZxb9dsPppgUDkitjIBBtJrVavWTkbGtw3N4zYQLPCF5sfTg3ph1n2jvqrrsV vfpxegLNgAAcKrVp0C3BHMzkHa8qvT8fb7nYP4tjuK1UX6Oy39fjQCuvgz+7TyNPCclg g5oQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MZfHZpeZK+lUIA+h/f0Byj4SwrGYgwjdkqQnycUsdaE=; b=TgNnR+VV5MoCxR2KQZXTcPD1eb9fd1ntkeIkzUtVyQNCDYwp7yvO17AE0deIoF/Pz/ 7XZBHiRkPoOUpkcdhaqiCjkfuIq7q18V8/G45AgMVXh0B8CypOdQN7yzYMc97ra0Tgcx f5vQU9dGtQIYKPNbfg47pngmas3/f6HFpJoRQMYKmzcpnNRocAE/jPCzHVfqQFDPW9pF gEF5DNGl8OPsp6wh09cpbrpn6Fw20vet6tqVKpeB+Zn8E1SBHWW+HKWvKjIz5QaePM+3 ETbbsP1Y+EvKhWJzAE4CrhsBWXiXYJpX4X3tHbbNmJKllZvodj5qzKqPy8VcJ64BIgOg G+Mg== X-Gm-Message-State: AOAM5318viUsVeGajAUqasv5YiucT6v8lP5z4ArGnU+XXLlUAnh0dGcp uxRvM0K6ajHpo0jHhJvlouvWeb7xC5KiZ6WOYR0= X-Google-Smtp-Source: ABdhPJxOi5rtkcw2E/Kf+v5botT6yEtx5vhWJuiD2a20w7mrkCV3V1HOGc1oCIdtI3V+I4hDF2uCXw== X-Received: by 2002:a37:ac14:: with SMTP id e20mr565727qkm.388.1618437812175; Wed, 14 Apr 2021 15:03:32 -0700 (PDT) Received: from Sapientia.local (c-73-125-89-242.hsd1.fl.comcast.net. [73.125.89.242]) by smtp.gmail.com with ESMTPSA id l124sm614497qkf.31.2021.04.14.15.03.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Apr 2021 15:03:31 -0700 (PDT) References: <07f46e79-4fdb-49ab-63bd-2c106db077d1@philipmcgrath.com> <79c97b4c-defb-3966-dc50-a79fa8f5c053@philipmcgrath.com> <53940c03-4f40-3954-0cb4-3d4ae01c39a2@philipmcgrath.com> <87o8ehquk6.fsf@netris.org> From: Philip McGrath Message-ID: Date: Wed, 14 Apr 2021 18:03:30 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <87o8ehquk6.fsf@netris.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1618437872; 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=MZfHZpeZK+lUIA+h/f0Byj4SwrGYgwjdkqQnycUsdaE=; b=tLC2LjozqqmL+Vlr4I3ogICyi/KTs92Hum2DfEoYuf41lPGfzfml2S4mbJPE12chUyAV9p e8XwCgi3EYi4dTtdsiF3jdfkgjb1L87oHriGY5eUFtoF6HbAncvYVdfQ7NqrmwFPCbbYSq jHc5EBluNN6jfIbnLHll4XKig67R/og5fM94Bq4nsSLeNyMpDrN0RE1bUFymon6KAfYXNi aiHRu9MpbDtOnjWxf/dv4B2FgUPgY/s7astAe/I4ymsMhl4Mmy6SI7iMQSEl7ooUWeRzkb WDJ0svTzK4+671pnuYOUpeWMU4LIIX0NsF6TtTpygP/L4obkvAbPl5ZqWEC3ig== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1618437872; a=rsa-sha256; cv=none; b=O9XZ3obJOPv9/MqoQUs64jHqSPWw6eLQS2mFboC1INyeeYrHhBSb1Z7ZlRg+OGmP7cY1Io e3tAboLcWilA7LbY7daYmFr5vjdgU+2MplN1BV387okoU4wmchKa2UMNLiUxeBlnaF7F7/ b7OpZWObuZ2Ulpah7nnQmfOyq81GMAgUCjjqh94wyohIO8OvQzUZUtvHE1BqTDd4R50ftK 7qhLmjF/TJjfCe1W66XZZpYZnPUnyuYy/sFovWZ412y/g4+5Al3JJkqkSGvSW6mN2GDacA s61IepDGgghrRJX+NFkXhwnehobJ5GDCHn1GeLgrZPDxBqwiyNTJYz3xSATDwA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=ksQ+0j9D; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.44 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=philipmcgrath.com header.s=google header.b=ksQ+0j9D; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: 31D8F1B58F X-Spam-Score: -1.44 X-Migadu-Scanner: scn0.migadu.com X-TUID: nQtTbeHbdJiN Hi Mark and everyone, On 4/14/21 1:54 AM, Mark H Weaver wrote: > Recall that the grafting code performs a set of substitutions, replacing > store item names (i.e. file names in /gnu/store) with replacement store > items of the same length, with rules like: > "fx3979c88s9yxdbchyf36qryawgzpwb5-libx11-1.6.10" => > "rwkqxykm91a75w9afhb41saj0dmf30hw-libx11-1.6.12". > > The grafting code currently only checks the first 33 bytes, consisting > of the nix-base32 hash and the "-". It *assumes* that the remainder of > the associated store item name immediately follows, and blindly writes > the replacement string over whatever is there. > > In this case, I suspect that within a *.zo file, a Guix store item name > was split into pieces, with the hash and "-" together in one piece but > split somewhere between the "-" and the last byte of the store item. > This results in corruption of the bytes following that piece. > > I've recently observed the splitting of store item names in *.zo files > (see ), but in that case the "-" was > separated from the hash, and as a result the reference was _invisible_ > to the grafter. Yes, I agree with this diagnosis. It seems the discussion has become a bit fragmented, since Jack first reported one set of symptoms in and you then reported another in (with much better forensics than I'd found on my own—thanks!). Both issues should have been fixed (at least with respect to Racket) by my patch in , which was applied on Monday. -Philip