GNU bug report logs - #36811
Guile crashes with libgc 8.0.4

Previous Next

Package: guile;

Reported by: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>

Date: Thu, 25 Jul 2019 18:27:02 UTC

Severity: important

Merged with 36812, 39208, 39241, 39266, 39988

Done: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 36811 in the body.
You can then email your comments to 36811 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Thu, 25 Jul 2019 18:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Brielmaier <jonathan.brielmaier <at> web.de>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Thu, 25 Jul 2019 18:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: bug-guile <at> gnu.org, bug-guix <bug-guix <at> gnu.org>
Subject: Guix fails to build with libgc 8.0.4
Date: Thu, 25 Jul 2019 20:26:15 +0200
[Message part 1 (text/plain, inline)]
Some days ago Guix failed to build on openSUSE Tumbleweed. Today I
started to investigate it.

Guix fails to build on Tumbleweed with `make -j4` or a greater thread
count (see guile_coredump_building_guix.log)

It doesn't fail to build with `make -j3` or less threads and when
building inside of `guix environment --pure guix`.

I then started to look around what could differ between Tumbleweed and
guix environment. My first assumption was kind of hit :)

Tumbleweed is built since some days with libgc 8.0.4 and Guix is still
on 7.6.6. In my home project[0] I have built now Guix (and Guile) with
libgc 7.6.4, the version Tumbleweed used before. Guix builds now with
`make -j4` and greater again on Tumbleweed...

So it seems that guile is not compatible with libgc 8.x yet? Is this
correct?

I wanted to update libgc in guix but it has 5k dependencies, so I did not :P

Any Ideas how to fix this? Do you need any further information from me?

Cheers Jonathan

[0] https://build.opensuse.org/project/show/home:jbrielmaier:guix



[guile_coredump_building_guix.log (text/x-log, attachment)]

Merged 36811 36812. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 18 Nov 2019 14:11:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Mon, 18 Nov 2019 14:14:03 GMT) Full text and rfc822 format available.

Message #10 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: bug-guix <at> gnu.org, 36811 <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Mon, 18 Nov 2019 15:13:06 +0100
Hi Jonathan,

Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:

> Guix fails to build on Tumbleweed with `make -j4` or a greater thread
> count (see guile_coredump_building_guix.log)
>
> It doesn't fail to build with `make -j3` or less threads and when
> building inside of `guix environment --pure guix`.
>
> I then started to look around what could differ between Tumbleweed and
> guix environment. My first assumption was kind of hit :)
>
> Tumbleweed is built since some days with libgc 8.0.4 and Guix is still
> on 7.6.6. In my home project[0] I have built now Guix (and Guile) with
> libgc 7.6.4, the version Tumbleweed used before. Guix builds now with
> `make -j4` and greater again on Tumbleweed...
>
> So it seems that guile is not compatible with libgc 8.x yet? Is this
> correct?

To isolate the problem, how about:

  1. Defining a Guix package for libgc 8.0.4;

  2. Running “guix build guile --with-input=libgc <at> 7=libgc <at> 8” (or
     defining a package along these lines).

?

Thanks in advance,
Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Mon, 18 Nov 2019 14:14:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Tue, 19 Nov 2019 12:10:02 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: bug-guix <at> gnu.org, 36811 <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Tue, 19 Nov 2019 13:09:19 +0100
On 18.11.19 15:13, Ludovic Courtès wrote:
> To isolate the problem, how about:
>
>    1. Defining a Guix package for libgc 8.0.4;
>
>    2. Running “guix build guile --with-input=libgc <at> 7=libgc <at> 8” (or
>       defining a package along these lines).

I did this and the build was fine as I expected. Guile builds fine
against libgc-8. But building Guix with a guile-libgc8 goes wrong.

I got now this little patch and try to build guix with:
./pre-inst-env guix build guix -K

