From: Lynn Winebarger <owinebar@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Michael Albinus <michael.albinus@gmx.de>,
emacs-devel <emacs-devel@gnu.org>
Subject: Re: Loading tramp for dump goes into infinite regress
Date: Wed, 27 Jul 2022 04:31:30 -0400 [thread overview]
Message-ID: <CAM=F=bBUUp-XND54fjALYjcUCj=UwP5Zz24ZcQoaG698QWFVaw@mail.gmail.com> (raw)
In-Reply-To: <CAM=F=bBkqgStSuGMqBKXc6O1cpZ3FtkGNE2dBqwhjWZpP9x4qA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1546 bytes --]
On Tue, Jul 26, 2022, 10:48 PM Lynn Winebarger <owinebar@gmail.com> wrote:
> On Tue, Jul 26, 2022 at 8:58 PM Lynn Winebarger <owinebar@gmail.com>
> wrote:
> > I was still seeing some runaway allocation even with native
> > compilation completely disabled, so I finally fired up gdb and found
> > the culprit: "lmalloc", which has a comment saying the "while (true)"
> > loop shouldn't iterate on a modern platform. RHEL 7.9 isn't hot off
> > the presses, but it's not that ancient.
> > I'll try to replicate on a personal machine and file a bug, but it's
> > not clear what triggers the condition. When it does occur, it always
> > occurs at the same place. One instance was from loading cc-mode in
> > site-load (after byte-compiling all the dependencies in the correct
> > order). I wrapped the "defun c-init-language-vars-for" sexp in an
> > eval, based on a comment in another one of the cc-* files (i.e.
> > cargo-cult programming on my part), and that stopped the runaway
> > allocation. But then it happened while loading ibuffer.el.
>
> Wrong again - the infinite loop is in pure_alloc. It looks like there
> is a 10,655 character string in ibuffer.el on which pure_copy is being
> called, and pure_alloc only adds increments of 10k.
> This I can report as a bug.
>
The segmentation faults I've seen are also coming from purecopy. It's
attempting to traverse a cyclic lisp structure and overflows the stack.
I'm going guess this kind of thing is why Stefan Monnier and Pip Cet were
enthusiastic about ditching pure space.
Lynn
[-- Attachment #2: Type: text/html, Size: 2440 bytes --]
next prev parent reply other threads:[~2022-07-27 8:31 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-24 0:47 Loading tramp for dump goes into infinite regress Lynn Winebarger
2022-07-24 7:55 ` Michael Albinus
2022-07-24 12:05 ` Lynn Winebarger
2022-07-24 12:23 ` Eli Zaretskii
2022-07-24 13:30 ` Lynn Winebarger
2022-07-24 13:34 ` Eli Zaretskii
2022-07-24 14:05 ` Lynn Winebarger
2022-07-24 14:09 ` Eli Zaretskii
2022-07-24 14:28 ` Lynn Winebarger
2022-07-24 16:00 ` Lynn Winebarger
2022-07-24 16:20 ` Lynn Winebarger
2022-07-24 16:31 ` Eli Zaretskii
2022-07-25 12:49 ` Lynn Winebarger
2022-07-25 13:56 ` Eli Zaretskii
2022-07-26 11:24 ` Lynn Winebarger
2022-07-27 0:58 ` Lynn Winebarger
2022-07-27 2:48 ` Lynn Winebarger
2022-07-27 8:31 ` Lynn Winebarger [this message]
2022-08-09 12:29 ` Lynn Winebarger
2022-08-09 12:36 ` Po Lu
2022-08-09 13:22 ` Lynn Winebarger
2022-08-09 13:42 ` Po Lu
2022-08-09 15:55 ` Lynn Winebarger
2022-07-25 16:54 ` Stefan Monnier
2022-07-25 17:05 ` Stefan Monnier
2022-07-26 0:28 ` Lynn Winebarger
2022-07-26 1:10 ` Lynn Winebarger
2022-08-06 6:07 ` Lynn Winebarger
2022-08-06 12:57 ` Lynn Winebarger
2022-08-06 15:39 ` Lynn Winebarger
2022-08-06 20:23 ` Working fully native-compiled "mega dump" (was Re: Loading tramp for dump goes into infinite regress) Lynn Winebarger
2022-08-06 20:52 ` Lynn Winebarger
2022-07-25 20:11 ` Loading tramp for dump goes into infinite regress Andrea Corallo
2022-07-31 20:22 ` Lynn Winebarger
2022-08-03 9:58 ` Lynn Winebarger
2022-08-03 12:22 ` Eli Zaretskii
2022-08-03 14:53 ` Native-compilation build process (was Re: Loading tramp for dump goes into infinite regress) Lynn Winebarger
2022-08-03 16:15 ` Eli Zaretskii
2022-08-04 3:33 ` Lynn Winebarger
2022-08-05 1:57 ` Lynn Winebarger
2022-07-24 16:23 ` Loading tramp for dump goes into infinite regress Eli Zaretskii
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://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAM=F=bBUUp-XND54fjALYjcUCj=UwP5Zz24ZcQoaG698QWFVaw@mail.gmail.com' \
--to=owinebar@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=michael.albinus@gmx.de \
/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/emacs.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).