bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31072: 27.0.50; Assertion failure in defvar


From: Philipp Stephani
Subject: bug#31072: 27.0.50; Assertion failure in defvar
Date: Fri, 06 Apr 2018 15:57:40 +0000



Philipp <address@hidden> schrieb am Fr., 6. Apr. 2018 um 03:25 Uhr:

Loading the following file triggers an assertion failure:

;;; -*- lexical-binding: t; -*-
(defvar 1)

$ emacs -Q -batch -l /tmp/crash.el
eval.c:772: Emacs fatal error: assertion failed: SYMBOLP (sym)
Fatal error 6: Abort trapAbort trap: 6

This is because Fdefvar lacks a CHECK_SYMBOL in the second branch
(lexical binding but only one argument)

Here is a patch. 

Attachment: 0001-Avoid-undefined-behavior-in-defvar-Bug-31072.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]