unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#30846: 26.0.91; debug-watch of kill-all-local-variables triggers 'assertion failed: found == !EQ (blv->defcell, blv->valcell)'
@ 2018-03-18 13:10 Noam Postavsky
  2018-03-18 14:05 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Noam Postavsky @ 2018-03-18 13:10 UTC (permalink / raw)
  To: 30846

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

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.


[-- Attachment #2: gdb backtrace --]
[-- Type: text/plain, Size: 8861 bytes --]

#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 <Smake_local_variable>, 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 <pure+1167285>) 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 <pure+1166693>) 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 <pure+1167461>) 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 <pure+1168117>) 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 <pure+1168917>) 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 <funcall_nil>) 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 <Srun_hooks>, 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 <Seval_buffer>, 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 <pure+177501>) 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 <Sload>, 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 <top_level_2>, handlers=XIL(0x5250), 
    hfun=0x580f4c <cmd_error>) 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 <top_level_1>, 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)

[-- Attachment #3: Type: text/plain, Size: 431 bytes --]


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'




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

end of thread, other threads:[~2018-03-23 15:29 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-18 13:10 bug#30846: 26.0.91; debug-watch of kill-all-local-variables triggers 'assertion failed: found == !EQ (blv->defcell, blv->valcell)' Noam Postavsky
2018-03-18 14:05 ` Eli Zaretskii
2018-03-18 14:07 ` Eli Zaretskii
2018-03-18 14:20   ` Noam Postavsky
2018-03-18 14:38     ` Eli Zaretskii
2018-03-21  0:48       ` Noam Postavsky
2018-03-21 13:04         ` Stefan Monnier
2018-03-22 15:45 ` Stefan Monnier
2018-03-22 15:53   ` Eli Zaretskii
2018-03-23  0:20   ` Noam Postavsky
2018-03-23  1:22     ` Stefan Monnier
2018-03-23 12:25       ` Noam Postavsky
2018-03-23  8:12     ` Eli Zaretskii
2018-03-23 12:57       ` Stefan Monnier
2018-03-23 14:23         ` Eli Zaretskii
2018-03-23 14:42           ` Stefan Monnier
2018-03-23 15:29   ` Stefan Monnier

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).