all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#47761: Guile Segfaulting on guix build -f
@ 2021-04-13 21:36 Nicolò Balzarotti
  2021-04-13 21:52 ` Nicolò Balzarotti
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Nicolò Balzarotti @ 2021-04-13 21:36 UTC (permalink / raw)
  To: 47761

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?

Thanks, Nicolò




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47761: Guile Segfaulting on guix build -f
  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
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Nicolò Balzarotti @ 2021-04-13 21:52 UTC (permalink / raw)
  To: 47761

Nicolò Balzarotti <anothersms@gmail.com> writes:

> mkdir repo
> guix build -f m.scm
> Segmentation fault

I wanted to add that

$ guile m.scm

does not crash, don't know if this is of any help




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47761: Guile Segfaulting on guix build -f
  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
  2021-04-18 10:22 ` Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Julien Lepiller @ 2021-04-13 22:33 UTC (permalink / raw)
  To: Nicolò Balzarotti; +Cc: 47761

Le Tue, 13 Apr 2021 23:36:40 +0200,
Nicolò Balzarotti <anothersms@gmail.com> a écrit :

> 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?
> 
> Thanks, Nicolò
> 
> 
> 

I can reproduce the segfault when "repo" is a directory that exists
(seems to be independent from content, I can reproduce with an empty
directory and an actually git repository), from guix repl:

scheme@(guix-user)> (use-modules (guix git-download))
scheme@(guix-user)> (git-predicate "repo")
Erreur de segmentation




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47761: Guile Segfaulting on guix build -f
  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
  2021-04-18 10:22 ` Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Leo Prikler @ 2021-04-13 22:54 UTC (permalink / raw)
  To: Nicolò Balzarotti, 47761

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





^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#47761: Guile Segfaulting on guix build -f
  2021-04-13 21:36 bug#47761: Guile Segfaulting on guix build -f Nicolò Balzarotti
                   ` (2 preceding siblings ...)
  2021-04-13 22:54 ` Leo Prikler
@ 2021-04-18 10:22 ` Ludovic Courtès
  3 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2021-04-18 10:22 UTC (permalink / raw)
  To: Nicolò Balzarotti; +Cc: 47761-done

Hi Nicolò,

Nicolò Balzarotti <anothersms@gmail.com> skribis:

> 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

This is now fixed:

  https://issues.guix.gnu.org/47797

Thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-18 10:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2021-04-18 10:22 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.