Pure storage overflow warning in *GNU Emacs* buffer when emacs@27.2 is invoked

OpenSubmitted by Calvin Heim.
Details
2 participants
  • Calvin Heim
  • Liliana Marie Prikler
Owner
unassigned
Severity
normal
C
C
Calvin Heim wrote on 24 Oct 05:31 +0200
(address . bug-guix@gnu.org)
b6f9341d9aebc0b5929ff3fa25f1984a1ad8183d.camel@gmail.com
In emacs@27.2, a warning appears about pure storage overflow in the *GNU Emacs*buffer that displays at startup. My main concern is that I'm not sure if Emacs'sgarbage collection is working or not, so I have been hesitant to upgrade fromversion 26.3.
Steps to reproduce (with output):
-----8<---begin-snippet---8<--------------------
$ guix environment -C --pure --preserve=TERM --user=foo --no-cwd --ad-hoc emacs
$ emacs -nw --batch --eval="(progn (display-about-screen)(message \"%s\"(buffer-substring-no-properties 1 122)))"
Warning Warning!!! Pure space overflow !!!Warning Warning(See the node Pure Storage in the Lisp manual for details.)
-----8<---end-snippet---8<--------------------
I am using Guix on a foreign distribution (Trisquel 9).
$ guix describeguix 075c9f1 repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 075c9f12696d23bc86999b7a9ed567f38715e00a
The corresponding emacs@27.2 store item is/gnu/store/n1zvyjk8hm51793ap5ikvzvq15lxkhrg-emacs-27.2
$ uname -ii686
L
L
Liliana Marie Prikler wrote on 24 Oct 18:20 +0200
5211057826cc8dfa6d3e76b0f6effa1333202972.camel@gmail.com
Hi,
Am Samstag, den 23.10.2021, 20:31 -0700 schrieb Calvin Heim:
Toggle quote (35 lines)> In emacs@27.2, a warning appears about pure storage overflow in the> *GNU Emacs*> buffer that displays at startup. My main concern is that I'm not sure> if Emacs's garbage collection is working or not, so I have been> hesitant to upgrade from version 26.3.> > Steps to reproduce (with output):> > -----8<---begin-snippet---8<--------------------> > $ guix environment -C --pure --preserve=TERM --user=foo --no-cwd --> ad-hoc emacs> > $ emacs -nw --batch --eval="(progn (display-about-screen)(message> \"%s\"> (buffer-substring-no-properties 1 122)))"> > Warning Warning!!! Pure space overflow !!!Warning Warning> (See the node Pure Storage in the Lisp manual for details.)> > -----8<---end-snippet---8<--------------------> > I am using Guix on a foreign distribution (Trisquel 9).> > $ guix describe> guix 075c9f1> repository URL: https://git.savannah.gnu.org/git/guix.git> branch: master> commit: 075c9f12696d23bc86999b7a9ed567f38715e00a> > The corresponding emacs@27.2 store item is> /gnu/store/n1zvyjk8hm51793ap5ikvzvq15lxkhrg-emacs-27.2> > $ uname -i> i686
So for me on an x86_64 machine with Guix commit7628430a2f46a4a57d5ff7e51b1be80b7765c96c, this snippet displays
Toggle snippet (5 lines)This is GNU Emacs, one component of the GNU/Linux operating system.
GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ V
Your version is not that much newer than mine, so it's probably anissue specific to i686 (or perhaps other non-x86 architectures too).
Regards,Liliana
L
L
Liliana Marie Prikler wrote on 24 Oct 18:29 +0200
844cefa2585a788b9c8c342efb56ab8a5c7dcf05.camel@gmail.com
Small followup:
Am Samstag, den 23.10.2021, 20:31 -0700 schrieb Calvin Heim:
Toggle quote (2 lines)> > Warning Warning!!! Pure space overflow !!!Warning Warning> > (See the node Pure Storage in the Lisp manual for details.)
Said node says
Toggle quote (7 lines)> If Emacs will be dumped using the ‘pdump’ method (*note Building> Emacs::), the pure-space overflow is of no special importance (it> just means some of the preloaded stuff cannot be shared with other> Emacs jobs). However, if Emacs will be dumped using the now obsolete> ‘unexec’ method, the resulting image will work, but garbage> collection (*note Garbage Collection::) is disabled in this> situation, causing a memory leak.
Guix-built Emacs uses pdumps since 27.1, so garbage collection shouldstill be enabled. It might also be worth checking the Guix System vs.foreign distro angle, as
Toggle quote (3 lines)> Such an overflow normally won’t happen unless you try to preload> additional libraries or add features to the standard ones.
Is there anything noteworthy going on in stuff like LD_PRELOAD?
Regards,Liliana
C
C
Calvin Heim wrote on 24 Oct 20:42 +0200
08ba58012d34f228ad2ed9892b66753bbfdd37fb.camel@gmail.com
Hi Liliana,
On Sun, 2021-10-24 at 18:29 +0200, Liliana Marie Prikler wrote:
Toggle quote (5 lines)> > Is there anything noteworthy going on in stuff like LD_PRELOAD?> >
Good idea. I've added 'env' to the container. (The aforementioned warning isunaffected by the presence of coreutils).
$ guix environment -C --pure --preserve=TERM --user=foo --no-cwd --ad-hoc emacscoreutils
[env]$ envCOLORTERM=truecolorPWD=/home/fooLOGNAME=fooTEMPDIR=/tmpHOME=/home/fooTMPDIR=/tmpINFOPATH=/gnu/store/y8qbflx5abqgxwmvznfa3r040nir4kkp-profile/share/infoTERM=xtermUSER=fooTEMP=/tmpSHLVL=1TERMINFO_DIRS=/[censored-path-to-my]/.guix-profile/share/terminfoGUIX_ENVIRONMENT=/gnu/store/y8qbflx5abqgxwmvznfa3r040nir4kkp-profilePS1=\u@\h \w [env]\$ TMP=/tmpPATH=/gnu/store/y8qbflx5abqgxwmvznfa3r040nir4kkp-profile/binEMACSLOADPATH=/gnu/store/y8qbflx5abqgxwmvznfa3r040nir4kkp-profile/share/emacs/site-lisp_=/gnu/store/y8qbflx5abqgxwmvznfa3r040nir4kkp-profile/bin/env
[env]$ ls $EMACSLOADPATH guix-emacs.el guix-emacs.elc site-start.el site-start.elc subdirs.el
C
C
Calvin Heim wrote on 25 Oct 23:57 +0200
c914dd2a2f64a93791de788522eff24298a55190.camel@gmail.com
Hi all,
The pure space overflow warning does not appear in emacs-next@28.0.50-0.2ea3466on my i686 machine, so this bug will disappear when the emacs package definition catches up to emacs-next.
Happy hacking,
Calvin
?
Your comment

Commenting via the web interface is currently disabled.

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