From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lynn Winebarger Newsgroups: gmane.emacs.devel Subject: Re: Loading tramp for dump goes into infinite regress Date: Tue, 26 Jul 2022 22:48:56 -0400 Message-ID: References: <8735erhrlg.fsf@gmx.de> <83wnc2g0n8.fsf@gnu.org> <83sfmqfxcb.fsf@gnu.org> <83a68yfp6j.fsf@gnu.org> <83r129e1op.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6427"; mail-complaints-to="usenet@ciao.gmane.io" Cc: michael.albinus@gmx.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jul 27 04:50:16 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oGX7o-0001ZW-JO for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 04:50:16 +0200 Original-Received: from localhost ([::1]:50606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGX7n-0007Yv-3e for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 22:50:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGX6p-0006M1-7c for emacs-devel@gnu.org; Tue, 26 Jul 2022 22:49:15 -0400 Original-Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:44986) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGX6n-00050b-3d; Tue, 26 Jul 2022 22:49:14 -0400 Original-Received: by mail-pg1-x534.google.com with SMTP id bf13so14751089pgb.11; Tue, 26 Jul 2022 19:49:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GuOcqZ7KLsnQZv20EsT+QTHKPMoNCj90b9TizwKdsnE=; b=Jfu9mpKMzlQM9ZepOz6K3sG4wP6Ed6coUXGQx9t2kIKeFpPHK4+Sjt6Ge3MtvGzS9S Wm4LhlQUZkLOB57AGU2ACFZqrkambHN7Q19J6Kv2H4eEI3CLt3UZ4dxp7l5+m3uszaqK 0z7L+3vwE+gKSDQ/jezVofesf/i3tJ+ZKr/2RzKH24P1eyfG/bSca7uJ/oXGP2+FCoUp uvld39GRG3+tM2caawZm9EDS8HHg+SThS4t7CltjC2I1J4NNMjqWayc2pNG5Xg7fcVNq KrTMS14tUymbCocrLiGpu/7vyRzr6krcRfJHjRoKOVZCzL/INcMHb9+vkVPb0ooQoFph QjIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GuOcqZ7KLsnQZv20EsT+QTHKPMoNCj90b9TizwKdsnE=; b=agXtErD7wjXbMdSC/H6gOUdPKZiYlXNksTZBBt9e725ecJDRj2aXAcwsPlPqxQOBOg 8QWfPq0tUzvP1H+6UBLLh0I8QeicKKHOh7tM7y0bCb8vdYwMg8fm6cgmcNINgvEayjOX dQ/CqwvwXLG42Ff2x/CCwBg77SAMm0AY5RvgRsEP+NyvOykhT9kHAnsv8a9GPUda089v /m+prQXnYt/TE6HsyofQqrjM17zhebsHe169DYYWmVyf+9advFkBF+Iu95ER2Qbji+io GA0v+XxRgCN+yDsrOYsfo2QUrAxCrNYx1mIypC98mv5mu81jaXM2zvR5f1IaWnF99LF7 AHuA== X-Gm-Message-State: AJIora/5xhYkeZTI6NF+R073F654qBsCSwklN2/8IjKduXRuigLCfw/C DR4rsRhGtE/fKZVJPkguyvhi7n3v3UtEWCMq9+tUxofR X-Google-Smtp-Source: AGRyM1uQggrrCvZpVlA7cMkP7CVZNYHC6OYdHXcQX60N65RpKkqXWaNxh1NgAOCPKlkzTdrWBCJVswjY6nfHInxUusA= X-Received: by 2002:a63:2bc1:0:b0:412:706e:73ad with SMTP id r184-20020a632bc1000000b00412706e73admr16497925pgr.488.1658890148978; Tue, 26 Jul 2022 19:49:08 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=owinebar@gmail.com; helo=mail-pg1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292725 Archived-At: On Tue, Jul 26, 2022 at 8:58 PM Lynn Winebarger 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. Lynn