unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Mark H Weaver <mhw@netris.org>
Cc: 47115@debbugs.gnu.org
Subject: bug#47115: Redundant library grafts leads to breakage
Date: Sat, 20 Mar 2021 12:01:24 +0100	[thread overview]
Message-ID: <87r1ka9ji3.fsf@gnu.org> (raw)
In-Reply-To: <8735wvjw25.fsf@netris.org> (Mark H. Weaver's message of "Tue, 16 Mar 2021 05:18:15 -0400")

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’.




  reply	other threads:[~2021-03-20 11:02 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-12 22:58 bug#47115: Failure building grub-img.png when reconfiguring Jack Hill
2021-03-12 23:05 ` Leo Famulari
2021-03-13  0:24   ` Mark H Weaver
2021-03-13  0:33     ` Jack Hill
2021-03-13  4:05       ` Jack Hill
2021-03-13  7:41         ` Mark H Weaver
2021-03-13 20:08           ` Jack Hill
2021-03-14  4:27             ` Jack Hill
2021-03-14 20:49               ` Jack Hill
2021-03-14 21:14                 ` Jack Hill
2021-03-14 22:00                   ` Jack Hill
2021-03-14 22:05               ` Mark H Weaver
2021-03-14 23:18                 ` Jack Hill
2021-03-15  0:11                   ` Mark H Weaver
2021-03-15  3:38                     ` Jack Hill
2021-03-15  3:52                       ` Jack Hill
2021-03-15 20:48                         ` Jack Hill
2021-03-16  1:41                           ` Jack Hill
2021-03-16  2:40                             ` Jack Hill
2021-03-16  8:26                               ` bug#47115: Grafts without deduplication can lead to breakage in Guile (was: Failure building grub-img.png when reconfiguring) Mark H Weaver
2021-03-16  9:18                                 ` bug#47115: Redundant library grafts leads to breakage " Mark H Weaver
2021-03-20 11:01                                   ` Ludovic Courtès [this message]
2021-03-14 22:18     ` bug#47115: Failure building grub-img.png when reconfiguring Leo Famulari
2021-03-13  0:25   ` Jack Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1ka9ji3.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=47115@debbugs.gnu.org \
    --cc=mhw@netris.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).