From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#30846: 26.0.91; debug-watch of kill-all-local-variables triggers 'assertion failed: found == !EQ (blv->defcell, blv->valcell)' Date: Sun, 18 Mar 2018 09:10:41 -0400 Message-ID: <87sh8xttpq.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1521378554 25155 195.159.176.226 (18 Mar 2018 13:09:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Mar 2018 13:09:14 +0000 (UTC) To: 30846@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 18 14:09:09 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 1exY3e-0006Ol-O3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 14:09:06 +0100 Original-Received: from localhost ([::1]:37848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exY5h-0003HC-M6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Mar 2018 09:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exY5a-0003Eo-RV for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:11:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exY5W-00066i-OJ for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:11:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59588) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exY5W-00066P-Hi for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1exY5W-0004g5-8b for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Mar 2018 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30846 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.152137866117972 (code B ref -1); Sun, 18 Mar 2018 13:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Mar 2018 13:11:01 +0000 Original-Received: from localhost ([127.0.0.1]:39252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exY5U-0004fn-GN for submit@debbugs.gnu.org; Sun, 18 Mar 2018 09:11:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exY5S-0004fa-59 for submit@debbugs.gnu.org; Sun, 18 Mar 2018 09:10:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exY5L-0005w8-F1 for submit@debbugs.gnu.org; Sun, 18 Mar 2018 09:10:53 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:57079) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1exY5L-0005w4-8e for submit@debbugs.gnu.org; Sun, 18 Mar 2018 09:10:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exY5J-0003E4-Gd for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:10:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exY5F-0005qz-DC for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:10:49 -0400 Original-Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]:51832) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exY5F-0005qR-3V for bug-gnu-emacs@gnu.org; Sun, 18 Mar 2018 09:10:45 -0400 Original-Received: by mail-it0-x231.google.com with SMTP id j137-v6so30906ita.1 for ; Sun, 18 Mar 2018 06:10:45 -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=A/He14mPB3Tll3L82qAq0V2IofhseW45Vw+zQ55Xp14=; b=e/pOTaRekLV2neiTwdbvaB/VrlKVhAo7p03Spsjk0Bl2l7IobhhmM94INa3wS2M3qQ 40M3nIilByoQ9150Eyeh8PZcL56akBviMn7ZV34QUkTuajQJ/LQD0FpI9pZVANC8Or8D xL3CAKb3MiDYtdQ7Yu+VBZwctKlce8t6F4Jo7rDJln7C5dsp0CB+mevx21DLP6lZ+Ld8 X7FJWXbxDxExmJJtZ2cLRMNtk6sTAiNiCNXen40Qdy5RH78obPQE3S42k+0UZbBkp1HB a+KaE+JGSPIWKK/RkdiQ/lexd7lmFZFW5T/hgIqB156paos+Bq9mXk5B7lL/Q6vEO17Q lZmg== 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=A/He14mPB3Tll3L82qAq0V2IofhseW45Vw+zQ55Xp14=; b=Ja14nyKgbaEn0ogHJOBmtMk05F6npZ9t9KR2g/+EH88+DAQIVQwth3tBUFXVt+I3Tu GUhbvpVwdtzntsOjtB8ukfBmKIKTOgRey2Yv/qByKIC23+Y+ZuXs9alTiTzzCz5o0t12 Uowa3D/7sSkbvtwlH7f2JCfjQCme2jG9Iy7u2Tvn2bfJOTLOWXgmo0gAMyvqpbcjestg IuK8jCQrTh/s+KIlT5GESWZ/l1CLGCRfGzSjMaqxzsit8e01Dguai8CNoGtt9Uq8q7gr CT9f6C7Ai47q7pZQdeCWwOf/cYnq8pHbJuResMKYJFvLuJenCh89XK411x3VBBgwHqYY nfQA== X-Gm-Message-State: AElRT7Eh6jnH3+me+HpxbWhfVSbwvzniXAOdSKFVa1Ia//UffFtLLjAx 9z8C8vJdIyJPCzz26PLAmbSmsg== X-Google-Smtp-Source: AG47ELsPATdSwEEgTQLHmWWrw+j2p7X9MU7HSL6cMSgUrDTiloeF8Z76pg9OMV81fsfDAGexeH1jFg== X-Received: by 2002:a24:6c3:: with SMTP id 186-v6mr9474483itv.44.1521378644270; Sun, 18 Mar 2018 06:10:44 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id u67sm1417331ioe.12.2018.03.18.06.10.42 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 18 Mar 2018 06:10:43 -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:144381 Archived-At: --=-=-= Content-Type: text/plain Evaluate the following from 'emacs -Q': (setq-local foo 1) ;; Simulate (debug-watch 'foo) + continue from *Backtrace* (add-variable-watcher 'foo (lambda (symbol newval operation where) (with-temp-buffer (kill-all-local-variables)))) (fundamental-mode) This results in ../../src/data.c:98: Emacs fatal error: assertion failed: found == !EQ (blv->defcell, blv->valcell) Backtrace attached. I guess it has something to do with the recursive `kill-all-local-variables' call, although I'm not familiar enough with the local variable machinery to say more about it. --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=assert-fail-backtrace.log Content-Description: gdb backtrace #0 terminate_due_to_signal (sig=6, backtrace_limit=2147483647) at ../../src/emacs.c:364 #1 0x0000000000614655 in die (msg=0x75e788 "found == !EQ (blv->defcell, blv->valcell)", file=0x75e738 "../../src/data.c", line=98) at ../../src/alloc.c:7419 #2 0x0000000000614d5e in set_blv_found (blv=0x2e794b0, found=0) at ../../src/data.c:98 #3 0x0000000000619694 in Fmake_local_variable (variable=XIL(0xba4a0)) at ../../src/data.c:1963 #4 0x000000000063c8da in funcall_subr (subr=0xd750e0 , numargs=1, args=0x7fffffff9880) at ../../src/eval.c:2844 #5 0x000000000063c419 in Ffuncall (nargs=2, args=0x7fffffff9878) at ../../src/eval.c:2769 #6 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xaecfd4), vector=XIL(0xaecff5), maxdepth=make_number(5), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:629 #7 0x000000000063d500 in funcall_lambda (fun=XIL(0xaecfa5), nargs=1, arg_vector=0xaecff5 ) at ../../src/eval.c:3052 #8 0x000000000063c45d in Ffuncall (nargs=2, args=0x7fffffff9d78) at ../../src/eval.c:2771 #9 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xaecd84), vector=XIL(0xaecda5), maxdepth=make_number(5), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:629 #10 0x000000000063d500 in funcall_lambda (fun=XIL(0xaecd45), nargs=0, arg_vector=0xaecda5 ) at ../../src/eval.c:3052 #11 0x000000000063c45d in Ffuncall (nargs=1, args=0x7fffffffa298) at ../../src/eval.c:2771 #12 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xaed084), vector=XIL(0xaed0a5), maxdepth=make_number(1), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:629 #13 0x000000000063d500 in funcall_lambda (fun=XIL(0xaed055), nargs=0, arg_vector=0xaed0a5 ) at ../../src/eval.c:3052 #14 0x000000000063c45d in Ffuncall (nargs=1, args=0x7fffffffa728) at ../../src/eval.c:2771 #15 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xaed314), vector=XIL(0xaed335), maxdepth=make_number(2), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:629 #16 0x000000000063d500 in funcall_lambda (fun=XIL(0xaed2e5), nargs=0, arg_vector=0xaed335 ) at ../../src/eval.c:3052 #17 0x000000000063c45d in Ffuncall (nargs=1, args=0x7fffffffabd8) at ../../src/eval.c:2771 #18 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xaed634), vector=XIL(0xaed655), maxdepth=make_number(3), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:629 #19 0x000000000063d500 in funcall_lambda (fun=XIL(0xaed605), nargs=0, arg_vector=0xaed655 ) at ../../src/eval.c:3052 #20 0x000000000063c45d in Ffuncall (nargs=1, args=0x7fffffffb148) at ../../src/eval.c:2771 #21 0x000000000063b6aa in funcall_nil (nargs=1, args=0x7fffffffb148) at ../../src/eval.c:2400 #22 0x000000000063bbb2 in run_hook_with_args (nargs=1, args=0x7fffffffb148, funcall=0x63b687 ) at ../../src/eval.c:2577 #23 0x000000000063b730 in Frun_hook_with_args (nargs=1, args=0x7fffffffb148) at ../../src/eval.c:2442 #24 0x000000000063bc43 in run_hook (hook=XIL(0x9f47b0)) at ../../src/eval.c:2590 #25 0x000000000063b6eb in Frun_hooks (nargs=1, args=0x7fffffffb298) at ../../src/eval.c:2424 #26 0x000000000063c7d3 in funcall_subr (subr=0xd77a60 , numargs=1, args=0x7fffffffb298) at ../../src/eval.c:2824 #27 0x000000000063c419 in Ffuncall (nargs=2, args=0x7fffffffb290) at ../../src/eval.c:2769 #28 0x000000000068d994 in exec_byte_code (bytestr=XIL(0x9ed45c), vector=XIL(0x9ed47d), maxdepth=make_number(5), args_template=make_number(128), nargs=0, args=0x7fffffffb790) at ../../src/bytecode.c:629 #29 0x000000000063d04a in funcall_lambda (fun=XIL(0x9ed42d), nargs=0, arg_vector=0x7fffffffb790) at ../../src/eval.c:2970 #30 0x000000000063c45d in Ffuncall (nargs=1, args=0x7fffffffb788) at ../../src/eval.c:2771 #31 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xa2bbac), vector=XIL(0xa9050d), maxdepth=make_number(1), args_template=make_number(0), nargs=0, args=0x7fffffffbbb0) at ../../src/bytecode.c:629 #32 0x000000000063d04a in funcall_lambda (fun=XIL(0xa904cd), nargs=0, arg_vector=0x7fffffffbbb0) at ../../src/eval.c:2970 #33 0x000000000063cc84 in apply_lambda (fun=XIL(0xa904cd), args=XIL(0), count=39) at ../../src/eval.c:2906 #34 0x000000000063ae85 in eval_sub (form=XIL(0x1756233)) at ../../src/eval.c:2279 #35 0x00000000006721fc in readevalloop_eager_expand_eval (val=XIL(0x1756233), macroexpand=XIL(0xd9ac0)) at ../../src/lread.c:1850 #36 0x0000000000672b7d in readevalloop (readcharfun=XIL(0x2e50995), infile0=0x0, sourcename=XIL(0x2eb84e4), printflag=false, unibyte=XIL(0), readfun=XIL(0), start=XIL(0), end=XIL(0)) at ../../src/lread.c:2036 #37 0x0000000000672f97 in Feval_buffer (buffer=XIL(0x2e50995), printflag=XIL(0), filename=XIL(0x3069604), unibyte=XIL(0), do_allow_print=XIL(0xc090)) at ../../src/lread.c:2103 #38 0x000000000063c9a0 in funcall_subr (subr=0xd7a4a0 , numargs=5, args=0x7fffffffbfd0) at ../../src/eval.c:2856 #39 0x000000000063c419 in Ffuncall (nargs=6, args=0x7fffffffbfc8) at ../../src/eval.c:2769 #40 0x000000000068d994 in exec_byte_code (bytestr=XIL(0x9fb57c), vector=XIL(0x9fb59d), maxdepth=make_number(6), args_template=XIL(0), nargs=0, args=0x0) at ../../src/bytecode.c:629 #41 0x000000000063d500 in funcall_lambda (fun=XIL(0x9fb4fd), nargs=4, arg_vector=0x9fb59d ) at ../../src/eval.c:3052 #42 0x000000000063c45d in Ffuncall (nargs=5, args=0x7fffffffc550) at ../../src/eval.c:2771 #43 0x000000000063be16 in call4 (fn=XIL(0x43abe0), arg1=XIL(0x3069604), arg2=XIL(0x3069604), arg3=XIL(0), arg4=XIL(0xc090)) at ../../src/eval.c:2645 #44 0x0000000000670c38 in Fload (file=XIL(0x3068ff4), noerror=XIL(0), nomessage=XIL(0xc090), nosuffix=XIL(0), must_suffix=XIL(0)) at ../../src/lread.c:1365 #45 0x000000000063c9a0 in funcall_subr (subr=0xd7a420 , numargs=3, args=0x7fffffffc938) at ../../src/eval.c:2856 #46 0x000000000063c419 in Ffuncall (nargs=4, args=0x7fffffffc930) at ../../src/eval.c:2769 #47 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xadcc2c), vector=XIL(0xadcc4d), maxdepth=make_number(23), args_template=make_number(257), nargs=1, args=0x7fffffffd298) at ../../src/bytecode.c:629 #48 0x000000000063d04a in funcall_lambda (fun=XIL(0xadcbfd), nargs=1, arg_vector=0x7fffffffd290) at ../../src/eval.c:2970 #49 0x000000000063c45d in Ffuncall (nargs=2, args=0x7fffffffd288) at ../../src/eval.c:2771 #50 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xad7424), vector=XIL(0xad7445), maxdepth=make_number(21), args_template=make_number(0), nargs=0, args=0x7fffffffdea8) at ../../src/bytecode.c:629 #51 0x000000000063d04a in funcall_lambda (fun=XIL(0xad73f5), nargs=0, arg_vector=0x7fffffffdea8) at ../../src/eval.c:2970 #52 0x000000000063c45d in Ffuncall (nargs=1, args=0x7fffffffdea0) at ../../src/eval.c:2771 #53 0x000000000068d994 in exec_byte_code (bytestr=XIL(0xad6614), vector=XIL(0xad6635), maxdepth=make_number(12), args_template=make_number(0), nargs=0, args=0x7fffffffe4d0) at ../../src/bytecode.c:629 #54 0x000000000063d04a in funcall_lambda (fun=XIL(0xad65e5), nargs=0, arg_vector=0x7fffffffe4d0) at ../../src/eval.c:2970 #55 0x000000000063cc84 in apply_lambda (fun=XIL(0xad65e5), args=XIL(0), count=4) at ../../src/eval.c:2906 #56 0x000000000063ae85 in eval_sub (form=XIL(0x149a8e3)) at ../../src/eval.c:2279 #57 0x000000000063a1fa in Feval (form=XIL(0x149a8e3), lexical=XIL(0)) at ../../src/eval.c:2054 #58 0x000000000058156a in top_level_2 () at ../../src/keyboard.c:1119 #59 0x0000000000638529 in internal_condition_case (bfun=0x581547 , handlers=XIL(0x5250), hfun=0x580f4c ) at ../../src/eval.c:1332 #60 0x00000000005815af in top_level_1 (ignore=XIL(0)) at ../../src/keyboard.c:1127 #61 0x0000000000637a32 in internal_catch (tag=XIL(0xc6f0), func=0x58156c , arg=XIL(0)) at ../../src/eval.c:1097 #62 0x0000000000581499 in command_loop () at ../../src/keyboard.c:1088 #63 0x0000000000580a36 in recursive_edit_1 () at ../../src/keyboard.c:695 #64 0x0000000000580c2b in Frecursive_edit () at ../../src/keyboard.c:766 #65 0x000000000057e7c6 in main (argc=4, argv=0x7fffffffea38) at ../../src/emacs.c:1713 Lisp Backtrace: "make-local-variable" (0xffff9880) "font-lock-default-function" (0xffff9d80) "font-lock-mode" (0xffffa2a0) "turn-on-font-lock" (0xffffa730) "turn-on-font-lock-if-desired" (0xffffabe0) "global-font-lock-mode-enable-in-buffers" (0xffffb150) "run-hooks" (0xffffb298) "run-mode-hooks" (0xffffb790) "fundamental-mode" (0xffffbbb0) "eval-buffer" (0xffffbfd0) "load-with-code-conversion" (0xffffc558) "load" (0xffffc938) "command-line-1" (0xffffd290) "command-line" (0xffffdea8) "normal-top-level" (0xffffe4d0) --=-=-= Content-Type: text/plain In GNU Emacs 26.0.91 (build 54, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2018-03-18 built on zebian Repository revision: 10bd3b3af8acfc226acadc654298865cffc19cc9 Configured using: 'configure --cache-file=../../debug-config.cache 'CC=ccache gcc' 'CFLAGS=-O0 -g3 -march=native' --enable-checking=yes --enable-check-lisp-object-type --with-x-toolkit=lucid --with-toolkit-scroll-bars --with-gif=no --with-jpeg=no' --=-=-=--