From unknown Fri Jun 20 07:13:10 2025
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
Content-Type: text/plain; charset=utf-8
From: bug#31072 <31072@debbugs.gnu.org>
To: bug#31072 <31072@debbugs.gnu.org>
Subject: Status: 27.0.50; Assertion failure in defvar
Reply-To: bug#31072 <31072@debbugs.gnu.org>
Date: Fri, 20 Jun 2025 14:13:10 +0000
retitle 31072 27.0.50; Assertion failure in defvar
reassign 31072 emacs
submitter 31072 Philipp
severity 31072 minor
thanks
From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 05 21:24:48 2018
Received: (at submit) by debbugs.gnu.org; 6 Apr 2018 01:24:48 +0000
Received: from localhost ([127.0.0.1]:39747 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f4G7T-00048c-Rw
for submit@debbugs.gnu.org; Thu, 05 Apr 2018 21:24:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:48097)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1f4G7S-00048P-HH
for submit@debbugs.gnu.org; Thu, 05 Apr 2018 21:24:47 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1f4G7L-0007DP-IU
for submit@debbugs.gnu.org; Thu, 05 Apr 2018 21:24:41 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: *
X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50,
FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:34305)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
(Exim 4.71) (envelope-from )
id 1f4G7L-0007D6-Ek
for submit@debbugs.gnu.org; Thu, 05 Apr 2018 21:24:39 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:39041)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1f4G7I-0002cF-Rq
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:24:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1f4G7H-00070t-Cs
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:24:36 -0400
Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:54139)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1f4G7H-0006yC-1P
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:24:35 -0400
Received: by mail-wm0-x233.google.com with SMTP id p9so9949493wmc.3
for ; Thu, 05 Apr 2018 18:24:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=from:to:subject:date:message-id:mime-version;
bh=oMtyzOqY9McprgWRSNRbjzAKWmzt6bQHK49wUbPq8po=;
b=ndZmvfSz9MyVIuZguVRWlotWfPYhJYlyvU/oCo1T9sAuwqkeGcuUZoZLs92BTNW6rX
XZNPTc4gp8vKPEQ+6Ykhwn5W4J8BiPfNxFOx7/aTESRSwlnFOZekZr/wdseE+DVwC9f+
R4lQl2moCs2fQVrazq6adybtF0FDJDTAnrpy6ENgi0Sb9C7Cw4wpE+PyIenpLdLCu6pb
MRynS1pKAs5TyW8xgFK7/ctW3Gq/kEQhVTCdccH08WQcinfIQyZxm3FYPqeErbgytClS
hpAYyPi09vaIGDXukhu1RNQphn/RXA01pz4wf88KYrT5IUdalofZFFQEWSVMIZriKrYK
6x8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
bh=oMtyzOqY9McprgWRSNRbjzAKWmzt6bQHK49wUbPq8po=;
b=coafpnMNYunRIxm37m/eRMHXiQucc8x1uuyCu1pLMpFE5UR6BNZO/Fv6Wyj+Qk8tZk
NRnLr70B/2C5gurGGVHgLhYnhxGZ31br/zLKYsSlA6+rxTE9TjFPCG0XypRrlUgjDt+L
SeyV3e8M+Gv7RiR/c/dFT7gifmVLGe+D4TI5ERT2Y+/DqOR8eefJGKy+B0d3WI4BD85b
U4OSxzEjPeacLMX312/km/1LZLvnr6MF8KBFznTuPm6VZ75o1vmq7P8PyYMX47jDitGt
Z7t2emeME/BSKrcT6Xu9Loz1hT5Alyj2ZqJmnsR/fV/7qxzNqpGqvsna/J14sRLBRuD9
lErw==
X-Gm-Message-State: ALQs6tBtTt8nP6qd2tPw7ae/0mfC/bhTH5SPo8w2BYMk+LzoIY7fpp21
LevurHKvKzE+YItXjkum0pNN2gUj
X-Google-Smtp-Source: AIpwx49hh6GQUz55/19HNVBtOGG4z/Gme/FAqhu/gM7MuZfdNXQABb+q+YhKAYkewVlki9xVt/H1bA==
X-Received: by 10.28.106.1 with SMTP id f1mr540072wmc.59.1522977873255;
Thu, 05 Apr 2018 18:24:33 -0700 (PDT)
Received: from p ([2001:4c50:25c:c900:50af:7b92:cd56:5e52])
by smtp.gmail.com with ESMTPSA id h190sm11940521wmd.22.2018.04.05.18.24.31
for
(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
Thu, 05 Apr 2018 18:24:31 -0700 (PDT)
From: Philipp
To: bug-gnu-emacs@gnu.org
Subject: 27.0.50; Assertion failure in defvar
Date: Fri, 06 Apr 2018 03:24:30 +0200
Message-ID:
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.8 (---)
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).
Backtrace:
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00007fff6b22ce3e libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x00007fff6b36b150 libsystem_pthread.dylib`pthread_kill + 333
frame #2: 0x00007fff6b13b8fe libsystem_c.dylib`raise + 26
frame #3: 0x00000001001b73ca emacs`terminate_due_to_signal(sig=6, backtrace_limit=40) at emacs.c:395
frame #4: 0x00000001001f98e3 emacs`emacs_abort at sysdep.c:2426
frame #5: 0x0000000100453ef8 emacs`ns_term_shutdown(sig=6) at nsterm.m:5478
frame #6: 0x00000001001b7710 emacs`shut_down_emacs(sig=6, stuff=(i = 0x0000000000000000)) at emacs.c:2132
frame #7: 0x00000001001b7366 emacs`terminate_due_to_signal(sig=6, backtrace_limit=2147483647) at emacs.c:378
frame #8: 0x0000000100288bab emacs`die(msg="SYMBOLP (sym)", file="eval.c", line=772) at alloc.c:7434
frame #9: 0x00000001002f1f1d emacs`Fdefvar(args=(i = 0x0000000106051a63)) at eval.c:772
frame #10: 0x00000001002ea9aa emacs`eval_sub(form=(i = 0x0000000106051a93)) at eval.c:2238
frame #11: 0x000000010037d75f emacs`readevalloop_eager_expand_eval(val=(i = 0x0000000106051a93), macroexpand=(i = 0x00000000056c5668)) at lread.c:1884
frame #12: 0x0000000100375115 emacs`readevalloop(readcharfun=(i = 0x0000000101004ba5), infile0=0x0000000000000000, sourcename=(i = 0x00000001010066b4), printflag=false, unibyte=(i = 0x0000000000000000), readfun=(i = 0x0000000000000000), start=(i = 0x0000000000000000), end=(i = 0x0000000000000000)) at lread.c:2070
frame #13: 0x000000010037588a emacs`Feval_buffer(buffer=(i = 0x0000000101004ba5), printflag=(i = 0x0000000000000000), filename=(i = 0x00000001010048d4), unibyte=(i = 0x0000000000000000), do_allow_print=(i = 0x000000000000b8e0)) at lread.c:2137
frame #14: 0x000000010030a6f3 emacs`funcall_subr(subr=0x000000010093c920, numargs=5, args=0x00007ffeefbf7fb0) at eval.c:2908
frame #15: 0x0000000100308cab emacs`Ffuncall(nargs=6, args=0x00007ffeefbf7fa8) at eval.c:2821
frame #16: 0x00000001003b2e4d emacs`exec_byte_code(bytestr=(i = 0x000000010055da5c), vector=(i = 0x000000010055da7d), maxdepth=(i = 0x000000000000001a), args_template=(i = 0x0000000000000000), nargs=0, args=0x0000000000000000) at bytecode.c:632
frame #17: 0x000000010030b2df emacs`funcall_lambda(fun=(i = 0x000000010055d9dd), nargs=4, arg_vector=0x00007ffeefbf9478) at eval.c:3100
frame #18: 0x0000000100308cfb emacs`Ffuncall(nargs=5, args=0x00007ffeefbf9470) at eval.c:2823
frame #19: 0x0000000100309e89 emacs`call4(fn=(i = 0x0000000005eb6528), arg1=(i = 0x00000001010048d4), arg2=(i = 0x00000001010048d4), arg3=(i = 0x0000000000000000), arg4=(i = 0x000000000000b8e0)) at eval.c:2697
frame #20: 0x00000001003717df emacs`Fload(file=(i = 0x0000000101229954), noerror=(i = 0x0000000000000000), nomessage=(i = 0x000000000000b8e0), nosuffix=(i = 0x0000000000000000), must_suffix=(i = 0x0000000000000000)) at lread.c:1366
frame #21: 0x000000010030a6f3 emacs`funcall_subr(subr=0x000000010093c8f0, numargs=3, args=0x00007ffeefbf9d68) at eval.c:2908
frame #22: 0x0000000100308cab emacs`Ffuncall(nargs=4, args=0x00007ffeefbf9d60) at eval.c:2821
frame #23: 0x00000001003b2e4d emacs`exec_byte_code(bytestr=(i = 0x000000010063cf1c), vector=(i = 0x000000010063cf3d), maxdepth=(i = 0x000000000000005e), args_template=(i = 0x0000000000000406), nargs=1, args=0x00007ffeefbfb5f8) at bytecode.c:632
frame #24: 0x000000010030ac7c emacs`funcall_lambda(fun=(i = 0x000000010063ceed), nargs=1, arg_vector=0x00007ffeefbfb5f0) at eval.c:3022
frame #25: 0x0000000100308cfb emacs`Ffuncall(nargs=2, args=0x00007ffeefbfb5e8) at eval.c:2823
frame #26: 0x00000001003b2e4d emacs`exec_byte_code(bytestr=(i = 0x0000000100637834), vector=(i = 0x0000000100637855), maxdepth=(i = 0x0000000000000032), args_template=(i = 0x0000000000000002), nargs=0, args=0x00007ffeefbfd048) at bytecode.c:632
frame #27: 0x000000010030ac7c emacs`funcall_lambda(fun=(i = 0x0000000100637805), nargs=0, arg_vector=0x00007ffeefbfd048) at eval.c:3022
frame #28: 0x0000000100308cfb emacs`Ffuncall(nargs=1, args=0x00007ffeefbfd040) at eval.c:2823
frame #29: 0x00000001003b2e4d emacs`exec_byte_code(bytestr=(i = 0x00000001006367e4), vector=(i = 0x0000000100636805), maxdepth=(i = 0x0000000000000032), args_template=(i = 0x0000000000000002), nargs=0, args=0x00007ffeefbfe4e0) at bytecode.c:632
frame #30: 0x000000010030ac7c emacs`funcall_lambda(fun=(i = 0x00000001006367b5), nargs=0, arg_vector=0x00007ffeefbfe4e0) at eval.c:3022
frame #31: 0x00000001002fee63 emacs`apply_lambda(fun=(i = 0x00000001006367b5), args=(i = 0x0000000000000000), count=4) at eval.c:2958
frame #32: 0x00000001002efb2c emacs`eval_sub(form=(i = 0x00000001020738d3)) at eval.c:2331
frame #33: 0x00000001002faae7 emacs`Feval(form=(i = 0x00000001020738d3), lexical=(i = 0x0000000000000000)) at eval.c:2106
frame #34: 0x00000001001d9b8a emacs`top_level_2 at keyboard.c:1120
frame #35: 0x00000001002f8f4f emacs`internal_condition_case(bfun=(emacs`top_level_2 at keyboard.c:1119), handlers=(i = 0x0000000000004a10), hfun=(emacs`cmd_error at keyboard.c:939)) at eval.c:1332
frame #36: 0x00000001001d9831 emacs`top_level_1(ignore=(i = 0x0000000000000000)) at keyboard.c:1128
frame #37: 0x00000001002f8158 emacs`internal_catch(tag=(i = 0x000000000000bf10), func=(emacs`top_level_1 at keyboard.c:1125), arg=(i = 0x0000000000000000)) at eval.c:1097
frame #38: 0x00000001001bba91 emacs`command_loop at keyboard.c:1089
frame #39: 0x00000001001bb8d4 emacs`recursive_edit_1 at keyboard.c:696
frame #40: 0x00000001001bbd01 emacs`Frecursive_edit at keyboard.c:767
frame #41: 0x00000001001b9379 emacs`main(argc=5, argv=0x00007ffeefbff7a0) at emacs.c:1724
frame #42: 0x00007fff6b0dd115 libdyld.dylib`start + 1
Found by american fuzzy lop.
In GNU Emacs 27.0.50 (build 60, x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D102))
of 2018-04-06 built on p
Repository revision: 3deaac1bd9569fd57185e9e6256cc8419323ba78
Windowing system distributor 'Apple', version 10.3.1561
System Description: Mac OS X 10.13.3
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --with-modules --without-pop --with-mailutils
--enable-gcc-warnings=yes --enable-checking
--enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''
Configured features:
NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
JSON
Important settings:
value of $LANG: de_DE.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
easymenu mml-sec password-cache epa derived epg epg-config gnus-util
rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date elec-pair
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote kqueue cocoa ns
multi-tty make-network-process emacs)
Memory information:
((conses 16 204514 6370)
(symbols 48 19989 1)
(miscs 40 56 173)
(strings 32 28825 1989)
(string-bytes 1 771796)
(vectors 16 35273)
(vector-slots 8 721624 13558)
(floats 8 51 65)
(intervals 56 210 0)
(buffers 992 11))
From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 06 11:57:59 2018
Received: (at 31072) by debbugs.gnu.org; 6 Apr 2018 15:57:59 +0000
Received: from localhost ([127.0.0.1]:40536 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f4TkV-0004uZ-Fk
for submit@debbugs.gnu.org; Fri, 06 Apr 2018 11:57:59 -0400
Received: from mail-lf0-f41.google.com ([209.85.215.41]:40055)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1f4TkT-0004uK-GD
for 31072@debbugs.gnu.org; Fri, 06 Apr 2018 11:57:57 -0400
Received: by mail-lf0-f41.google.com with SMTP id e5-v6so1226761lfb.7
for <31072@debbugs.gnu.org>; Fri, 06 Apr 2018 08:57:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to;
bh=GkQokjXzfbXs6nc2vz9yz5GApOyPxHj6gNYDUCWpiXw=;
b=f7sd3Nomeh/nbwf/+rOOfixRuggWzgxo7iF7FrWxfkr3ZtG9q4Pbj9nWHnA/6+JpFb
cvgxS4HrxefpFf8OyLXNV1DOsBBEa0lX3VhgcKHDZ7CYauZ2OruQBm1wibpsWWNxjWqf
VkNmbaf9gtLcdVrjR/7JAA0eH2hO+JRzqkzCIGhQOxmJrfnrm7zdip8oRTIITTKLtd+S
l6+eiBIHXNM7G3mhNK0ZpIaRJbi4cr3lbVLajT1RQpUwGMeBY7oF3Ec7L0zyQ4ziyJYH
6g3dzbhylDwMqSTeQspSxU3sNei331g1zDu9qc5PqundZGD9OWEyvaNPAa1PjV97VrvE
Aw/Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=GkQokjXzfbXs6nc2vz9yz5GApOyPxHj6gNYDUCWpiXw=;
b=UP2PTssPCgax59ps7pRtnihIoNvpGtUv4vCeofADyArklERLj2MxanbGqDYPvN4ffm
M6qTp8/SwHSqxaY9Q3NQ9YWvN4yOfYap+iYG7OlnQejAwPiC0+xfV50FHMk+HAc97q+Z
6NFXpQBtHmOGc3cATJQ0Qey78AxhZROeWWhxpkkJsG9KWNfonrb91rfxDxqoF6OcoG74
lLahM8rxGu2pa7iCNijLfkg6s0GdVv05jGyDKAY7qPD7VwZ3b3kji5ach/Qja3r5hm0A
ZaeFs0YEWH0CFkS2GBey/OjTIShYev72VTDTVpY8ZAGvCsPnbBOZ8/t3v8KDm9lKf3Ki
99Ew==
X-Gm-Message-State: ALQs6tBF/KU/pE6dYOhBqYhaHRVhzkgFgLdt2Wu+YCcS4xLAZXfeCgKQ
kLoimEiL+FjbwgYB7QFlAoEfY/FjfkjUf4bo5TdMgA==
X-Google-Smtp-Source: AIpwx4/lZkAcz+uHVCORzTDFjeHBq8K1GCaj094YnHdXuBh82jV3Obkv3kGB9Qe9mSMgBNMFxy0BW0/S/j1YgpjwX44=
X-Received: by 2002:a19:136a:: with SMTP id
j103-v6mr16270712lfi.19.1523030271252;
Fri, 06 Apr 2018 08:57:51 -0700 (PDT)
MIME-Version: 1.0
References:
In-Reply-To:
From: Philipp Stephani
Date: Fri, 06 Apr 2018 15:57:40 +0000
Message-ID:
Subject: Re: bug#31072: 27.0.50; Assertion failure in defvar
To: 31072@debbugs.gnu.org
Content-Type: multipart/mixed; boundary="0000000000004cf3300569301e57"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 31072
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -0.8 (/)
--0000000000004cf3300569301e57
Content-Type: multipart/alternative; boundary="0000000000004cf32c0569301e55"
--0000000000004cf32c0569301e55
Content-Type: text/plain; charset="UTF-8"
Philipp 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.
--0000000000004cf32c0569301e55
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
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.=C2=A0
--0000000000004cf32c0569301e55--
--0000000000004cf3300569301e57
Content-Type: text/plain; charset="US-ASCII";
name="0001-Avoid-undefined-behavior-in-defvar-Bug-31072.txt"
Content-Disposition: attachment;
filename="0001-Avoid-undefined-behavior-in-defvar-Bug-31072.txt"
Content-Transfer-Encoding: base64
Content-ID: <1629bad5afea30134f91>
X-Attachment-Id: 1629bad5afea30134f91
RnJvbSBlNGUzMDFjODIyOGU2ZDI5Y2VjNmI0NGQ4NmRhNDdhMGRiOGYzZTBjIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwIFN0ZXBoYW5pIDxwaHN0QGdvb2dsZS5jb20+CkRh
dGU6IEZyaSwgNiBBcHIgMjAxOCAxNzo1NTo1OSArMDIwMApTdWJqZWN0OiBbUEFUQ0hdIEF2b2lk
IHVuZGVmaW5lZCBiZWhhdmlvciBpbiAnZGVmdmFyJyAoQnVnIzMxMDcyKQoKKiBzcmMvZXZhbC5j
IChGZGVmdmFyKTogQ2hlY2sgdGhhdCBmaXJzdCBhcmd1bWVudCBpcyBhIHN5bWJvbC4KKiB0ZXN0
L3NyYy9ldmFsLXRlc3RzLmVsIChkZWZ2YXIvYnVnMzEwNzIpOiBOZXcgdW5pdCB0ZXN0LgotLS0K
IHNyYy9ldmFsLmMgICAgICAgICAgICAgfCAyICsrCiB0ZXN0L3NyYy9ldmFsLXRlc3RzLmVsIHwg
NCArKysrCiAyIGZpbGVzIGNoYW5nZWQsIDYgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL3Ny
Yy9ldmFsLmMgYi9zcmMvZXZhbC5jCmluZGV4IGE2ZTFkODZjNGEuLjkwZDhjMzM1MTggMTAwNjQ0
Ci0tLSBhL3NyYy9ldmFsLmMKKysrIGIvc3JjL2V2YWwuYwpAQCAtNzM3LDYgKzczNyw4IEBAIHVz
YWdlOiAoZGVmdmFyIFNZTUJPTCAmb3B0aW9uYWwgSU5JVFZBTFVFIERPQ1NUUklORykgICovKQog
ICBzeW0gPSBYQ0FSIChhcmdzKTsKICAgdGFpbCA9IFhDRFIgKGFyZ3MpOwogCisgIENIRUNLX1NZ
TUJPTCAoc3ltKTsKKwogICBpZiAoIU5JTFAgKHRhaWwpKQogICAgIHsKICAgICAgIGlmICghTklM
UCAoWENEUiAodGFpbCkpICYmICFOSUxQIChYQ0RSIChYQ0RSICh0YWlsKSkpKQpkaWZmIC0tZ2l0
IGEvdGVzdC9zcmMvZXZhbC10ZXN0cy5lbCBiL3Rlc3Qvc3JjL2V2YWwtdGVzdHMuZWwKaW5kZXgg
NTlkYTZiN2NjMy4uMzE5ZGQ5MWM4NiAxMDA2NDQKLS0tIGEvdGVzdC9zcmMvZXZhbC10ZXN0cy5l
bAorKysgYi90ZXN0L3NyYy9ldmFsLXRlc3RzLmVsCkBAIC0xMTMsNCArMTEzLDggQEAgZXZhbC10
ZXN0cy0tZXhjZWVkLXNwZWNiaW5kLWxpbWl0CiAgICAgICAgIChzaWduYWwtaG9vay1mdW5jdGlv
biAjJ2lnbm9yZSkpCiAgICAgKHNob3VsZC1lcnJvciAoZXZhbC10ZXN0cy0tZXhjZWVkLXNwZWNi
aW5kLWxpbWl0KSkpKQogCisoZXJ0LWRlZnRlc3QgZGVmdmFyL2J1ZzMxMDcyICgpCisgICJDaGVj
ayB0aGF0IEJ1ZyMzMTA3MiBpcyBmaXhlZC4iCisgIChzaG91bGQtZXJyb3IgKGV2YWwgJyhkZWZ2
YXIgMSkgdCkgOnR5cGUgJ3dyb25nLXR5cGUtYXJndW1lbnQpKQorCiA7OzsgZXZhbC10ZXN0cy5l
bCBlbmRzIGhlcmUKLS0gCjIuMTcuMAoK
--0000000000004cf3300569301e57--
From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 10 18:47:10 2018
Received: (at 31072) by debbugs.gnu.org; 10 Apr 2018 22:47:10 +0000
Received: from localhost ([127.0.0.1]:45514 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f622f-0005JA-RS
for submit@debbugs.gnu.org; Tue, 10 Apr 2018 18:47:10 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52942)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1f622d-0005Ix-VE
for 31072@debbugs.gnu.org; Tue, 10 Apr 2018 18:47:08 -0400
Received: from localhost (localhost [127.0.0.1])
by zimbra.cs.ucla.edu (Postfix) with ESMTP id 7D5EB16161E;
Tue, 10 Apr 2018 15:47:02 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
with ESMTP id AxU6wb6mLPlX; Tue, 10 Apr 2018 15:47:01 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by zimbra.cs.ucla.edu (Postfix) with ESMTP id D0F701616EF;
Tue, 10 Apr 2018 15:47:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id a8Xo-DC8iuWx; Tue, 10 Apr 2018 15:47:01 -0700 (PDT)
Received: from [192.168.1.9] (unknown [47.154.30.119])
by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id B1CC616161E;
Tue, 10 Apr 2018 15:47:01 -0700 (PDT)
To: Philipp Stephani
From: Paul Eggert
Subject: Re: 27.0.50; Assertion failure in defvar
Organization: UCLA Computer Science Department
Message-ID: <5fab169d-870a-c29a-e164-52aa99fcb82a@cs.ucla.edu>
Date: Tue, 10 Apr 2018 15:47:01 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 31072
Cc: 31072@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
Please install that patch into 'master' and reply to 31072-done@debbugs.gnu.org
to mark this bug as done. And thanks.
From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 16 02:50:40 2018
Received: (at 31072-done) by debbugs.gnu.org; 16 Apr 2018 06:50:40 +0000
Received: from localhost ([127.0.0.1]:54841 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f7xyK-0004QY-0G
for submit@debbugs.gnu.org; Mon, 16 Apr 2018 02:50:40 -0400
Received: from zimbra.cs.ucla.edu ([131.179.128.68]:56908)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from ) id 1f7xyI-0004QM-PN
for 31072-done@debbugs.gnu.org; Mon, 16 Apr 2018 02:50:39 -0400
Received: from localhost (localhost [127.0.0.1])
by zimbra.cs.ucla.edu (Postfix) with ESMTP id 955451616A5;
Sun, 15 Apr 2018 23:50:32 -0700 (PDT)
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032)
with ESMTP id cQOvHUluviEd; Sun, 15 Apr 2018 23:50:32 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
by zimbra.cs.ucla.edu (Postfix) with ESMTP id 016F91616B1;
Sun, 15 Apr 2018 23:50:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu
Received: from zimbra.cs.ucla.edu ([127.0.0.1])
by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026)
with ESMTP id 1lgDeza_yJNw; Sun, 15 Apr 2018 23:50:31 -0700 (PDT)
Received: from [192.168.1.9] (unknown [47.154.30.119])
by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D4F9B1616A5;
Sun, 15 Apr 2018 23:50:31 -0700 (PDT)
Subject: Re: 27.0.50; Assertion failure in defvar
From: Paul Eggert
To: Philipp Stephani
References: <5fab169d-870a-c29a-e164-52aa99fcb82a@cs.ucla.edu>
Organization: UCLA Computer Science Department
Message-ID: <187b8d47-af6a-b078-1d63-316ec42d1a1b@cs.ucla.edu>
Date: Sun, 15 Apr 2018 23:50:27 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <5fab169d-870a-c29a-e164-52aa99fcb82a@cs.ucla.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 31072-done
Cc: 31072-done@debbugs.gnu.org
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit"
X-Spam-Score: -3.3 (---)
I installed that patch into master. Thanks again. Closing the bug.
From unknown Fri Jun 20 07:13:10 2025
Received: (at fakecontrol) by fakecontrolmessage;
To: internal_control@debbugs.gnu.org
From: Debbugs Internal Request
Subject: Internal Control
Message-Id: bug archived.
Date: Mon, 14 May 2018 11:24:07 +0000
User-Agent: Fakemail v42.6.9
# This is a fake control message.
#
# The action:
# bug archived.
thanks
# This fakemail brought to you by your local debbugs
# administrator