```
diff --git a/gnu/packages/bdw-gc.scm b/gnu/packages/bdw-gc.scm
index 7196ffcd32..172833780f 100644
--- a/gnu/packages/bdw-gc.scm
+++ b/gnu/packages/bdw-gc.scm
@@ -91,6 +91,19 @@ C or C++ programs, though that is not its primary goal.")

    (license (x11-style (string-append home-page "license.txt")))))

+(define-public libgc-8
+  (package
+    (inherit libgc)
+    (version "8.0.4")
+    (name "libgc")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/ivmai/bdwgc/releases"
+                                "/download/v" version "/gc-" version
".tar.gz"))
+            (sha256
+             (base32
+              "1798rp3mcfkgs38ynkbg2p47bq59pisrc6mn0l20pb5iczf0ssj3"))))))
+
 (define-public libgc/back-pointers
   (package
     (inherit libgc)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 4419c48d1a..bc69488fa2 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -250,6 +250,14 @@ without requiring the source code to be rewritten.")
             (variable "GUILE_LOAD_COMPILED_PATH")
             (files '("lib/guile/2.2/site-ccache")))))))

+(define-public guile-2.2-libgc8
+  (package
+    (inherit guile-2.2)
+    (propagated-inputs
+     `(("libgc" ,libgc-8)
+       ,@(srfi-1:alist-delete "bdw-gc"
+                      (package-propagated-inputs guile-2.2))))))
+
 (define-public guile-2.2/fixed
   ;; A package of Guile 2.2 that's rarely changed.  It is the one used
   ;; in the `base' module, and thus changing it entails a full rebuild.
diff --git a/gnu/packages/package-management.scm
b/gnu/packages/package-management.scm
index 1daab4e879..d80e71749d 100644
--- a/gnu/packages/package-management.scm
+++ b/gnu/packages/package-management.scm
@@ -285,7 +285,7 @@
          ("sqlite" ,sqlite)
          ("libgcrypt" ,libgcrypt)

-         ("guile" ,guile-2.2)
+         ("guile" ,guile-2.2-libgc8)

          ;; Some of the tests use "unshare" when it is available.
          ("util-linux" ,util-linux)
```




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Tue, 19 Nov 2019 12:15:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Tue, 19 Nov 2019 13:35:01 GMT) Full text and rfc822 format available.

Message #22 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: 36811 <at> debbugs.gnu.org
Cc: Ludovic Courtès <ludo <at> gnu.org>
Subject: Guix fails to build with libgc 8.0.4
Date: Tue, 19 Nov 2019 14:33:56 +0100
This failed with the same result:

/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash:
line 7: 25584 Aborted                 (core dumped)
XDG_CACHE_HOME=/nowhere host=x86_64-unknown-linux-gnu srcdir="."
./pre-inst-env
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/bin/guile -L "."
-L "." --no-auto-compile -s "."/build-aux/compile-all.scm [*.scm]

