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: Sat, 6 Aug 2022 11:39:12 -0400 Message-ID: References: <8735erhrlg.fsf@gmx.de> <83wnc2g0n8.fsf@gnu.org> <83sfmqfxcb.fsf@gnu.org> <83a68yfp6j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001acee905e5946340" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40927"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , Michael Albinus , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Aug 06 17:41:20 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 1oKLvU-000ATR-5P for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Aug 2022 17:41:20 +0200 Original-Received: from localhost ([::1]:55072 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKLvS-0002x3-N5 for ged-emacs-devel@m.gmane-mx.org; Sat, 06 Aug 2022 11:41:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKLtf-0001UG-Oq for emacs-devel@gnu.org; Sat, 06 Aug 2022 11:39:28 -0400 Original-Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]:45710) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKLte-0003q0-0j; Sat, 06 Aug 2022 11:39:27 -0400 Original-Received: by mail-pg1-x52b.google.com with SMTP id f65so4996043pgc.12; Sat, 06 Aug 2022 08:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=l4iZiz1312ErConZiCaMSl8FEVyo/p/IDck6E6Y9+to=; b=ey2A9kiBbquguUw3AXHPiOHsjm3OaWajonDEZrmfq31NPTcorChIQn9p4IlcdfXC1Y G+JxA0YuQah/aMMaRx3IMhF4h+DsYlXx/DhX3zGf4tHztirQOuZ9Obty3TK9zBT/Jd93 Cpo5Bynx7uMPBYkJ7ovV+m/wYkqYDkHbdjAsOhXOgKpYtGIz912Vk3Ivg0PbwcznxeZx KwIZU+I47SOfVVx53r6YXuxi3HUskZpO5hBbFkDf/x1A68bLwUvMEHD2e3yxoEptdBa5 bRSjcMrges3X/QEQLpxu0IQSXnRbzdTtGA7ZbOkaUZsxUHsK8BgbESOq+i4NhIMr2kHq PLrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=l4iZiz1312ErConZiCaMSl8FEVyo/p/IDck6E6Y9+to=; b=ve4flLF/sXQc64hCPtXLrO1x3etKQmuE66ggvSwV6nVaoVkVtKi+d5buUKJzDA0bNw jIgsJrytMT1Gnz35c5Qzb3VIiEXIs7v08qJGwJh/5X5tZpWboCFMQkxR7Gv7ButcFJzC Bg0Ibeuibyr7bIJ8U2vpyQz3/+J8gqdNlKSoPsVeKnvXoZdnaUo3qEi9QgjLFbJgHrON sElo/C4qvDpCGYynnJdLOuoLroYu/fWHQ8ea4k0coMF2S3fF/yZ7uN43GS+wWYa4jh5F iM5fgpha7eKEHs1OBSUpkTZSvfbV4J0ja7dQWv3OluOdWayFBhkRY+oz6LlaInmtAJNM 8yoA== X-Gm-Message-State: ACgBeo39oZDUDTrA1MwiiIm1/aENcCO+2NDoa6cV+Uo74FQc3Hi79bQt dqRrPQXMX4TuGBZKOvLFqZgT73TXMHkomIsyamM= X-Google-Smtp-Source: AA6agR7qV1dk7SJg2I8PuQA7RPznwnzfgqE/zcyMxzu4/XACbdbpcsx2d88E4ym7F4p2X/7mstXRJd3Vf92I47PaA+g= X-Received: by 2002:a63:6888:0:b0:3fe:49fc:3be3 with SMTP id d130-20020a636888000000b003fe49fc3be3mr9343821pgc.182.1659800364173; Sat, 06 Aug 2022 08:39:24 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::52b; envelope-from=owinebar@gmail.com; helo=mail-pg1-x52b.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, HTML_MESSAGE=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:293149 Archived-At: --0000000000001acee905e5946340 Content-Type: text/plain; charset="UTF-8" On Sat, Aug 6, 2022, 8:57 AM Lynn Winebarger wrote: > On Sat, Aug 6, 2022, 2:07 AM Lynn Winebarger wrote: > >> I've added another flag variable that allows me to turn off the ban on >> implicit loading in dump mode. >> > > The dump with all ~2500 ELN libraries loaded completed last night. > Unfortunately during startup (before any frame opens) one of them is > evaluating an expression with an argument that should never produce nil but > somehow is nil. > Fortunately I can now redump with just the offending library in > site-load. The error prints fairly quickly when run normally, but shared > libraries evidently open a lot slower under GDB. > Hopefully I'll get the same error with the smaller dump and be able to > determine if there's an issue in the dump file, the dump loading, or > something else. > It started up fine when I only explicitly added the one library with the failing expression, and then again when I dumped after loading the original list up to that library. The good news is that emacs starts in a couple of seconds with 1198 ELN files in the dump. I haven't been able to compile with profiling enabled on this system, but I can tell you that is a couple of orders of magnitude faster than just loading them in .init. Lynn --0000000000001acee905e5946340 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sat, Aug 6, 2022, 8:57 AM Lynn Winebarger <owinebar@gmail.com> wrote:
On Sat, Aug 6, 2022, 2= :07 AM Lynn Winebarger <owinebar@gmail.= com> wrote:
I&#= 39;ve added another flag variable that allows me to turn off the ban on imp= licit loading in dump mode.=C2=A0
<= /div>

The dump with all ~2500 = ELN libraries loaded completed last night.=C2=A0 Unfortunately during start= up (before any frame opens) one of them is evaluating an expression with an= argument that should never produce nil but somehow is nil.
Fortunately I can now redump with just the offending library in s= ite-load.=C2=A0 The error prints fairly quickly when run normally, but shar= ed libraries evidently open a lot slower under GDB.
= Hopefully I'll get the same error with the smaller dump and be able to = determine if there's an issue in the dump file, the dump loading, or so= mething else.

It started up fine when I only explicitly added the one libr= ary with the failing expression, and then again when I dumped after loading= the original list up to that library.=C2=A0=C2=A0
The good news is that emacs starts in a couple of seconds with 1198 ELN = files in the dump.=C2=A0 I haven't been able to compile with profiling = enabled on this system, but I can tell you that is a couple of orders of ma= gnitude faster than just loading them in .init.=C2=A0

Lynn

--0000000000001acee905e5946340--