GNU bug report logs

#47115 Redundant library grafts leads to breakage

PackageSource(s)Maintainer(s)
guix PTS Buildd Popcon
Full log

Message #86 received at 47115@debbugs.gnu.org (full text, mbox, reply):

Received: (at 47115) by debbugs.gnu.org; 20 Mar 2021 11:01:52 +0000
From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 20 07:01:51 2021
Received: from localhost ([127.0.0.1]:51615 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
	id 1lNZMd-000069-L3
	for submit@debbugs.gnu.org; Sat, 20 Mar 2021 07:01:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:44366)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@gnu.org>) id 1lNZMb-0008S9-Nc
 for 47115@debbugs.gnu.org; Sat, 20 Mar 2021 07:01:50 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:52373)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ludo@gnu.org>)
 id 1lNZMS-0006UR-QH; Sat, 20 Mar 2021 07:01:42 -0400
Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33242 helo=ribbon)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <ludo@gnu.org>)
 id 1lNZMD-00016k-UH; Sat, 20 Mar 2021 07:01:37 -0400
From: Ludovic Courtès <ludo@gnu.org>
To: Mark H Weaver <mhw@netris.org>
Subject: Re: bug#47115: Redundant library grafts leads to breakage
References: <alpine.DEB.2.21.2103121747190.8138@marsh.hcoop.net>
 <YEvznooRt4wUjDtA@jasmine.lan> <87a6r7294k.fsf@netris.org>
 <alpine.DEB.2.21.2103121931030.8138@marsh.hcoop.net>
 <alpine.DEB.2.21.2103122301220.8138@marsh.hcoop.net>
 <877dmb1owa.fsf@netris.org>
 <alpine.DEB.2.21.2103131506140.8138@marsh.hcoop.net>
 <alpine.DEB.2.21.2103132302490.8138@marsh.hcoop.net>
 <874khds84o.fsf@netris.org>
 <alpine.DEB.2.21.2103141914430.8138@marsh.hcoop.net>
 <87y2epqnq8.fsf@netris.org>
 <alpine.DEB.2.21.2103142334250.8138@marsh.hcoop.net>
 <alpine.DEB.2.21.2103142350500.8138@marsh.hcoop.net>
 <alpine.DEB.2.21.2103151642290.8138@marsh.hcoop.net>
 <alpine.DEB.2.21.2103152139000.8138@marsh.hcoop.net>
 <alpine.DEB.2.21.2103152233590.8138@marsh.hcoop.net>
 <875z1rjyfn.fsf@netris.org> <8735wvjw25.fsf@netris.org>
Date: Sat, 20 Mar 2021 12:01:24 +0100
In-Reply-To: <8735wvjw25.fsf@netris.org> (Mark H. Weaver's message of "Tue, 16
 Mar 2021 05:18:15 -0400")
Message-ID: <87r1ka9ji3.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: 47115
Cc: 47115@debbugs.gnu.org, Jack Hill <jackhill@jackhill.us>
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit@debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request@debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request@debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -1.7 (-)
Hi Mark,

Mark H Weaver <mhw@netris.org> skribis:

> I think that my last hypothesis was on the right track, but not quite
> right:
>
> * Instead of 'libcairo' being loaded twice, I now suspect that
>   "libguile-cairo.so" is being loaded twice.
>
> * Instead of the original and replacement libraries being loaded, I now
>   suspect that two different variants of the replacement "guile-cairo"
>   are being loaded.
>
> * Instead of libcairo type tags being duplicated, I now suspect that
>   duplicated smob tags are being allocated.
>
> However, *if* deduplication is enabled, two redundant replacements
> created by grafting _should_ occupy the same inodes, assuming that the
> replacement mappings are the same (modulo ordering), and assuming that
> /gnu/store/.links doesn't hit a directory size limit (which can happen
> on ext3/4, leading to missed deduplication opportunities).

Woow, thanks for the investigation!  You wouldn’t think that
deduplication can have an effect on this kind of bug.

> I've known about these redundant replacements in Guix for many years,
> but was not aware of any significant practical problems arising from
> them until now.

Do you know why the two guile-cairo grafts differ in this case?

I’m aware of one case that can lead to that: the grafting code can
create grafts for just one output of the original derivation, or for all
of them (commit 482fda2729c3e76999892cb8f9a0391a7bd37119).  Maybe that’s
what’s happening here?

Thank you!

Ludo’.




Send a report that this bug log contains spam.


debbugs.gnu.org maintainers <help-debbugs@gnu.org>. Last modified: Sun Dec 22 15:52:17 2024; Machine Name: wallace-server

GNU bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.