From: Leo Prikler <leo.prikler@student.tugraz.at>
To: "Nicolò Balzarotti" <anothersms@gmail.com>, 47761@debbugs.gnu.org
Subject: bug#47761: Guile Segfaulting on guix build -f
Date: Wed, 14 Apr 2021 00:54:27 +0200 [thread overview]
Message-ID: <f3d7037dc9fa22d3d71134dd752cca39cd32ce5d.camel@student.tugraz.at> (raw)
In-Reply-To: <87im4pooif.fsf@guixSD.i-did-not-set--mail-host-address--so-tickle-me>
Hi Nicolò
Am Dienstag, den 13.04.2021, 23:36 +0200 schrieb Nicolò Balzarotti:
> Hi guix!
>
> A package definition that used to build fine, recently (don't know
> exactly when) started failing, with guile segfaulting.
>
> After removing a few things, it seems that the MWE is this:
>
> echo '(use-modules (guix git-download)) (git-predicate "repo")'>m.scm
> mkdir repo
> guix build -f m.scm
> Segmentation fault
>
> guix describe:
>
> guix 2a62425
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 2a624253bc55e2a94f6581d6e790303575436c96
>
> One of the two computers provides substitute to the other, so maybe
> my
> guile is somehow damaged? Can any of you reproduce it?
I managed to somewhat isolate the bug even further:
(let* ((directory (string-append (canonicalize-path directory) "/"))
(dot-git (repository-discover directory)) ; <- here
(repository (repository-open dot-git))
(workdir (repository-working-directory repository))
(head (repository-head repository))
(oid (reference-target head))
(commit (commit-lookup repository oid))
(tree (commit-tree commit))
(files (tree-list tree)))
repository-discover is an FFI call into libgit2, that appears to be
segfaulting while… trying to prettify some filename? At least that's
what "git_path_prettify", which lies on the call trace sounds like.
Regards,
Leo
next prev parent reply other threads:[~2021-04-13 22:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-13 21:36 bug#47761: Guile Segfaulting on guix build -f Nicolò Balzarotti
2021-04-13 21:52 ` Nicolò Balzarotti
2021-04-13 22:33 ` Julien Lepiller
2021-04-13 22:54 ` Leo Prikler [this message]
2021-04-18 10:22 ` Ludovic Courtès
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=f3d7037dc9fa22d3d71134dd752cca39cd32ce5d.camel@student.tugraz.at \
--to=leo.prikler@student.tugraz.at \
--cc=47761@debbugs.gnu.org \
--cc=anothersms@gmail.com \
/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).