Core was generated by
`/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/bin/guile -L .
-L . --n'.
Program terminated with signal SIGABRT, Aborted.
#0  0x00007ffff78bd7fa in raise () from
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libc.so.6
[Current thread is 1 (LWP 25883)]
(gdb) bt
#0  0x00007ffff78bd7fa in raise () from
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libc.so.6
#1  0x00007ffff78be891 in abort () from
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libc.so.6
#2  0x00007ffff7e404ee in GC_unmap () from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#3  0x00007ffff7e405d1 in GC_unmap_old.part.30 ()
   from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#4  0x00007ffff7e47882 in GC_finish_collection ()
   from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#5  0x00007ffff7e47cf5 in GC_try_to_collect_inner ()
   from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#6  0x00007ffff7e4b570 in GC_grow_table ()
   from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#7  0x00007ffff7e4bc8a in GC_register_finalizer_inner ()
   from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#8  0x00007ffff7ef55f1 in scm_i_set_finalizer ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#9  0x00007ffff7f12b3e in scm_logior ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#10 0x00007ffff7f66062 in vm_regular_engine ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#11 0x00007ffff7f69fd7 in scm_call_n ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#12 0x00007ffff7edd3b8 in scm_call_with_unblocked_asyncs ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#13 0x00007ffff7f6779f in vm_regular_engine ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#14 0x00007ffff7f69fd7 in scm_call_n ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#15 0x00007ffff7f57726 in really_launch ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#16 0x00007ffff7ee635a in c_body ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#17 0x00007ffff7f6779f in vm_regular_engine ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#18 0x00007ffff7f69fd7 in scm_call_n ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#19 0x00007ffff7f58c12 in catch ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#20 0x00007ffff7ee6940 in scm_i_with_continuation_barrier ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#21 0x00007ffff7ee69d5 in scm_c_with_continuation_barrier ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#22 0x00007ffff7f5784c in with_guile ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#23 0x00007ffff7e3ec78 in GC_call_with_stack_base ()
   from
/gnu/store/ak1jbgi0pfrvyqkgl1y1k1gl4qadjiqv-libgc-8.0.4/lib/libgc.so.1
#24 0x00007ffff7f56ebd in launch_thread ()
   from
/gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/lib/libguile-2.2.so.1
#25 0x00007ffff7e15015 in start_thread ()
   from
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libpthread.so.0
#26 0x00007ffff797b91f in clone () from
/gnu/store/ahqgl4h89xqj695lgqvsaf6zh2nhy4pj-glibc-2.29/lib/libc.so.6




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Wed, 20 Nov 2019 14:10:01 GMT) Full text and rfc822 format available.

Message #25 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: Guix fails to build with libgc 8.0.4
Date: Wed, 20 Nov 2019 15:09:01 +0100
Hi Jonathan,

Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:

> This failed with the same result:
>
> /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash:
> line 7: 25584 Aborted                 (core dumped)
> XDG_CACHE_HOME=/nowhere host=x86_64-unknown-linux-gnu srcdir="."
> ./pre-inst-env
> /gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/bin/guile -L "."
> -L "." --no-auto-compile -s "."/build-aux/compile-all.scm [*.scm]

So you built Guile (through Guix) against libgc 8.0.4, and then you
tried to use that Guile to build Guix, is that correct?

Thanks,
Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Wed, 20 Nov 2019 14:18:02 GMT) Full text and rfc822 format available.

Message #28 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: Guix fails to build with libgc 8.0.4
Date: Wed, 20 Nov 2019 15:16:53 +0100
On 20.11.19 15:09, Ludovic Courtès wrote:
> Hi Jonathan,
>
> Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:
>
>> This failed with the same result:
>>
>> /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash:
>> line 7: 25584 Aborted                 (core dumped)
>> XDG_CACHE_HOME=/nowhere host=x86_64-unknown-linux-gnu srcdir="."
>> ./pre-inst-env
>> /gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/bin/guile -L "."
>> -L "." --no-auto-compile -s "."/build-aux/compile-all.scm [*.scm]
>
> So you built Guile (through Guix) against libgc 8.0.4, and then you
> tried to use that Guile to build Guix, is that correct?

Yes, that's what I did. So the problem really is with Guile not
supporting libgc 8.0.4...




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Wed, 20 Nov 2019 15:40:01 GMT) Full text and rfc822 format available.

Message #31 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: Guix fails to build with libgc 8.0.4
Date: Wed, 20 Nov 2019 16:39:16 +0100
Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:

> On 20.11.19 15:09, Ludovic Courtès wrote:
>> Hi Jonathan,
>>
>> Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:
>>
>>> This failed with the same result:
>>>
>>> /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash:
>>> line 7: 25584 Aborted                 (core dumped)
>>> XDG_CACHE_HOME=/nowhere host=x86_64-unknown-linux-gnu srcdir="."
>>> ./pre-inst-env
>>> /gnu/store/xrcl2csd0ps5n0zwj8r7knkxjnz4pfbh-guile-2.2.6/bin/guile -L "."
>>> -L "." --no-auto-compile -s "."/build-aux/compile-all.scm [*.scm]
>>
>> So you built Guile (through Guix) against libgc 8.0.4, and then you
>> tried to use that Guile to build Guix, is that correct?
>
> Yes, that's what I did. So the problem really is with Guile not
> supporting libgc 8.0.4...

I think so, yes.

Can you post your patch to the libgc package, though?  It’s weird that
Guile passed its test suite but then crashes when compiling Guix.

Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Wed, 20 Nov 2019 16:07:02 GMT) Full text and rfc822 format available.

Message #34 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: Guix fails to build with libgc 8.0.4
Date: Wed, 20 Nov 2019 17:06:19 +0100
On 20.11.19 16:39, Ludovic Courtès wrote> I think so, yes.
>
> Can you post your patch to the libgc package, though?  It’s weird that
> Guile passed its test suite but then crashes when compiling Guix.

I already posted all I have in a previous mail:
https://issues.guix.gnu.org/issue/36811#3

For the openSUSE package I just build guile against libgc 7.6.4




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Mon, 03 Feb 2020 11:51:01 GMT) Full text and rfc822 format available.

Message #37 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: 36811 <at> debbugs.gnu.org
Subject: Guix fails to build with libgc 8.0.4
Date: Mon, 3 Feb 2020 12:49:53 +0100
Just for the record: Ludo added libgc-8 in
69961ac3b9db2dbb99abb5c45ff6be3a9c01b5de on master. It's not yet used,
so we need to replace libgc-7.6 with it and see how it goes...




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 06 Feb 2020 14:03:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Thu, 06 Feb 2020 14:08:01 GMT) Full text and rfc822 format available.

Message #42 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Thu, 06 Feb 2020 15:07:41 +0100
Hi Jonathan,

As discussed yesterday on #guix, I tried this:

  guix build guile3.0-guix --with-input=libgc <at> 7=libgc <at> 8

as of Guix commit 9d0dfd9a9a7c43363a4e140c20d49f119fe6f2e3.  Guile 3.0.0
itself builds fine (test suite included), but the build of Guix crashes
like this (on x86_64-linux-gnu):

--8<---------------cut here---------------start------------->8---
[ 76%] GUILEC   gnu/packages/icu4c.go
[ 77%] GUILEC   gnu/packages/idris.go
[ 77%] GUILEC   gnu/packages/idutils.go
[ 77%] GUILEC   gnu/packages/image.go
[ 77%] GUILEC   gnu/packages/image-processing.go
[ 77%] GUILEC   gnu/packages/image-viewers.go
mmap(PROT_NONE) failed
/gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: line 7: 26886 Aborted                 XDG_CACH
E_HOME=/nowhere host=x86_64-unknown-linux-gnu srcdir="." ./pre-inst-env /gnu/store/dcsjagbjlhjj40g30lb88wx3zybmh07g-gui
le-next-3.0.0/bin/guile -L "." -L "." --no-auto-compile -s "."/build-aux/compile-all.scm guix/base16.scm guix/base32.sc
m guix/base64.scm guix/ci.scm guix/cpio.scm guix/deprecation.scm guix/docker.scm guix/json.scm guix/records.scm guix/pk
--8<---------------cut here---------------end--------------->8---

Apparently the message and abort come from ‘GC_unmap’ or ‘GC_unmap_gap’
in libgc, but I have no idea what to think about it.  Could it be a heap
exhaustion issue or similar?  That’s not impossible.

Thanks,
Ludo’.




Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Thu, 06 Feb 2020 14:18:02 GMT) Full text and rfc822 format available.

Message #45 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Thu, 6 Feb 2020 15:16:58 +0100
On 06.02.20 15:07, Ludovic Courtès wrote:
> Hi Jonathan,
>
> As discussed yesterday on #guix, I tried this:
>
>    guix build guile3.0-guix --with-input=libgc <at> 7=libgc <at> 8
>
> as of Guix commit 9d0dfd9a9a7c43363a4e140c20d49f119fe6f2e3.  Guile 3.0.0
> itself builds fine (test suite included), but the build of Guix crashes
> like this (on x86_64-linux-gnu):
>
> --8<---------------cut here---------------start------------->8---
> [ 76%] GUILEC   gnu/packages/icu4c.go
> [ 77%] GUILEC   gnu/packages/idris.go
> [ 77%] GUILEC   gnu/packages/idutils.go
> [ 77%] GUILEC   gnu/packages/image.go
> [ 77%] GUILEC   gnu/packages/image-processing.go
> [ 77%] GUILEC   gnu/packages/image-viewers.go
> mmap(PROT_NONE) failed
> /gnu/store/29jhbbg1hf557x8j53f9sxd9imlmf02a-bash-minimal-5.0.7/bin/bash: line 7: 26886 Aborted                 XDG_CACH
> E_HOME=/nowhere host=x86_64-unknown-linux-gnu srcdir="." ./pre-inst-env /gnu/store/dcsjagbjlhjj40g30lb88wx3zybmh07g-gui
> le-next-3.0.0/bin/guile -L "." -L "." --no-auto-compile -s "."/build-aux/compile-all.scm guix/base16.scm guix/base32.sc
> m guix/base64.scm guix/ci.scm guix/cpio.scm guix/deprecation.scm guix/docker.scm guix/json.scm guix/records.scm guix/pk
> --8<---------------cut here---------------end--------------->8---

This is exactly the error I see on Tumbleweed and what this issue is
about :) This is good, so I guess it also has the same root somewhere in
guile<->libgc8.

> Apparently the message and abort come from ‘GC_unmap’ or ‘GC_unmap_gap’
> in libgc, but I have no idea what to think about it.  Could it be a heap
> exhaustion issue or similar?  That’s not impossible.

Thanks for providing the reproducer!




Merged 36811 36812 39241. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 06 Mar 2020 14:46:03 GMT) Full text and rfc822 format available.

Changed bug title to 'Guile crashes with libgc 8.0.4' from 'Guix fails to build with libgc 8.0.4' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 06 Mar 2020 15:15:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Wed, 11 Mar 2020 14:14:01 GMT) Full text and rfc822 format available.

Message #52 received at 36811 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 36811 <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Wed, 11 Mar 2020 15:13:15 +0100
Hi Jonathan,

Ludovic Courtès <ludo <at> gnu.org> skribis:

> As discussed yesterday on #guix, I tried this:
>
>   guix build guile3.0-guix --with-input=libgc <at> 7=libgc <at> 8

With Guile 3.0.1 + the patch for
<https://issues.guix.gnu.org/issue/39266>, the command above succeeds.

Specifically:

  guix pull --commit=e4b5bdf7993590fefeb7182ae71beec4a9f69e3f
  guix build --with-input=libgc <at> 7=libgc <at> 8 guile3.0-guix

Could you confirm that it works for you?

Thanks,
Ludo’.




Reply sent to Jonathan Brielmaier <jonathan.brielmaier <at> web.de>:
You have taken responsibility. (Thu, 12 Mar 2020 10:24:02 GMT) Full text and rfc822 format available.

Notification sent to Jonathan Brielmaier <jonathan.brielmaier <at> web.de>:
bug acknowledged by developer. (Thu, 12 Mar 2020 10:24:02 GMT) Full text and rfc822 format available.

Message #57 received at 36811-close <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 36811-close <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Thu, 12 Mar 2020 11:23:03 +0100
On 11.03.20 15:13, Ludovic Courtès wrote:> With Guile 3.0.1 + the patch for
> <https://issues.guix.gnu.org/issue/39266>, the command above succeeds.
>
> Specifically:
>
>   guix pull --commit=e4b5bdf7993590fefeb7182ae71beec4a9f69e3f
>   guix build --with-input=libgc <at> 7=libgc <at> 8 guile3.0-guix
>
> Could you confirm that it works for you?

That's working for me. I built guix with guile 3.0.1 plus the patch from
#39266 and the crash when building guix with more then two threads went
away!

Thank you, Ludovic! Closing this bug now :)




Reply sent to Jonathan Brielmaier <jonathan.brielmaier <at> web.de>:
You have taken responsibility. (Thu, 12 Mar 2020 10:24:02 GMT) Full text and rfc822 format available.

Notification sent to Jonathan Brielmaier <jonathan.brielmaier <at> web.de>:
bug acknowledged by developer. (Thu, 12 Mar 2020 10:24:02 GMT) Full text and rfc822 format available.

Reply sent to Jonathan Brielmaier <jonathan.brielmaier <at> web.de>:
You have taken responsibility. (Thu, 12 Mar 2020 10:24:02 GMT) Full text and rfc822 format available.

Notification sent to Al Thompson <alm4x1mu5 <at> gmail.com>:
bug acknowledged by developer. (Thu, 12 Mar 2020 10:24:02 GMT) Full text and rfc822 format available.

Merged 36811 36812 39241 39266 39988. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 12 Mar 2020 16:00:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Thu, 12 Mar 2020 16:00:03 GMT) Full text and rfc822 format available.

Message #72 received at 36811-close <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 36811-close <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Thu, 12 Mar 2020 16:59:08 +0100
Jonathan Brielmaier <jonathan.brielmaier <at> web.de> skribis:

> On 11.03.20 15:13, Ludovic Courtès wrote:> With Guile 3.0.1 + the patch for
>> <https://issues.guix.gnu.org/issue/39266>, the command above succeeds.
>>
>> Specifically:
>>
>>   guix pull --commit=e4b5bdf7993590fefeb7182ae71beec4a9f69e3f
>>   guix build --with-input=libgc <at> 7=libgc <at> 8 guile3.0-guix
>>
>> Could you confirm that it works for you?
>
> That's working for me. I built guix with guile 3.0.1 plus the patch from
> #39266 and the crash when building guix with more then two threads went
> away!
>
> Thank you, Ludovic! Closing this bug now :)

Woohoo, thanks for checking!

Ludo’.




Merged 36811 36812 39208 39241 39266 39988. Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 12 Mar 2020 16:02:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-guile <at> gnu.org:
bug#36811; Package guile. (Thu, 12 Mar 2020 16:16:02 GMT) Full text and rfc822 format available.

Message #77 received at 36811-done <at> debbugs.gnu.org (full text, mbox):

From: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 36811-done <at> debbugs.gnu.org
Subject: Re: bug#36811: Guix fails to build with libgc 8.0.4
Date: Thu, 12 Mar 2020 17:15:39 +0100



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 10 Apr 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.