GNU bug report logs - #32552
Core dump of Emacs 26.1 due to elisp variable definition

Previous Next

Package: emacs;

Reported by: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>

Date: Tue, 28 Aug 2018 06:21:02 UTC

Severity: normal

Fixed in version 26.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
To: <bug-gnu-emacs <at> gnu.org>
Cc: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
Subject: Core dump of Emacs 26.1 due to elisp variable definition
Date: Tue, 28 Aug 2018 08:05:42 +0200
[Message part 1 (text/plain, inline)]
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/


[test_min.el (text/plain, attachment)]

This bug report was last modified 6 years and 348 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.