Too many heap sections on guix pull

  • Done
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Peacememories
Owner
unassigned
Submitted by
Peacememories
Severity
important
P
P
Peacememories wrote on 30 Apr 01:36 +0200
(address . bug-guix@gnu.org)
15f7f98e-245f-40f0-af6d-66df42a1c5cf@posteo.net
`guix pull` on a fresh install on WSL Ubuntu 24.04 fails with the
following log.

The same happened to me when trying GUIX on NixOS 23.11 via the
`services.guix` option.

```

hint: Consider installing the `glibc-locales' package and defining
`GUIX_LOCPATH', along these lines:

     guix install glibc-locales
     export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"

See the "Application Setup" section in the manual, for more info.

Updating channel 'guix' from Git repository at
Authenticating channel 'guix', commits 9edb3f6 to ddf3759 (29,446 new
commits)...
Building from this channel:
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'...
100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 libffi-3.3 51KiB 1.6MiB/s 00:00 [##################] 100.0%
 libgc-8.0.4 214KiB 3.4MiB/s 00:00 [##################] 100.0%
 libunistring-0.9.10
492KiB                                              10.0MiB/s 00:00
[##################] 100.0%
 pkg-config-0.29.2
209KiB                                                16.0MiB/s 00:00
[##################] 100.0%
 guile-3.0.7 8.0MiB 19.6MiB/s 00:00 [##################] 100.0%
building /gnu/store/al0d6f30wj4f4w68v2gqdkb367v75f4x-config.scm.drv...
building /gnu/store/60h4f5jy7x05bgwjxp41gg5wsypaixn6-git.scm.drv...
building /gnu/store/n5w7gbkyyiav73f9yypafvw2n6z5jq8n-hash.scm.drv...
building /gnu/store/mjcskqgqppfcbbcrzjq8x8p40dvi7lga-module-import.drv...
building /gnu/store/zl24x57fyqvprbj5mswvp18hlvkc9psr-module-import.drv...
building
/gnu/store/2hzp43qwskbgc7hv89plg1bkybkgn754-module-import-compiled.drv...
building
/gnu/store/8rsjc2q0070qcf6p82ji3xd9kwcwri1c-module-import-compiled.drv...
building
/gnu/store/lhdxqiwgiiz2jzvgsww9wn7gpfr9mfwc-compute-guix-derivation.drv...
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
 bash-static-5.1.16
700KiB                                               2.69GiB/s 00:00
[##################] 100.0%
 glibc-2.35 8.5MiB 147.1MiB/s 00:00 [##################] 100.0%
 bash-minimal-5.1.16
588KiB                                               2.5MiB/s 00:00
[##################] 100.0%
 gcc-11.3.0-lib
4.8MiB                                                   15.3MiB/s 00:00
[##################] 100.0%
 bash-minimal-5.1.16
589KiB                                              2.03GiB/s 00:00
[##################] 100.0%
 libffi-3.4.4 60KiB 291.5MiB/s 00:00 [##################] 100.0%
 libgc-8.2.2 218KiB 2.5MiB/s 00:00 [##################] 100.0%
 libunistring-1.0
661KiB                                                 15.5MiB/s 00:00
[##################] 100.0%
 pkg-config-0.29.2
209KiB                                                 878KiB/s 00:00
[##################] 100.0%
 guile-3.0.9 8.1MiB 38.9MiB/s 00:00 [##################] 100.0%
 guile-3.0.9-debug
7.8MiB                                                19.4MiB/s 00:00
[##################] 100.0%
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
-^-
-Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
guix pull: error: You found a bug: the program
'/gnu/store/yqlyxi9w9rhlm23mdj8231yfa7m7ywm0-compute-guix-derivation'
failed to compute the derivation for Guix (version:
"ddf3759645ba76ef532658a257ae74fe0b1788b5"; system: "x86_64-linux";
host version: "1.4.0"; pull-version: 1).

```
L
L
Ludovic Courtès wrote on 30 Apr 10:57 +0200
control message for bug #70659
(address . control@debbugs.gnu.org)
87mspbxm5m.fsf@gnu.org
severity 70659 important
quit
L
L
Ludovic Courtès wrote on 30 Apr 11:11 +0200
Re: bug#70659: Too many heap sections on guix pull
(name . Peacememories)(address . peacememories@posteo.net)(address . 70659@debbugs.gnu.org)
87ikzzxlj0.fsf@gnu.org
Hi,

Peacememories <peacememories@posteo.net> skribis:

