From unknown Sat Aug 16 16:21:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#36769: portable dumper mishandles user-defined hashtabs Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jul 2019 01:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 36769 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 36769@debbugs.gnu.org X-Debbugs-Original-To: Emacs bug reports and feature requests Received: via spool by submit@debbugs.gnu.org id=B.156384536327772 (code B ref -1); Tue, 23 Jul 2019 01:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jul 2019 01:29:23 +0000 Received: from localhost ([127.0.0.1]:33775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpjcI-0007Dr-Mg for submit@debbugs.gnu.org; Mon, 22 Jul 2019 21:29:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:42797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpjcG-0007Df-Hw for submit@debbugs.gnu.org; Mon, 22 Jul 2019 21:29:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39851) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpjcF-0005qg-Dz for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 21:29:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpjcE-00066q-Ev for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 21:29:19 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44642) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hpjcE-00065H-85 for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 21:29:18 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F01DC161672 for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WHdYkXotYSJj for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 25B241616C2 for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZrISbBDMZjQI for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 01483161672 for ; Mon, 22 Jul 2019 18:29:15 -0700 (PDT) References: From: Paul Eggert Organization: UCLA Computer Science Department X-Forwarded-Message-Id: Message-ID: <99deefdf-4ef2-8e56-9369-2a41c2b254ed@cs.ucla.edu> Date: Mon, 22 Jul 2019 18:29:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------5E3C29BCFD3DC826F26DB72F" Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------5E3C29BCFD3DC826F26DB72F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable [I reported this problem on emacs-devel here: https://lists.gnu.org/r/emacs-devel/2019-07/msg00544.html and am sending this to bug-gnu-emacs to get a bug number.] Portable dumping currently can screw up hash tables with user-defined tes= ts. I=20 discovered this over the weekend while looking into Pip Cet's proposed ch= anges=20 to how portable dumping treats hash tables, and have a contrived test cas= e (see=20 attached) that causes gethash to fail with "Lisp nesting exceeds=20 =E2=80=98max-lisp-eval-depth=E2=80=99" in an Emacs started via a portable= dump, even though the=20 same gethash works fine before dumping. --------------5E3C29BCFD3DC826F26DB72F Content-Type: application/x-shellscript; name="trouble.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="trouble.sh" IyEvYmluL3NoCgouL2VtYWNzIC1RIC1iYXRjaCAtZXZhbCAnCiAgKHByb2duCiAgICAoZGVm dmFyIGZvby1wcmVzZW50IG5pbCkKICAgIChkZWZ1biBiYWQtZXEgKGEgYikKICAgICAgKGVx IGEgYikpCiAgICAoZGVmdW4gYmFkLWhhc2ggKGEpCiAgICAgIChpZiAoYW5kIGZvby1wcmVz ZW50IChlcSBhIDIpKQogICAgICAgICAgKGdldGhhc2ggJ1wnJ2ZvbyBoKQoJKHN4aGFzaC1l cSAnXCcnZm9vKSkpCiAgICAoZGVmaW5lLWhhc2gtdGFibGUtdGVzdCAnXCcnYmFkLXRlc3Qg J1wnJ2JhZC1lcSAnXCcnYmFkLWhhc2gpCiAgICAoc2V0cSBoIChtYWtlLWhhc2gtdGFibGUg OnRlc3QgJ1wnJ2JhZC10ZXN0KSkKICAgIChwdXRoYXNoIDAgKHN4aGFzaC1lcSAwKSBoKQog ICAgKHB1dGhhc2ggJ1wnJ2ZvbyAoc3hoYXNoLWVxICdcJydmb28pIGgpCiAgICAocmVtaGFz aCAwIGgpCiAgICAoc2V0cSBmb28tcHJlc2VudCB0KQogICAgKHB1dGhhc2ggMiAoc3hoYXNo LWVxICdcJydmb28pIGgpCiAgICAobWVzc2FnZSAiJXMgJXMiIGggKGdldGhhc2ggMiBoKSkK ICAgIChkdW1wLWVtYWNzLXBvcnRhYmxlICJ0ZXN0LnBkbXAiKSkKJwouL2VtYWNzIC0tZHVt cC1maWxlIHRlc3QucGRtcCAtUSAtYmF0Y2ggLWV2YWwgJyhtZXNzYWdlICIlcyAlcyIgaCAo Z2V0aGFzaCAyIGgpKScK --------------5E3C29BCFD3DC826F26DB72F-- From unknown Sat Aug 16 16:21:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Eggert Subject: bug#36769: closed (Re: portable dumper mishandles user-defined hashtabs) Message-ID: References: <99deefdf-4ef2-8e56-9369-2a41c2b254ed@cs.ucla.edu> X-Gnu-PR-Message: they-closed 36769 X-Gnu-PR-Package: emacs Reply-To: 36769@debbugs.gnu.org Date: Tue, 23 Jul 2019 02:07:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1563847623-31573-1" This is a multi-part message in MIME format... ------------=_1563847623-31573-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #36769: portable dumper mishandles user-defined hashtabs which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 36769@debbugs.gnu.org. --=20 36769: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D36769 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1563847623-31573-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 36769-done) by debbugs.gnu.org; 23 Jul 2019 02:06:24 +0000 Received: from localhost ([127.0.0.1]:33804 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpkC7-0008C4-VM for submit@debbugs.gnu.org; Mon, 22 Jul 2019 22:06:24 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55458) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpkC5-0008Bl-0H for 36769-done@debbugs.gnu.org; Mon, 22 Jul 2019 22:06:22 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F1B78161672 for <36769-done@debbugs.gnu.org>; Mon, 22 Jul 2019 19:06:13 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id pfnKmPZfyMOt for <36769-done@debbugs.gnu.org>; Mon, 22 Jul 2019 19:06:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 3D23B1616C2 for <36769-done@debbugs.gnu.org>; Mon, 22 Jul 2019 19:06:13 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id O4CW4fLo_Mxf for <36769-done@debbugs.gnu.org>; Mon, 22 Jul 2019 19:06:13 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1A6F1161672 for <36769-done@debbugs.gnu.org>; Mon, 22 Jul 2019 19:06:13 -0700 (PDT) To: 36769-done@debbugs.gnu.org From: Paul Eggert Subject: Re: portable dumper mishandles user-defined hashtabs Organization: UCLA Computer Science Department Message-ID: Date: Mon, 22 Jul 2019 19:06:12 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 0.8 (/) X-Debbugs-Envelope-To: 36769-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) Closing this as I installed a patch as described here: https://lists.gnu.org/r/emacs-devel/2019-07/msg00563.html ------------=_1563847623-31573-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Jul 2019 01:29:23 +0000 Received: from localhost ([127.0.0.1]:33775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpjcI-0007Dr-Mg for submit@debbugs.gnu.org; Mon, 22 Jul 2019 21:29:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:42797) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hpjcG-0007Df-Hw for submit@debbugs.gnu.org; Mon, 22 Jul 2019 21:29:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39851) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hpjcF-0005qg-Dz for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 21:29:20 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_05,RCVD_IN_DNSWL_MED, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hpjcE-00066q-Ev for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 21:29:19 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:44642) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hpjcE-00065H-85 for bug-gnu-emacs@gnu.org; Mon, 22 Jul 2019 21:29:18 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F01DC161672 for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WHdYkXotYSJj for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 25B241616C2 for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZrISbBDMZjQI for ; Mon, 22 Jul 2019 18:29:16 -0700 (PDT) Received: from [192.168.1.9] (cpe-23-242-74-103.socal.res.rr.com [23.242.74.103]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 01483161672 for ; Mon, 22 Jul 2019 18:29:15 -0700 (PDT) Subject: portable dumper mishandles user-defined hashtabs References: To: Emacs bug reports and feature requests From: Paul Eggert Organization: UCLA Computer Science Department X-Forwarded-Message-Id: Message-ID: <99deefdf-4ef2-8e56-9369-2a41c2b254ed@cs.ucla.edu> Date: Mon, 22 Jul 2019 18:29:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------5E3C29BCFD3DC826F26DB72F" Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------5E3C29BCFD3DC826F26DB72F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable [I reported this problem on emacs-devel here: https://lists.gnu.org/r/emacs-devel/2019-07/msg00544.html and am sending this to bug-gnu-emacs to get a bug number.] Portable dumping currently can screw up hash tables with user-defined tes= ts. I=20 discovered this over the weekend while looking into Pip Cet's proposed ch= anges=20 to how portable dumping treats hash tables, and have a contrived test cas= e (see=20 attached) that causes gethash to fail with "Lisp nesting exceeds=20 =E2=80=98max-lisp-eval-depth=E2=80=99" in an Emacs started via a portable= dump, even though the=20 same gethash works fine before dumping. --------------5E3C29BCFD3DC826F26DB72F Content-Type: application/x-shellscript; name="trouble.sh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="trouble.sh" IyEvYmluL3NoCgouL2VtYWNzIC1RIC1iYXRjaCAtZXZhbCAnCiAgKHByb2duCiAgICAoZGVm dmFyIGZvby1wcmVzZW50IG5pbCkKICAgIChkZWZ1biBiYWQtZXEgKGEgYikKICAgICAgKGVx IGEgYikpCiAgICAoZGVmdW4gYmFkLWhhc2ggKGEpCiAgICAgIChpZiAoYW5kIGZvby1wcmVz ZW50IChlcSBhIDIpKQogICAgICAgICAgKGdldGhhc2ggJ1wnJ2ZvbyBoKQoJKHN4aGFzaC1l cSAnXCcnZm9vKSkpCiAgICAoZGVmaW5lLWhhc2gtdGFibGUtdGVzdCAnXCcnYmFkLXRlc3Qg J1wnJ2JhZC1lcSAnXCcnYmFkLWhhc2gpCiAgICAoc2V0cSBoIChtYWtlLWhhc2gtdGFibGUg OnRlc3QgJ1wnJ2JhZC10ZXN0KSkKICAgIChwdXRoYXNoIDAgKHN4aGFzaC1lcSAwKSBoKQog ICAgKHB1dGhhc2ggJ1wnJ2ZvbyAoc3hoYXNoLWVxICdcJydmb28pIGgpCiAgICAocmVtaGFz aCAwIGgpCiAgICAoc2V0cSBmb28tcHJlc2VudCB0KQogICAgKHB1dGhhc2ggMiAoc3hoYXNo LWVxICdcJydmb28pIGgpCiAgICAobWVzc2FnZSAiJXMgJXMiIGggKGdldGhhc2ggMiBoKSkK ICAgIChkdW1wLWVtYWNzLXBvcnRhYmxlICJ0ZXN0LnBkbXAiKSkKJwouL2VtYWNzIC0tZHVt cC1maWxlIHRlc3QucGRtcCAtUSAtYmF0Y2ggLWV2YWwgJyhtZXNzYWdlICIlcyAlcyIgaCAo Z2V0aGFzaCAyIGgpKScK --------------5E3C29BCFD3DC826F26DB72F-- ------------=_1563847623-31573-1--