From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Barabosch, Thomas" Newsgroups: gmane.emacs.bugs Subject: bug#32552: Core dump of Emacs 26.1 due to elisp variable definition Date: Tue, 28 Aug 2018 08:05:42 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1C6A59D8A610B08C6C35CDFB" X-Trace: blaine.gmane.org 1535437153 26254 195.159.176.226 (28 Aug 2018 06:19:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Aug 2018 06:19:13 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 Cc: "Barabosch, Thomas" To: 32552@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 28 08:19:09 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 1fuXLJ-0006fp-8m for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2018 08:19:09 +0200 Original-Received: from localhost ([::1]:36480 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuXNP-0006ay-7j for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Aug 2018 02:21:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuXNF-0006as-4D for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:21:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuXNB-0004Dv-48 for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:21:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57935) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuXN8-00042y-UA for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:21:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fuXN8-0003uu-O4 for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Barabosch, Thomas" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Aug 2018 06:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32552 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.153543722114981 (code B ref -1); Tue, 28 Aug 2018 06:21:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Aug 2018 06:20:21 +0000 Original-Received: from localhost ([127.0.0.1]:34720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuXMT-0003tZ-AY for submit@debbugs.gnu.org; Tue, 28 Aug 2018 02:20:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52553) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fuXCV-0003eA-1z for submit@debbugs.gnu.org; Tue, 28 Aug 2018 02:10:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuXCP-0005za-8C for submit@debbugs.gnu.org; Tue, 28 Aug 2018 02:09:57 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fuXCP-0005zM-2x for submit@debbugs.gnu.org; Tue, 28 Aug 2018 02:09:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fuXCK-0000yn-8T for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:09:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fuX8N-00039a-Qt for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:05:52 -0400 Original-Received: from mailguard.fkie.fraunhofer.de ([2001:638:401:102::305]:39840 helo=a.mx.fkie.fraunhofer.de) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fuX8N-00035B-AK for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 02:05:47 -0400 Original-Received: from rufsun5.fkie.fraunhofer.de ([128.7.2.5] helo=mailhost.fkie.fraunhofer.de) by a.mx.fkie.fraunhofer.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1fuX8L-0003pV-Dc for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 08:05:45 +0200 Original-Received: from srv-mail-01.fkie.fraunhofer.de ([128.7.11.16] helo=srv-mail-01.gaia.fkie.fraunhofer.de) by mailhost.fkie.fraunhofer.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fuX8L-0006ed-8Z for bug-gnu-emacs@gnu.org; Tue, 28 Aug 2018 08:05:45 +0200 Original-Received: from [10.71.189.82] (128.7.89.212) by srv-mail-01.gaia.fkie.fraunhofer.de (128.7.11.16) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Tue, 28 Aug 2018 08:05:42 +0200 Openpgp: preference=signencrypt Autocrypt: addr=thomas.barabosch@fkie.fraunhofer.de; keydata= xsFNBE7cf50BEADWtIaQ5wrDlt5E+2x/HO5vjV2d2aclD1i6fnX5D/ka2W1+FASebl1lDlXw ELL+IPgactlQR0//xNOCNMxs6UWBC8DKBYnN+QBbDNajDxc9L5utzGWPMt89WN6atBK4maCB qQZ+rntKOdw7jHetePTxpqc/Co35ab3aPfmjZpSFo3vXi1OD74fqjvjnh8cQRndvPGL4QXio xdWodSg+nknazjJ2+VrVnlXBvqzmlMscMKzoZRBFiB+XaWN4lAcL/sPax8L2GlIglmYCncM8 QTtczaNEh+/9mA4UTq9cnqqO9Ui7Urk4exiaa0n1YNVVElE/6GC23uc7Tfk7QnzHH8AoMG0l GjXW5sTP4v8p93T6pJ8Q+7A7elDgRkP/U/nu7RiDHTFf7UwCUN0PhGEVKbIB9wyDA6RXU8kC i77Y5SbG+a3DUtpl1W7E7vjBP8P0r8VYee36lnR4yHlpz7BkA24V4H145VsjBCSJj9ePiBDD x22lcNhtE2S7wBEu5aGEdCfMgxQ+6rJsUaQ+OZyD5bEvDVX1QGubSeb6WA22Laeyh4jhA4pk R/uHrgCz0yR53xBe6qtcW6WwTEP0jBpiBuB3IDSd70Cs2LsiLjsfDcgfCpZ1nt+rrLF+uecA aChaaX5bAv2kw1oW2Vk5LXVRFdOM8eNCPI+LFa56sgHpfZFYcQARAQABzSpUaG9tYXMgQmFy YWJvc2NoIDxiYXJhYm9zY0Bjcy51bmktYm9ubi5kZT7CwX4EEwECACgCGyMGCwkIBwMCBhUI AgkKCwQWAgMBAh4BAheABQJ Content-Language: en-US X-Originating-IP: [128.7.89.212] X-ClientProxiedBy: srv-mail-01.gaia.fkie.fraunhofer.de (128.7.11.16) To srv-mail-01.gaia.fkie.fraunhofer.de (128.7.11.16) X-Virus-Scanned: yes (ClamAV 0.99.3/24836/Sun Aug 12 18:45:25 2018) by a.mx.fkie.fraunhofer.de X-Scan-Signature: a8e2f18599482a3592288cf2106a6f9f X-Spam_score: -1.0 X-Spam_score_int: -9 X-Spam_bar: - X-Spam_report: Spam detection software, running on the system "mailguard.fkie.fraunhofer.de", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hello, the following piece of elisp crashes Emacs 26.1 (core dump): > ; ; ; -*- lexical-binding: t -*- > (defvar ; dead-beef* (symbol-function #'dead-beef) > =?UTF-8?Q?=C2_?= =?UTF-8?Q?=C2_?= =?UTF-8?Q?=C2?= "Some random description") [...] Content analysis details: (-1.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SHORTCIRCUIT Not all rules were run, due to a shortcircuited rule -1.0 ALL_TRUSTED Passed through trusted hosts on X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 28 Aug 2018 02:20:19 -0400 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:149795 Archived-At: --------------1C6A59D8A610B08C6C35CDFB Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Hello, the following piece of elisp crashes Emacs 26.1 (core dump): > ;;; -*- lexical-binding: t -*- > (defvar ;dead-beef* (symbol-function #'dead-beef) >     "Some random description") Note a couple of things: - lexical binding seems to be important (otherwise no crash) - ; seems to be the major cause - the variable definition must be split across two lines Please find attached a minimal proof of concept. You should be able to reproduce the crash with 'emacs -Q --script test_min.el'. Best regards, Thomas -- Thomas Barabosch Fraunhofer FKIE Tel.: +49 228 50212-601 Cyber Analysis & Defense Fax: +49 228 73-4571 Zanderstraße 5 D-53113 Bonn, Germany http://www.fkie.fraunhofer.de/ --------------1C6A59D8A610B08C6C35CDFB Content-Type: text/plain; charset="UTF-8"; name="test_min.el" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test_min.el" Ozs7IC0qLSBsZXhpY2FsLWJpbmRpbmc6IHQgLSotCihkZWZ2YXIgO2RlYWQtYmVlZiogKHN5 bWJvbC1mdW5jdGlvbiAjJ2RlYWQtYmVlZikKICAgICJTb21lIHJhbmRvbSBkZXNjcmlwdGlv biIpCg== --------------1C6A59D8A610B08C6C35CDFB--