Toggle quote (23 lines)
> `guix pull` on a fresh install on WSL Ubuntu 24.04 fails with the
> following log.
>
> The same happened to me when trying GUIX on NixOS 23.11 via the
> `services.guix` option.
>
> ```
>
> hint: Consider installing the `glibc-locales' package and defining
> `GUIX_LOCPATH', along these lines:
>
>      guix install glibc-locales
>      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
>
> See the "Application Setup" section in the manual, for more info.
>
> Updating channel 'guix' from Git repository at
> 'https://git.savannah.gnu.org/git/guix.git'...
> Authenticating channel 'guix', commits 9edb3f6 to ddf3759 (29,446 new
> commits)...
> Building from this channel:
>   guix      https://git.savannah.gnu.org/git/guix.git   ddf3759

[...]

Toggle quote (3 lines)
> -Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
> guix pull: error: You found a bug: the program

Thanks for the report. As someone confirmed on IRC, this was caused by
7cef6b7ba555a9dfaf6d09cb7e112b0df77d5114, which introduced a circular
dependency, but only for those systems running a version of guix-daemon
lacking “builtin:git-download” (added in Sept. 2023).

Commit df3d30819e650a490ef39dd6692740bb13263c75 fixes that; you should
be able to pull now.

I would recommend upgrading guix-daemon though, as noted in:


One of the main reasons to do so is this:


Thanks for reporting the bug!

Ludo’.
L
L
Ludovic Courtès wrote on 30 Apr 11:11 +0200
control message for bug #70659
(address . control@debbugs.gnu.org)
87h6fjxliq.fsf@gnu.org
close 70659
quit
P
P
Peacememories wrote on 30 Apr 17:34 +0200
Re: bug#70659: Too many heap sections on guix pull
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 70659@debbugs.gnu.org)
6458e7390af2b1f97ced47e0a885e470@posteo.net
Hi, thanks for the quick reply!

On 30.04.2024 11:11, Ludovic Courtès wrote:
Toggle quote (40 lines)
> Hi,
>
> Peacememories <peacememories@posteo.net> skribis:
>
>> `guix pull` on a fresh install on WSL Ubuntu 24.04 fails with the
>> following log.
>>
>> The same happened to me when trying GUIX on NixOS 23.11 via the
>> `services.guix` option.
>>
>> ```
>>
>> hint: Consider installing the `glibc-locales' package and defining
>> `GUIX_LOCPATH', along these lines:
>>
>>      guix install glibc-locales
>>      export GUIX_LOCPATH="$HOME/.guix-profile/lib/locale"
>>
>> See the "Application Setup" section in the manual, for more info.
>>
>> Updating channel 'guix' from Git repository at
>> 'https://git.savannah.gnu.org/git/guix.git'...
>> Authenticating channel 'guix', commits 9edb3f6 to ddf3759 (29,446 new
>> commits)...
>> Building from this channel:
>>   guix      https://git.savannah.gnu.org/git/guix.git   ddf3759
>
> [...]
>
>> -Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
>> guix pull: error: You found a bug: the program
>
> Thanks for the report. As someone confirmed on IRC, this was caused by
> 7cef6b7ba555a9dfaf6d09cb7e112b0df77d5114, which introduced a circular
> dependency, but only for those systems running a version of guix-daemon
> lacking “builtin:git-download” (added in Sept. 2023).
>
> Commit df3d30819e650a490ef39dd6692740bb13263c75 fixes that; you should
> be able to pull now.

I can indeed confirm that
(1) Using an older commit caused the error to disappear
(2) Pulling the newest version now seems to work as well

Toggle quote (10 lines)
>
> I would recommend upgrading guix-daemon though, as noted in:
>
> https://guix.gnu.org/manual/devel/en/html_node/Upgrading-Guix.html
>
> One of the main reasons to do so is this:
>
>
> https://guix.gnu.org/en/blog/2024/fixed-output-derivation-sandbox-bypass-cve-2024-27297/

I'll definitely update guix on the WSL installation (I had just done the
initial installation which presumably comes with an older version), but
I think I'll hold off on the update in NixOS. For one, trying to change
the binary and service definition under Nix' nose seems dangerous, but
also it seems that Nix already backported the CVE fix you mentioned

Just thought I'd mention that here in case anyone stumbles across this
in a similar situation

All the best,

Peacememories

Toggle quote (4 lines)
>
> Thanks for reporting the bug!
>
> Ludo’.
?
Your comment

This issue is archived.

To comment on this conversation send an email to 70659@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70659
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch