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 20:58:21 -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="17140"; 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 02:59:55 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 1oGVP1-0004L9-BY for ged-emacs-devel@m.gmane-mx.org; Wed, 27 Jul 2022 02:59:55 +0200 Original-Received: from localhost ([::1]:52580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oGVOz-0007TX-N1 for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jul 2022 20:59:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44392) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oGVNl-0005jB-RO for emacs-devel@gnu.org; Tue, 26 Jul 2022 20:58:37 -0400 Original-Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]:37406) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oGVNk-0004hu-7J; Tue, 26 Jul 2022 20:58:37 -0400 Original-Received: by mail-pj1-x1036.google.com with SMTP id v16-20020a17090abb9000b001f25244c65dso601851pjr.2; Tue, 26 Jul 2022 17:58:35 -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=7lkfXI+V6W//lkwUj1fyMRTMuUU/jMPorMy49t+56Xw=; b=AdF+LikVZFThqlfDaHaAQmerTeSWiGsx/+OyfjRQG/Ne0aLAsrKTRMCr1D9KIXyN+B Y/eTfH53RoxlfkhMh7y9N554f3JgrU8H5PxD5p7iJaI3qNUjdkWxKoTRDHP6RRQt01kS 2Ws+JThpajezYMCrEKCw2zbX9Y1usvp+LbhqZB9D2yVKbfpGSia/4XOlHDHJS5EQ9YyY U0nLw1/tLlqw5aFKLRIRnMPup7rPx1KqOArB8Ybl26yTFh3dktn3tWDR7p6iPyNu4U/e P3QBBdNFaC/+FqXIDdqoWmKb8RMxfrDvNWPE+zm9Yqxa9hX8MwryGKH6gDaN4bHSsqpY 0rzA== 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=7lkfXI+V6W//lkwUj1fyMRTMuUU/jMPorMy49t+56Xw=; b=0KCrDRWfS6uhBrs1f77wc5eQsvYAbSBdA4SraxXary8kSkXlbFtOt8DL+VvaRL9/ow 9uvESQharm/mh5g0SQJKxejvT8ZbpJDO+io+CzFRu7vPQku4UWlFIMxRJIsIeJrIbhOJ X7JfHyI2y/EHlaz7ZaAbZp7jEEJUlklnpojPw+7jmDKo3nHHj3ZdHlovYgTJK+4khuEo Uxi/ZeQf1f65MgAq0QDWS6m1DYws7McJ3fcDJzxeTR+Gjasn4eYTs3espP3UX5LsoTm7 dxLW9QXPVKmGRTgRuhknvsOi/gFragh+eRMYd8xafuItfxOhmNAWBvSdzI6yjzfvU34A hRDw== X-Gm-Message-State: AJIora9ef4NbqPS+v/CqrLiTpdjnBh0Siv6TVB8wy1IxGneBRd2XQtZ+ ltsFSIQ17XMO/HGgqW3qHJSKe9+FqFwT3cmH8DRNwjTK X-Google-Smtp-Source: AGRyM1vRZSkqW2STF9yu6BCZhZXRe+Mz4EGgBc8GooBUpXFf/Eo2gqV6CRPLsUWuvuhJbfZ4BZ1hrG29XNZv5Vn41C4= X-Received: by 2002:a17:90a:bc1:b0:1f2:435f:94bc with SMTP id x1-20020a17090a0bc100b001f2435f94bcmr1744890pjd.5.1658883513861; Tue, 26 Jul 2022 17:58:33 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=owinebar@gmail.com; helo=mail-pj1-x1036.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:292722 Archived-At: On Tue, Jul 26, 2022 at 7:24 AM Lynn Winebarger wrote: > > Given that I can't seem to produce a bootstrapped dump without getting > an incoherent eln file, I will be making one more attempt using > byte-compiled versions of the files in site-load for the dump > procedure, but with the native compiler enabled. > In either case, I will also bootstrap with native compilation disabled > for comparison. 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. Lynn