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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32552 in the body.
You can then email your comments to 32552 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#32552; Package emacs. (Tue, 28 Aug 2018 06:21:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 28 Aug 2018 06:21:02 GMT) Full text and rfc822 format available.

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)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32552; Package emacs. (Tue, 28 Aug 2018 07:23:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Barabosch\, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
Cc: 32552 <at> debbugs.gnu.org
Subject: Re: bug#32552: Core dump of Emacs 26.1 due to elisp variable
 definition
Date: Tue, 28 Aug 2018 10:22:12 +0300
> From: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
> Date: Tue, 28 Aug 2018 08:05:42 +0200
> Cc: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
> 
> 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

Thanks, should be fixed now on the emacs-26 branch.




bug marked as fixed in version 26.2, send any further explanations to 32552 <at> debbugs.gnu.org and "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 28 Aug 2018 15:37:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32552; Package emacs. (Sat, 01 Sep 2018 14:02:02 GMT) Full text and rfc822 format available.

Message #13 received at 32552-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: thomas.barabosch <at> fkie.fraunhofer.de
Cc: 32552-done <at> debbugs.gnu.org
Subject: Re: bug#32552: Core dump of Emacs 26.1 due to elisp variable
 definition
Date: Sat, 01 Sep 2018 17:01:23 +0300
> Date: Tue, 28 Aug 2018 10:22:12 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 32552 <at> debbugs.gnu.org
> 
> > From: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
> > Date: Tue, 28 Aug 2018 08:05:42 +0200
> > Cc: "Barabosch, Thomas" <thomas.barabosch <at> fkie.fraunhofer.de>
> > 
> > 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
> 
> Thanks, should be fixed now on the emacs-26 branch.

No further comments, so I'm closing this bug.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 30 Sep 2018 11:24:03 GMT) Full text and rfc822 format available.

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.