From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36649: 27.0.50; pure space and pdumper Date: Wed, 19 May 2021 18:11:20 +0300 Message-ID: <83pmxmpxlz.fsf@gnu.org> References: <4c1248b8-88cc-ca06-6bc8-9f0bb9a98c98@cs.ucla.edu> <87mtt0hupl.fsf@gnus.org> <83mtt02dyz.fsf@gnu.org> <877dk3hoko.fsf@gnus.org> <87y2cjg9mu.fsf@gnus.org> <83a6oz3lpm.fsf@gnu.org> <87lf8jg8o2.fsf@gnus.org> <838s4j3l2e.fsf@gnu.org> <87h7j7g7ft.fsf@gnus.org> <878s4jg67i.fsf@gnus.org> <834kf73iim.fsf@gnu.org> <874kf7g54z.fsf@gnus.org> <8335ur3hu8.fsf@gnu.org> <83a6oy20bj.fsf@gnu.org> <87a6oupzn1.fsf@gnus.org> <85567d83-7ec6-c5e7-81f2-74b0b310eefc@cs.ucla.edu> <83k0nxu062.fsf@gnu.org> <87y2cdjvjh.fsf@gnus.org> <83a6ottp55.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8721"; mail-complaints-to="usenet@ciao.gmane.io" Cc: stefan@marxist.se, rpluim@gmail.com, schwab@linux-m68k.org, monnier@iro.umontreal.ca, 36649@debbugs.gnu.org To: larsi@gnus.org, eggert@cs.ucla.edu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 19 17:12:09 2021 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 1ljNrl-000255-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 17:12:09 +0200 Original-Received: from localhost ([::1]:60784 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljNrk-0002RA-QG for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 May 2021 11:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljNrf-0002Qx-6H for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 11:12:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48887) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ljNre-00005k-K1 for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 11:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ljNre-0006Md-Fj for bug-gnu-emacs@gnu.org; Wed, 19 May 2021 11:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 May 2021 15:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36649 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 36649-submit@debbugs.gnu.org id=B36649.162143709124420 (code B ref 36649); Wed, 19 May 2021 15:12:02 +0000 Original-Received: (at 36649) by debbugs.gnu.org; 19 May 2021 15:11:31 +0000 Original-Received: from localhost ([127.0.0.1]:60433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNr2-0006Ld-Sx for submit@debbugs.gnu.org; Wed, 19 May 2021 11:11:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ljNr0-0006LP-6x for 36649@debbugs.gnu.org; Wed, 19 May 2021 11:11:23 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51922) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ljNqt-0008Iw-8B; Wed, 19 May 2021 11:11:15 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3355 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ljNqs-0002EE-Om; Wed, 19 May 2021 11:11:15 -0400 In-Reply-To: <83a6ottp55.fsf@gnu.org> (message from Eli Zaretskii on Mon, 17 May 2021 17:23:50 +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" Xref: news.gmane.io gmane.emacs.bugs:206894 Archived-At: > Date: Mon, 17 May 2021 17:23:50 +0300 > From: Eli Zaretskii > Cc: eggert@cs.ucla.edu, rpluim@gmail.com, stefan@marxist.se, > schwab@linux-m68k.org, monnier@iro.umontreal.ca, pipcet@gmail.com, > 36649@debbugs.gnu.org, akrl@sdf.org > > If no one else is willing to debug the unexec problems, I will do it > myself, at my own pace. Now done. At least the unoptimized build with unexec runs cleanly to completion on GNU/Linux. Turns out we broke this about 1.5 year ago, when an unrelated change inadvertently disabled the use of HYBRID_MALLOC in this build, which is a must for unexec to work on this platform. There's one aspect of the changeset I pushed that I'm uneasy about. It is this part in configure.ac: diff --git a/configure.ac b/configure.ac index 3df4359..d35ac6d 100644 --- a/configure.ac +++ b/configure.ac @@ -2306,6 +2309,9 @@ AC_DEFUN GNU_MALLOC_reason=" (only before dumping)" GMALLOC_OBJ=gmalloc.o VMLIMIT_OBJ= + # FIXME: This is to prevent Gnulib from redirecting 'free' to its + # replacement, instead of 'hybrid_free' in gmalloc.c. + gl_cv_func_free_preserves_errno=yes else test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o VMLIMIT_OBJ=vm-limit.o The problem here is that Gnulib wants to redirect 'free' to its replacement 'rpl_free', and that breaks our own redirection, in conf_post.h, to 'hybrid_free' (of gmalloc.c), which we _must_ use in this configuration. I couldn't find a clean fix, so for now the unexec build will not use the Gnulib replacement for 'free'. Paul, if this kludge annoys you enough (I hope it will), please suggest a cleaner way out of this conundrum.