From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.bugs Subject: bug#36649: 27.0.50; pure space and pdumper Date: Sun, 21 Jul 2019 15:44:51 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="226331"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36649@debbugs.gnu.org, Paul Eggert To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 21 15:46:10 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hpCAD-000wly-CG for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2019 15:46:09 +0200 Original-Received: from localhost ([::1]:56132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpCAB-0003mM-Re for geb-bug-gnu-emacs@m.gmane.org; Sun, 21 Jul 2019 09:46:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50283) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpCA8-0003m1-0n for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 09:46:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpCA6-00089Q-Up for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 09:46:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hpCA6-00089G-QU for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 09:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hpCA6-0004w5-Kf for bug-gnu-emacs@gnu.org; Sun, 21 Jul 2019 09:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Jul 2019 13:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36649 X-GNU-PR-Package: emacs Original-Received: via spool by 36649-submit@debbugs.gnu.org id=B36649.156371670315095 (code B ref 36649); Sun, 21 Jul 2019 13:46:01 +0000 Original-Received: (at 36649) by debbugs.gnu.org; 21 Jul 2019 13:45:03 +0000 Original-Received: from localhost ([127.0.0.1]:58241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpC98-0003ut-3z for submit@debbugs.gnu.org; Sun, 21 Jul 2019 09:45:02 -0400 Original-Received: from mail-wr1-f42.google.com ([209.85.221.42]:45525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpC96-0003uO-9K for 36649@debbugs.gnu.org; Sun, 21 Jul 2019 09:45:00 -0400 Original-Received: by mail-wr1-f42.google.com with SMTP id f9so36635498wre.12 for <36649@debbugs.gnu.org>; Sun, 21 Jul 2019 06:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-copies-to:gmane-reply-to-list :date:in-reply-to:message-id:mime-version:content-transfer-encoding; bh=h88p0JVhhD/SFKZ0GmKxrRojxz1j/bPv/ghIh/pNpLU=; b=YgGuhceSujuk+1qYhrvYMWtoNPI8Ln57QFeksTx7F7rBy+j6wPjsd2Ag66cwEbXLfk Y935rGZ/dKgg9EogyzeKaqEMSAAmTyaF7QhWVDd35cmIOytZOHyTWq65RJHIY1R0HjOX 9IJPdXGvUDhyCiQ/oOzc01ia9O1GLt881yrY/Qxt6CV1SeyZ9OK8NAlak+Po3J9n5LPi mF00wHe9pA/9i4qJq1PSysUvqwPzfMzEQUpqgTp6BNhR5zbsWY7q+C3goX9i1rWzu33B aX2M97nUFyAIpwjBpzwaUh9VGIsfwjDBGoAVZckbOlIorJ5VjgMSmUzEvBEvD874dJn3 6cbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=h88p0JVhhD/SFKZ0GmKxrRojxz1j/bPv/ghIh/pNpLU=; b=XmFS+Kr26Pb30P3CpGTQ1eTBO726ujv7pAhUTC+NIJH2NMfSRFbXWml7BetK3ZJpZ4 oMtkXcU79o6BCqtF7aJrm8JBINDDYo+24YzU8eR+yHHov9sipP41H1kFUK2DYkpoCC0p PiI9rPMYSPqBVvam6jRDe8lJ/6UoBfA1m6Nv79fUE12pkfF94Ls3yIHHWKjHr/BXggR4 cNRYQxf5WMC/Y+ZhWJIDbksW+bmfrQCUb2UDLPyAI+qOkyvoVJyqBOY8MDx5sTrRW8rw jba1l6Sxaqs2+uO2+yoozMi9AN0A0n9h+j8U6ER1uqA0V/rzTauEOiEAIB3Qmnocv9qF Qqlg== X-Gm-Message-State: APjAAAV91SRB4LXn07AuC+Ee67yyD8DgWd000QRX3NY+wZVeZ1zH3xIx iEXhAlRK8pRWru18Gau3mkY28sKp X-Google-Smtp-Source: APXvYqyAl4sEp9EYi9dmher00DQF1WlasRqPuLIB0uLA7oZoySFvZ7Sytv2usr6Johf9lSTioQzRow== X-Received: by 2002:adf:e483:: with SMTP id i3mr28563306wrm.210.1563716693809; Sun, 21 Jul 2019 06:44:53 -0700 (PDT) Original-Received: from rpluim-mac ([2a01:e34:ecfc:a860:c53e:f59d:3814:6a60]) by smtp.gmail.com with ESMTPSA id c6sm34347717wma.25.2019.07.21.06.44.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 21 Jul 2019 06:44:52 -0700 (PDT) Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: (Pip Cet's message of "Sun, 21 Jul 2019 12:53:21 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163515 Archived-At: >>>>> On Sun, 21 Jul 2019 12:53:21 +0000, Pip Cet said: Pip> I think we should do (1) for now, since it simplifies the code eno= ugh Pip> to introduce immutable objects "soon"; but until that time, we was= te Pip> more space on duplicate objects that we no longer know to be Pip> immutable, so cannot merge. Pip> I'm attaching a first patch that removes pure space, pinned symbol= s, Pip> pinned objects, but keeps Fpurecopy (for hash consing), and doesn't Pip> touch the Lisp codebase. This doesn=CA=BCt build for me on macOS. After adjusting the parameters to the call to make_hash_table in image.c, it crashes when dumping: make[1]: Nothing to be done for `charscript.el'. rm -f bootstrap-emacs.pdmp ./temacs --batch -l loadup --temacs=3Dpbootstrap make: *** [bootstrap-emacs.pdmp] Segmentation fault: 11 * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3DEXC_I386_GPFLT) frame #0: 0x000000010016dc70 temacs`mark_object [inlined] symbol_marked= _p(s=3D0x00080401003fdde0) at alloc.c:3741:14 [opt] 3738 { 3739 return pdumper_object_p (s) 3740 ? pdumper_marked_p (s) -> 3741 : s->u.s.gcmarkbit; 3742 } 3743 * thread #1, queue =3D 'com.apple.main-thread', stop reason =3D EXC_BAD_ACC= ESS (code=3DEXC_I386_GPFLT) * frame #0: 0x000000010016dc70 temacs`mark_object [inlined] symbol_marked= _p(s=3D0x00080401003fdde0) at alloc.c:3741:14 [opt] frame #1: 0x000000010016dc4c temacs`mark_object(arg=3D) at= alloc.c:6082 [opt] frame #2: 0x000000010016f30a temacs`mark_vectorlike(header=3D0x00000001= 01804000) at alloc.c:5666:5 [opt] frame #3: 0x000000010016d6e0 temacs`mark_object(arg=3D) at= alloc.c:5607:1 [opt] [artificial] frame #4: 0x000000010016c4cc temacs`garbage_collect_1 [inlined] mark_ob= ject_root_visitor(root_ptr=3D, type=3DGC_ROOT_STATICPRO) at al= loc.c:5303:3 [opt] frame #5: 0x000000010016c4c4 temacs`garbage_collect_1 at alloc.c:5295 [= opt] frame #6: 0x000000010016c34f temacs`garbage_collect_1(gcst=3D0x00007ffe= efbff248) at alloc.c:5427 [opt] frame #7: 0x000000010016c114 temacs`garbage_collect at alloc.c:5551:3 [= opt] frame #8: 0x000000010019b836 temacs`eval_sub [inlined] maybe_gc at lisp= .h:4974:5 [opt] frame #9: 0x000000010019b824 temacs`eval_sub(form=3D0x000000010302e843)= at eval.c:2166 [opt] frame #10: 0x00000001001a023a temacs`Feval(form=3D0x000000010302e843, l= exical=3D) at eval.c:2089:28 [opt] frame #11: 0x000000010019f082 temacs`internal_condition_case(bfun=3D(te= macs`top_level_2 at keyboard.c:1099), handlers=3D0x0000000000000090, hfun= =3D(temacs`cmd_error at keyboard.c:919)) at eval.c:1347:25 [opt] frame #12: 0x00000001001107ed temacs`top_level_1(ignore=3D= ) at keyboard.c:1108:5 [opt] frame #13: 0x000000010019e617 temacs`internal_catch(tag=3D0x00000000000= 0c420, func=3D(temacs`top_level_1 at keyboard.c:1105), arg=3D0x000000000000= 0000) at eval.c:1108:25 [opt] frame #14: 0x00000001000fc16f temacs`command_loop at keyboard.c:1069:2 = [opt] frame #15: 0x00000001000fc093 temacs`recursive_edit_1 at keyboard.c:714= :9 [opt] frame #16: 0x00000001000fc3ac temacs`Frecursive_edit at keyboard.c:786:= 3 [opt] frame #17: 0x00000001000fa9b1 temacs`main(argc=3D, argv=3D= 0x00007ffeefbff6b8) at emacs.c:2085:3 [opt] frame #18: 0x00007fff7f9da3d5 libdyld.dylib`start + 1 frame #19: 0x00007fff7f9da3d5 libdyld.dylib`start + 1 =20=20=20=20