From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#31718: 26.1; Strange behavior of `cond' Date: Sat, 16 Jun 2018 08:10:02 -0700 Organization: UCLA Computer Science Department Message-ID: <08fcc11f-3ae6-cc99-d56a-450fd773495b@cs.ucla.edu> References: <37954.1528179962@localhost> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------40A84458BF3C72D8CB326A96" X-Trace: blaine.gmane.org 1529161748 13404 195.159.176.226 (16 Jun 2018 15:09:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2018 15:09:08 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cc: Jay Kamat , Ikumi Keita , =?UTF-8?Q?H=C3=A9ctor_?= =?UTF-8?Q?Enr=C3=ADquez_?= =?UTF-8?Q?Ram=C3=B3n?= , Noam Postavsky , Vibhav Pant , "Basil L. Contovounesios" , 31718@debbugs.gnu.org, Pierre =?UTF-8?Q?T=C3=A9choueyres?= , Andreas Schwab To: Robert Cochran Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 17:09:03 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1fUCp5-0003JN-00 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2018 17:09:03 +0200 Original-Received: from localhost ([::1]:51799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUCrA-0001JU-C9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2018 11:11:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUCr3-0001JP-KK for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 11:11:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUCr0-0006Tq-EL for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 11:11:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43889) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUCr0-0006Tl-8Y for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 11:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fUCqz-0004N3-UN for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2018 11:11:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <37954.1528179962@localhost> Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jun 2018 15:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31718 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 31718-submit@debbugs.gnu.org id=B31718.152916181316739 (code B ref 31718); Sat, 16 Jun 2018 15:11:01 +0000 Original-Received: (at 31718) by debbugs.gnu.org; 16 Jun 2018 15:10:13 +0000 Original-Received: from localhost ([127.0.0.1]:51786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUCqD-0004Lv-7b for submit@debbugs.gnu.org; Sat, 16 Jun 2018 11:10:13 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:43306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fUCqB-0004Lh-F9 for 31718@debbugs.gnu.org; Sat, 16 Jun 2018 11:10:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 72C4216064E; Sat, 16 Jun 2018 08:10:05 -0700 (PDT) Original-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 kS9OIgE2Yil5; Sat, 16 Jun 2018 08:10:04 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 495B5160650; Sat, 16 Jun 2018 08:10:04 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-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 Nu9TVUsUiNBc; Sat, 16 Jun 2018 08:10:04 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2C13916064E; Sat, 16 Jun 2018 08:10:03 -0700 (PDT) Openpgp: preference=signencrypt Autocrypt: addr=eggert@cs.ucla.edu; prefer-encrypt=mutual; keydata= xsFNBEyAcmQBEADAAyH2xoTu7ppG5D3a8FMZEon74dCvc4+q1XA2J2tBy2pwaTqfhpxxdGA9 Jj50UJ3PD4bSUEgN8tLZ0san47l5XTAFLi2456ciSl5m8sKaHlGdt9XmAAtmXqeZVIYX/UFS 96fDzf4xhEmm/y7LbYEPQdUdxu47xA5KhTYp5bltF3WYDz1Ygd7gx07Auwp7iw7eNvnoDTAl KAl8KYDZzbDNCQGEbpY3efZIvPdeI+FWQN4W+kghy+P6au6PrIIhYraeua7XDdb2LS1en3Ss mE3QjqfRqI/A2ue8JMwsvXe/WK38Ezs6x74iTaqI3AFH6ilAhDqpMnd/msSESNFt76DiO1ZK QMr9amVPknjfPmJISqdhgB1DlEdw34sROf6V8mZw0xfqT6PKE46LcFefzs0kbg4GORf8vjG2 Sf1tk5eU8MBiyN/bZ03bKNjNYMpODDQQwuP84kYLkX2wBxxMAhBxwbDVZudzxDZJ1C2VXujC OJVxq2kljBM9ETYuUGqd75AW2LXrLw6+MuIsHFAYAgRr7+KcwDgBAfwhPBYX34nSSiHlmLC+ KaHLeCLF5ZI2vKm3HEeCTtlOg7xZEONgwzL+fdKo+D6SoC8RRxJKs8a3sVfI4t6CnrQzvJbB n6gxdgCu5i29J1QCYrCYvql2UyFPAK+do99/1jOXT4m2836j1wARAQABzSBQYXVsIEVnZ2Vy dCA8ZWdnZXJ0QGNzLnVjbGEuZWR1PsLBfgQTAQIAKAUCTIByZAIbAwUJEswDAAYLCQgHAwIG FQgCCQoLBBYCAwECH Content-Language: en-US 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: 208.118.235.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:147508 Archived-At: This is a multi-part message in MIME format. --------------40A84458BF3C72D8CB326A96 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Robert, thanks for your June 6 patch in Bug#31718#14. A small problem: ge= nsym=20 does not guarantee that the resulting symbol is unique, so the generated = symbol=20 could in theory appear in the input which would trigger the bug. Instead,= let's=20 use a guaranteed-unique object (cons nil nil). Also, I wrote a test case = for=20 this bug. I installed the attached patch into the master branch. Given the practica= l=20 consequences of this bug I expect the bug fix should be backported into t= he=20 emacs-26 branch too. --------------40A84458BF3C72D8CB326A96 Content-Type: text/plain; charset=UTF-8; name="0001-Fix-byte-compilation-of-eq-foo-default.txt" Content-Transfer-Encoding: base64 Content-Disposition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gICAgICAgKG5vdCAoYXNzcSBvYmoyIGNhc2VzKSkpCiAg ICAgICAgICAgICAgICAgICAgKHB1c2ggKGxpc3QgKGlmIChjb25zcCBvYmoyKSAoZXZhbCBv YmoyKSBvYmoyKSBib2R5KSBjYXNlcykKICAgICAgICAgICAgICAgICAgKGlmIChhbmQgKG1h Y3JvZXhwLWNvbnN0LXAgY29uZGl0aW9uKSBjb25kaXRpb24pCi0gICAgICAgICAgICAgICAg ICAgICAocHJvZ24gKHB1c2ggKGxpc3QgJ2RlZmF1bHQgKG9yIGJvZHkgYCgsY29uZGl0aW9u KSkpIGNhc2VzKQorCQkgICAgIChwcm9nbiAocHVzaCAobGlzdCBieXRlLWNvbXBpbGUtLWRl ZmF1bHQtdmFsCisJCQkJCShvciBib2R5IGAoLGNvbmRpdGlvbikpKQorCQkJCSAgY2FzZXMp CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKHRocm93ICdicmVhayB0KSkKICAgICAg ICAgICAgICAgICAgICAoc2V0cSBvayBuaWwpCiAgICAgICAgICAgICAgICAgICAgKHRocm93 ICdicmVhayBuaWwpKSkpKSkKQEAgLTQxMzksMTEgKzQxNDMsMTIgQEAgYnl0ZS1jb21waWxl LWNvbmQtanVtcC10YWJsZQogICAgICh3aGVuIChhbmQgY2FzZXMgKG5vdCAoPSAobGVuZ3Ro IGNhc2VzKSAxKSkpCiAgICAgICA7OyBUT0RPOiBPbmNlIDpsaW5lYXItc2VhcmNoIGlzIGlt cGxlbWVudGVkIGZvciBgbWFrZS1oYXNoLXRhYmxlJwogICAgICAgOzsgc2V0IGl0IHRvIGB0 JyBmb3IgY29uZCBmb3JtcyB3aXRoIGEgc21hbGwgbnVtYmVyIG9mIGNhc2VzLgotICAgICAg KHNldHEganVtcC10YWJsZSAobWFrZS1oYXNoLXRhYmxlIDp0ZXN0IHRlc3QKLSAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA6cHVyZWNvcHkgdAotICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDpzaXplIChpZiAoYXNzcSAnZGVmYXVs dCBjYXNlcykKLSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgKDEtIChsZW5ndGggY2FzZXMpKQotICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgKGxlbmd0aCBjYXNlcykpKQorICAgICAgKHNldHEganVt cC10YWJsZSAobWFrZS1oYXNoLXRhYmxlCisJCQk6dGVzdCB0ZXN0CisJCQk6cHVyZWNvcHkg dAorCQkJOnNpemUgKGlmIChhc3NxIGJ5dGUtY29tcGlsZS0tZGVmYXVsdC12YWwgY2FzZXMp CisJCQkJICAoMS0gKGxlbmd0aCBjYXNlcykpCisJCQkJKGxlbmd0aCBjYXNlcykpKQogICAg ICAgICAgICAgZGVmYXVsdC10YWcgKGJ5dGUtY29tcGlsZS1tYWtlLXRhZykKICAgICAgICAg ICAgIGRvbmV0YWcgKGJ5dGUtY29tcGlsZS1tYWtlLXRhZykpCiAgICAgICA7OyBUaGUgc3Ry dWN0dXJlIG9mIGJ5dGUtc3dpdGNoIGNvZGU6CkBAIC00MTc1LDkgKzQxODAsMTAgQEAgYnl0 ZS1jb21waWxlLWNvbmQtanVtcC10YWJsZQogICAgICAgKGxldCAoKGJ5dGUtY29tcGlsZS1k ZXB0aCBieXRlLWNvbXBpbGUtZGVwdGgpKQogICAgICAgICAoYnl0ZS1jb21waWxlLWdvdG8g J2J5dGUtZ290byBkZWZhdWx0LXRhZykpCiAKLSAgICAgICh3aGVuIChhc3NxICdkZWZhdWx0 IGNhc2VzKQotICAgICAgICAoc2V0cSBkZWZhdWx0LWNhc2UgKGNhZHIgKGFzc3EgJ2RlZmF1 bHQgY2FzZXMpKQotICAgICAgICAgICAgICBjYXNlcyAoYnV0bGFzdCBjYXNlcyAxKSkpCisg ICAgICAobGV0ICgoZGVmYXVsdC1tYXRjaCAoYXNzcSBieXRlLWNvbX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