From mboxrd@z Thu Jan 1 00:00:00 1970
Path: news.gmane.org!.POSTED!not-for-mail
From: Philipp
Newsgroups: gmane.emacs.bugs
Subject: bug#31072: 27.0.50; Assertion failure in defvar
Date: Fri, 06 Apr 2018 03:24:30 +0200
Message-ID:
NNTP-Posting-Host: blaine.gmane.org
Mime-Version: 1.0
Content-Type: text/plain
X-Trace: blaine.gmane.org 1522977798 5357 195.159.176.226 (6 Apr 2018 01:23:18 GMT)
X-Complaints-To: usenet@blaine.gmane.org
NNTP-Posting-Date: Fri, 6 Apr 2018 01:23:18 +0000 (UTC)
To: 31072@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 06 03:23:13 2018
Return-path:
Envelope-to: geb-bug-gnu-emacs@m.gmane.org
Original-Received: from lists.gnu.org ([208.118.235.17])
by blaine.gmane.org with esmtp (Exim 4.84_2)
(envelope-from )
id 1f4G5u-0001Er-ED
for geb-bug-gnu-emacs@m.gmane.org; Fri, 06 Apr 2018 03:23:10 +0200
Original-Received: from localhost ([::1]:41357 helo=lists.gnu.org)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from )
id 1f4G7z-00032B-Sp
for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Apr 2018 21:25:19 -0400
Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39346)
by lists.gnu.org with esmtp (Exim 4.71)
(envelope-from ) id 1f4G7k-0002x9-6N
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:25:07 -0400
Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
(envelope-from ) id 1f4G7i-0007Wo-Ge
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:25:04 -0400
Original-Received: from debbugs.gnu.org ([208.118.235.43]:60083)
by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
(Exim 4.71) (envelope-from )
id 1f4G7i-0007Wi-Ce
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:25:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
(envelope-from ) id 1f4G7i-00049A-6n
for bug-gnu-emacs@gnu.org; Thu, 05 Apr 2018 21:25:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Philipp
Original-Sender: "Debbugs-submit"
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Fri, 06 Apr 2018 01:25:02 +0000
Resent-Message-ID:
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 31072
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords:
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.152297788815914
(code B ref -1); Fri, 06 Apr 2018 01:25:02 +0000
Original-Received: (at submit) by debbugs.gnu.org; 6 Apr 2018 01:24:48 +0000
Original-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
Original-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
Original-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
Original-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
Original-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
Original-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
Original-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
Original-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)
Original-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)
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-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 208.118.235.43
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
the Swiss army knife of text editors"
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org
Original-Sender: "bug-gnu-emacs"
Xref: news.gmane.org gmane.emacs.bugs:144938
Archived-At:
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))