From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#66743: 30.0.50; Crash when dumping reftex Date: Thu, 26 Oct 2023 10:04:19 +0200 Message-ID: References: <875y2v592c.fsf@localhost> <83a5s6kgxx.fsf@gnu.org> <87wmvadfkw.fsf@localhost> <83jzraisg0.fsf@gnu.org> <83lebphm4k.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4406"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: yantar92@posteo.net, 66743@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 26 10:04:51 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qvvMJ-0000ug-6M for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 10:04:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvvM0-0007Uj-Sg; Thu, 26 Oct 2023 04:04:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvvLz-0007TU-QM for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 04:04:31 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvvLz-0006Wi-GN for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 04:04:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvvMU-0002Le-35 for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 04:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Oct 2023 08:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66743 X-GNU-PR-Package: emacs Original-Received: via spool by 66743-submit@debbugs.gnu.org id=B66743.16983075019015 (code B ref 66743); Thu, 26 Oct 2023 08:05:02 +0000 Original-Received: (at 66743) by debbugs.gnu.org; 26 Oct 2023 08:05:01 +0000 Original-Received: from localhost ([127.0.0.1]:60542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvvMS-0002LK-Ll for submit@debbugs.gnu.org; Thu, 26 Oct 2023 04:05:01 -0400 Original-Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]:52470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvvMQ-0002L8-QB for 66743@debbugs.gnu.org; Thu, 26 Oct 2023 04:04:59 -0400 Original-Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9bdf5829000so97548366b.0 for <66743@debbugs.gnu.org>; Thu, 26 Oct 2023 01:04:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698307461; x=1698912261; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SMRPV3rsPenyF+RCgeW7knakqF++EONLTSXCwo4FIJA=; b=ccUfFfbqgzxn19G9QVnVSHWciwWv8HA1UVPGJnaiem/nMnrdukzCvTek7WyfrPN4tq Luf3Wesm0Nc8ZYFr7SkysRbR8cGD372DMRqb5Qj+hn8fazAwLdzqV8CgrKwKhtcz5x1I G5q2Musg1BqJ3q929Gmp0XE9wY7BMk8+98qUUXeaiknCCuA4D9+ziXBiTrO7BUTinb6c j55F8INdXk+AgSA0iMcB/CiASyF7qoZDBGYNrSW3dr/WDm7Sl/le52hytS8ZKax3qDL+ Swv9ypFkpByO44H/NIh0TKeznzhOpnaiPNi5sCk/OU9rhred+nMeb5XmHFwylaiaBmP2 rSgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698307461; x=1698912261; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=SMRPV3rsPenyF+RCgeW7knakqF++EONLTSXCwo4FIJA=; b=YWZvXr5UpmRWE81/+ng/GCQTZ370ey/8n0Sz0+YK2xixW8jnZUBBvN8Ym2RtU/fVEk QXB85daR4ny5SPBh5J17md+5oFFR5AciNGozAN6+VRnLGH6QKz8FwdLulTQJqi5Q6FNA Ioh3tkvEzi+yqlOHW/ETUlgsKFPcEdje0YcqVDwxkp3Rfc/XYUT/H6Lvl75PHV+WTCIo GhLfOGtJUdcA+/c6lhkmLXfbeUTh6BbjnOYpHbUqc0VrRB+y6CNDOc3278h+/pdhIEoa 79f6RA+dVJ32lxumUumz4zQMcFPY9uDXcxBffCrJvTvihOE5e0qiZmge2ZRUQXMwW/CL hLTQ== X-Gm-Message-State: AOJu0YzY2YlUstZVayuj4uHCUZMhspe0NPz6VSkJHy6TLib3G+WDJBgI 6OA1SnIrFOzNu7XKGXbz+JegeNGchHOkuw== X-Google-Smtp-Source: AGHT+IGAGHZT7hS/UdDDeEEl8ltjaejCpaFtxjCyoFd5DyMRp6epgZAiyOGqOcM34x6YwK0SfhYlug== X-Received: by 2002:a17:906:c141:b0:9c5:7f8b:bafc with SMTP id dp1-20020a170906c14100b009c57f8bbafcmr14243012ejc.22.1698307461105; Thu, 26 Oct 2023 01:04:21 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3a163.dip0.t-ipconnect.de. [79.227.161.99]) by smtp.gmail.com with ESMTPSA id y29-20020a170906519d00b009adc5802d08sm11401107ejk.190.2023.10.26.01.04.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 01:04:20 -0700 (PDT) In-Reply-To: <83lebphm4k.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 26 Oct 2023 10:35:23 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273251 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: yantar92@posteo.net, 66743@debbugs.gnu.org >> Date: Thu, 26 Oct 2023 09:03:33 +0200 >>=20 >> Gerd M=C3=B6llmann writes: >>=20 >> > Eli Zaretskii writes: >> > >> >> Emacs is always dumped with a few buffers, because temacs needs them >> >> to do the dumping. See this comment text from buffer.c: >> >> >> >> Implementation notes: the buffers we carry from temacs are: >> >> " prin1", "*scratch*", " *Minibuf-0*", "*Messages*", and >> >> " *code-conversion-work*". They are created by >> >> init_buffer_once and init_window_once (which are not called >> >> in the dumped Emacs), and by the first call to coding.c >> >> routines. >> > >> > Thanks. >> > >> > So, one idea would be to try and move the creation of these buffers fr= om >> > the init_*_once functions to the "normal" init functions, and see what >> > happens. One would also have to take a closer look at coding.c, of cou= rse. >>=20 >> Actually, this is bug#59029, sort of. >>=20 >> TLDR is that the code to dump itrees is there, somewhere in git, but has >> an infinite recursion bug. So, I guess it should first be tried to >> revive that code and fix it (tests should also exist, IIUC). > > Feel free to do that, of course. It's only a maybe from me, so far :-). I mainly chimed in because I know the pdumper from dumping CL packages, and I also know a bit about itrees. BTW, it turns out the code is actually already in master (dump_interval_node), but isn't executed because of the abort. > However, from where I stand, we should first find and fix the other > bugs caused by re-dumping, of the kinds described in bugs 66741 and > 66742 (there are more problems like that). Ideally, we need to > understand why these problems happen, and develop a protocol for > initializing things in a way that avoids such problems. Only after > that should we turn our attention to more specific aspects like itrees > etc. We should also have some policy for what should never be dumped, > I think -- those will have to be nullified or deleted before dumping. Of course.