unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#32552: Core dump of Emacs 26.1 due to elisp variable definition
@ 2018-08-28  6:05 Barabosch, Thomas
  2018-08-28  7:22 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Barabosch, Thomas @ 2018-08-28  6:05 UTC (permalink / raw)
  To: 32552; +Cc: Barabosch, Thomas

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

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/



[-- Attachment #2: test_min.el --]
[-- Type: text/plain, Size: 112 bytes --]

;;; -*- lexical-binding: t -*-
(defvar ;dead-beef* (symbol-function #'dead-beef)
    "Some random description")

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#32552: Core dump of Emacs 26.1 due to elisp variable definition
  2018-08-28  6:05 bug#32552: Core dump of Emacs 26.1 due to elisp variable definition Barabosch, Thomas
@ 2018-08-28  7:22 ` Eli Zaretskii
  2018-09-01 14:01   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2018-08-28  7:22 UTC (permalink / raw)
  To: Barabosch, Thomas; +Cc: 32552

> From: "Barabosch, Thomas" <thomas.barabosch@fkie.fraunhofer.de>
> Date: Tue, 28 Aug 2018 08:05:42 +0200
> Cc: "Barabosch, Thomas" <thomas.barabosch@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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#32552: Core dump of Emacs 26.1 due to elisp variable definition
  2018-08-28  7:22 ` Eli Zaretskii
@ 2018-09-01 14:01   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2018-09-01 14:01 UTC (permalink / raw)
  To: thomas.barabosch; +Cc: 32552-done

> Date: Tue, 28 Aug 2018 10:22:12 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 32552@debbugs.gnu.org
> 
> > From: "Barabosch, Thomas" <thomas.barabosch@fkie.fraunhofer.de>
> > Date: Tue, 28 Aug 2018 08:05:42 +0200
> > Cc: "Barabosch, Thomas" <thomas.barabosch@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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-01 14:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-28  6:05 bug#32552: Core dump of Emacs 26.1 due to elisp variable definition Barabosch, Thomas
2018-08-28  7:22 ` Eli Zaretskii
2018-09-01 14:01   ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).