From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: hybrid_malloc on CANNOT_DUMP? Date: Sun, 20 Nov 2016 22:05:01 -0500 Message-ID: <4FCCE846-4073-407B-B9D7-C8A0032DD2FE@raeburn.org> References: <337f0a16-afbb-63dc-0d24-d53a9986be31@dancol.org> <92f6cd2e-5141-6e60-df08-4a33269928cd@cs.ucla.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1479697552 21340 195.159.176.226 (21 Nov 2016 03:05:52 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 03:05:52 +0000 (UTC) Cc: Daniel Colascione , Emacs developers To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 21 04:05:46 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8evS-0004pk-7E for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 04:05:46 +0100 Original-Received: from localhost ([::1]:47092 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8evV-0002AQ-Md for ged-emacs-devel@m.gmane.org; Sun, 20 Nov 2016 22:05:49 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48267) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8eus-000282-1M for emacs-devel@gnu.org; Sun, 20 Nov 2016 22:05:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8euo-00054L-RT for emacs-devel@gnu.org; Sun, 20 Nov 2016 22:05:10 -0500 Original-Received: from mail-qk0-x242.google.com ([2607:f8b0:400d:c09::242]:33104) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c8euo-000524-Iu for emacs-devel@gnu.org; Sun, 20 Nov 2016 22:05:06 -0500 Original-Received: by mail-qk0-x242.google.com with SMTP id x190so44092682qkb.0 for ; Sun, 20 Nov 2016 19:05:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raeburn-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FitoYIwqhHWxRmXfih0Hg+Mu3aZmP5IBrP43Xx0lCn4=; b=ULiNh/DHJNYzvCSzKBtzAdKVp8R2xfcFlWb8LGtd/RIuqZ806s0OD2cZHXk5ZcRgNj OAbufqOsGP9jCzmT/6UxJ3cd7NQ0d1Q7EOTkrX9PZh7b/n6C1fEMKqlrAoOF62AXYS6U CyAkrRi2E1vjsRfpHjixTX+AYZZ/I3PEfQnh2r5gTsZyN1ksvhe7EBJ4ZFtvz9GI5wMt 6Qs0t/jWFosBXvS+LTEtSQkfTWwMn9fZ+QMHsXx5F0TRpkWhMW/CEMoCUIN1prEg7jFa vsmtZTyNdjrf9/ohdYczONTh8ypKM4GwoV+X4Vy3D/EiykJW8coir81Hwdyi1NkagxxE wyeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=FitoYIwqhHWxRmXfih0Hg+Mu3aZmP5IBrP43Xx0lCn4=; b=bM2v2k/pulN5XOtYayYPJqUoAytHVhneSMtz6AlmNlTq1LUo4qJLhtp2IogNkIhQ70 376Mog617YEMMWG0AH/UJ3i2dsepzQv6Uq5AOmIHemymBEpGlax4ZS2DUOwL4OtdryYk z/JlO0D5RMn+WKi/13QDuJIBioCxuzazgP/FYhAVwyPj7gYLmSF0FSqDJY+BAQ7jb33i JjOl4aZdByL9Lk2CpxuaOWpcTVCjeHLTc13QSd+JlVyeMPAn6li6eiU5Ia8nnCjRNWty WshCL4eLEArY0q2kHYvQmFQdXYWE3Mr4S00P4TNqkMuTH4q6po1TzMRHt7vWJlnXVyw4 YrDQ== X-Gm-Message-State: AKaTC01Z6AK34tQJzX5RmEF7JQw2Zv+0V2sYlKQVJGp1B73RoYUe452IrobQ7pAR75nk1A== X-Received: by 10.55.109.133 with SMTP id i127mr14248306qkc.295.1479697504078; Sun, 20 Nov 2016 19:05:04 -0800 (PST) Original-Received: from [192.168.23.52] (c-50-138-183-136.hsd1.ma.comcast.net. [50.138.183.136]) by smtp.gmail.com with ESMTPSA id 31sm10211999qty.30.2016.11.20.19.05.03 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 20 Nov 2016 19:05:03 -0800 (PST) In-Reply-To: <92f6cd2e-5141-6e60-df08-4a33269928cd@cs.ucla.edu> X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::242 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209517 Archived-At: > On Nov 20, 2016, at 20:03, Paul Eggert wrote: >=20 > Daniel Colascione wrote: >> Emacs on GNU/Linux and X11 crashes on startup in a CANNOT_DUMP = configuration due >> to some nonsense inside gmalloc. Why wouldn't we want to force = hybrid_malloc=3Doff >> in a CANNOT_DUMP configuration? >=20 > Yes, that makes sense. More generally, the CANNOT_DUMP code has been = suffering from bitrot for some time. I just now made a pass through it = to fix some gotchas and installed the attached into Emacs master. It's = still a mess, but at least I can now do 'configure CANNOT_DUMP=3Dyes = emacs_cv_var_doug_lea_malloc=3Dno' and run 'make check', and most tests = pass. Hope this helps. Sounds like it broke a little more since I tried it a few weeks ago. :-( Back then, it didn=E2=80=99t break until it got to trying to = byte-compile Lisp files. Even with the configure options you specify here, I can=E2=80=99t get it = to link on a GNU/Linux configuration: emacs.o: In function `main': /home/ken/dev/emacs/emacs/lx2/src/../../src/emacs.c:725: undefined = reference to `my_endbss_static' /home/ken/dev/emacs/emacs/lx2/src/../../src/emacs.c:725: undefined = reference to `my_endbss' /home/ken/dev/emacs/emacs/lx2/src/../../src/emacs.c:725: undefined = reference to `my_endbss' /home/ken/dev/emacs/emacs/lx2/src/../../src/emacs.c:725: undefined = reference to `my_endbss_static' collect2: error: ld returned 1 exit status Makefile:611: recipe for target 'temacs=E2=80=99 failed $ my_endbss is no longer defined if CANNOT_DUMP is true, but emacs.c = references it if GNU_LINUX is defined. Ken=