Subject: Re: bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file

From: Gemini Lasswell <[email-masked]>
Date: Thu, 30 Aug 2018 11:49:27 -0700

Eli Zaretskii <[email-masked]> writes:

> So given this confusion over which thread is what, I think we need to
> see the C-level backtrace of all the Lisp threads, to see which one(s)
> of them really called temp_set_point_both.

Printing the C-level backtraces on every breakpoint makes Emacs under
gdb too slow to let me reproduce the bug, so I came up with this
compromise:

break set_point_both if current_thread->m_current_buffer == $1
commands
p current_thread
xbacktrace
if current_thread != &main_thread
  thread apply 1 5-15 backtrace
end
cont
end
break temp_set_point_both if buffer == $1
commands
p current_thread
xbacktrace
if current_thread != &main_thread
  thread apply 1 5-15 backtrace
end
cont
end

I also commented out hookpost-backtrace in .gdbinit to make the
'thread apply' work.

Here's an excerpt from the log of the resulting gdb session, showing the
set_point_both and temp_set_point_both calls that move point backwards,
with the C-level backtraces of the Lisp threads:

Thread 1 "find-file /scp:" hit Breakpoint 4, set_point_both (charpos=152,
    bytepos=152) at intervals.c:1826
1826	{
$37 = (struct thread_state *) 0xd45600 <main_thread>
"electric-indent-post-self-insert-function" (0xe407de80)
"self-insert-command" (0xe407e080)
"funcall-interactively" (0xe407e078)
"call-interactively" (0xe407e350)
"command-execute" (0xe407e668)
[Switching to Thread 0x7f8722610700 (LWP 27981)]

Thread 5 "emacs" hit Breakpoint 4, set_point_both (charpos=146, bytepos=146)
    at intervals.c:1826
1826	{
$38 = (struct thread_state *) 0x3fd5080
"tramp-sh-handle-file-attributes" (0x2260a0b8)
"apply" (0x2260a1f0)
"tramp-sh-file-name-handler" (0x2260a498)
"apply" (0x2260a648)
"tramp-file-name-handler" (0x2260b688)
"file-attributes" (0x2260b7e0)
"tramp-check-cached-permissions" (0x2260bbb0)
"tramp-sh-handle-file-readable-p" (0x2260bff8)
"apply" (0x2260bff0)
"tramp-sh-file-name-handler" (0x2260c420)
"apply" (0x2260c418)
"tramp-file-name-handler" (0x2260d458)
"file-readable-p" (0x2260d578)
"tramp-handle-file-accessible-directory-p" (0x2260d8f8)
"apply" (0x2260d8f0)
"tramp-sh-file-name-handler" (0x2260dd20)
"apply" (0x2260dd18)
"tramp-file-name-handler" (0x2260ed58)
"file-accessible-directory-p" (0x2260eec8)
"file-expand-wildcards" (0x2260f218)
"find-file-noselect" (0x2260f7e0)
0x3fd4350 PVEC_COMPILED

Thread 1 (Thread 0x7f873eb61b40 (LWP 27888)):
#0  0x00007f87384808cc in __lll_lock_wait () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libpthread.so.0
#1  0x00007f8738479a45 in pthread_mutex_lock () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libpthread.so.0
#2  0x0000000000648df9 in sys_mutex_lock (mutex=mutex@entry=0xd455c0 <global_lock>) at systhread.c:137
#3  0x0000000000647582 in acquire_global_lock (self=0xd45600 <main_thread>) at thread.c:100
#4  really_call_select (arg=arg@entry=0x7ffce407d420) at thread.c:582
#5  0x00000000005aa698 in flush_stack_call_func (func=func@entry=0x6474f0 <really_call_select>, arg=arg@entry=0x7ffce407d420) at alloc.c:5103
#6  0x00000000006489f9 in thread_select (func=<optimized out>, max_fds=max_fds@entry=11, rfds=rfds@entry=0x7ffce407d500, wfds=wfds@entry=0x7ffce407d580, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffce407db60, sigmask=0x0) at thread.c:602
#7  0x000000000066ad16 in xg_select (fds_lim=11, rfds=rfds@entry=0x7ffce407dc60, wfds=wfds@entry=0x7ffce407dce0, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffce407db60, sigmask=sigmask@entry=0x0) at xgselect.c:117
#8  0x0000000000622b61 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=..., wait_for_cell@entry=XIL(0), wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5384
#9  0x000000000042931b in sit_for (timeout=..., reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:5801
#10 0x000000000054c241 in read_char (commandflag=commandflag@entry=1, map=..., map@entry=XIL(0x413a593), prev_event=..., used_mouse_menu=used_mouse_menu@entry=0x7ffce407e5bb, end_time=end_time@entry=0x0) at keyboard.c:2688
#11 0x000000000054de99 in read_key_sequence (keybuf=keybuf@entry=0x7ffce407e700, prompt=..., prompt@entry=XIL(0), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at keyboard.c:9108
#12 0x000000000054fc0e in command_loop_1 () at keyboard.c:1338
#13 0x00000000005cc4df in internal_condition_case (bfun=bfun@entry=0x54f9b0 <command_loop_1>, handlers=..., handlers@entry=XIL(0x5340), hfun=hfun@entry=0x542070 <cmd_error>) at eval.c:1349
#14 0x000000000053de38 in command_loop_2 (ignore=..., ignore@entry=XIL(0)) at keyboard.c:1079
#15 0x00000000005cc403 in internal_catch (tag=..., func=func@entry=0x53de10 <command_loop_2>, arg=..., arg@entry=XIL(0)) at eval.c:1114
#16 0x000000000053e06b in command_loop () at keyboard.c:1058
#17 0x0000000000541b74 in recursive_edit_1 () at keyboard.c:703
#18 0x0000000000541f3e in Frecursive_edit () at keyboard.c:774
#19 0x000000000041bfb2 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:1756

Thread 5 (Thread 0x7f8722610700 (LWP 27981)):
#0  set_point_both (charpos=146, bytepos=146) at intervals.c:1826
#1  0x0000000000635f08 in set_point_from_marker (marker=..., marker@entry=XIL(0x3e59fc5)) at intervals.c:1771
#2  0x00000000005bbf32 in Fgoto_char (position=..., position@entry=XIL(0x3e59fc5)) at editfns.c:423
#3  0x00000000005c6920 in save_excursion_restore (marker=XIL(0x3e59fc5), window=...) at editfns.c:1023
#4  0x00000000005cce89 in unbind_to (count=<optimized out>, value=..., value@entry=XIL(0)) at eval.c:3593
#5  0x000000000061510f in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260a0b8) at bytecode.c:652
#6  0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f8722609d30), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260a0b8) at eval.c:3023
#7  0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=0x7f872260a0b0) at eval.c:2836
#8  0x00000000005cd755 in Fapply (nargs=2, args=<optimized out>) at eval.c:2442
#9  0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260a1e8) at eval.c:2822
#10 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=3, args=<optimized out>, args@entry=0x7f872260a498) at bytecode.c:632
#11 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260a218), nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x7f872260a498) at eval.c:3023
#12 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=4, args=0x7f872260a490) at eval.c:2836
#13 0x00000000005cd755 in Fapply (nargs=3, args=<optimized out>) at eval.c:2442
#14 0x00000000005cd4af in Ffuncall (nargs=4, args=args@entry=0x7f872260a640) at eval.c:2822
#15 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=3, args=<optimized out>, args@entry=0x7f872260b688) at bytecode.c:632
#16 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260a6b8), nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x7f872260b688) at eval.c:3023
#17 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x7f872260b680) at eval.c:2836
#18 0x00000000005d1864 in call3 (fn=..., arg1=..., arg2=..., arg3=...) at eval.c:2689
#19 0x00000000005cf2f3 in funcall_subr (subr=0x900720 <Sfile_attributes>, numargs=numargs@entry=2, args=args@entry=0x7f872260b7e0) at eval.c:2899
#20 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260b7d8) at eval.c:2822
#21 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260bbb0) at bytecode.c:632
#22 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260b818), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260bbb0) at eval.c:3023
#23 0x00000000005cd41d in Ffuncall (nargs=3, args=args@entry=0x7f872260bba8) at eval.c:2836
#24 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7f872260bff8) at bytecode.c:632
#25 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260bbd0), nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7f872260bff8) at eval.c:3023
#26 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7f872260bff0) at eval.c:2836
#27 0x00000000005cd809 in Fapply (nargs=2, args=0x7f872260bff0) at eval.c:2399
#28 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260bfe8) at eval.c:2822
#29 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260c420) at bytecode.c:632
#30 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260c018), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260c420) at eval.c:3023
#31 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260c418) at eval.c:2836
#32 0x00000000005cd809 in Fapply (nargs=3, args=0x7f872260c418) at eval.c:2399
#33 0x00000000005cd4af in Ffuncall (nargs=4, args=args@entry=0x7f872260c410) at eval.c:2822
#34 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260d458) at bytecode.c:632
#35 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260c488), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260d458) at eval.c:3023
#36 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260d450) at eval.c:2836
#37 0x00000000005cd5cf in call2 (fn=..., arg1=..., arg2=...) at eval.c:2681
#38 0x00000000005cf2fe in funcall_subr (subr=0x9000a0 <Sfile_readable_p>, numargs=numargs@entry=1, args=args@entry=0x7f872260d578) at eval.c:2897
#39 0x00000000005cd4af in Ffuncall (nargs=2, args=args@entry=0x7f872260d570) at eval.c:2822
#40 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7f872260d8f8) at bytecode.c:632
#41 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260d580), nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7f872260d8f8) at eval.c:3023
#42 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7f872260d8f0) at eval.c:2836
#43 0x00000000005cd809 in Fapply (nargs=2, args=0x7f872260d8f0) at eval.c:2399
#44 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260d8e8) at eval.c:2822
#45 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260dd20) at bytecode.c:632
#46 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260d918), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260dd20) at eval.c:3023
#47 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260dd18) at eval.c:2836
#48 0x00000000005cd809 in Fapply (nargs=3, args=0x7f872260dd18) at eval.c:2399
#49 0x00000000005cd4af in Ffuncall (nargs=4, args=args@entry=0x7f872260dd10) at eval.c:2822
#50 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260ed58) at bytecode.c:632
#51 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260dd88), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260ed58) at eval.c:3023
#52 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260ed50) at eval.c:2836
#53 0x00000000005cd5cf in call2 (fn=..., arg1=..., arg1@entry=XIL(0x5940), arg2=..., arg2@entry=XIL(0x7f8718024484)) at eval.c:2681
#54 0x0000000000582b87 in Ffile_accessible_directory_p (filename=...) at fileio.c:2825
#55 0x00000000005cf2fe in funcall_subr (subr=0x8fff60 <Sfile_accessible_directory_p>, numargs=numargs@entry=1, args=args@entry=0x7f872260eec8) at eval.c:2897
#56 0x00000000005cd4af in Ffuncall (nargs=2, args=args@entry=0x7f872260eec0) at eval.c:2822
#57 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260f218) at bytecode.c:632
#58 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260ef08), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260f218) at eval.c:3023
#59 0x00000000005cd41d in Ffuncall (nargs=3, args=args@entry=0x7f872260f210) at eval.c:2836
#60 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=5, args=<optimized out>, args@entry=0x7f872260f7e0) at bytecode.c:632
#61 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260f278), nargs=nargs@entry=5, arg_vector=arg_vector@entry=0x7f872260f7e0) at eval.c:3023
#62 0x00000000005cd41d in Ffuncall (nargs=6, args=args@entry=0x7f872260f7d8) at eval.c:2836
#63 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=0, args=<optimized out>, args@entry=0x3fd50a8) at bytecode.c:632
#64 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260f808), nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x3fd50a8) at eval.c:3023
#65 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x3fd50a0) at eval.c:2836
#66 0x00000000006473db in invoke_thread_function () at thread.c:684
#67 0x00000000005cc4df in internal_condition_case (bfun=bfun@entry=0x6473a0 <invoke_thread_function>, handlers=..., handlers@entry=XIL(0xc330), hfun=hfun@entry=0x6472c0 <record_thread_error>) at eval.c:1349
#68 0x0000000000647e01 in run_thread (state=0x3fd5080) at thread.c:723
#69 0x00007f87384772a7 in start_thread () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libpthread.so.0
#70 0x00007f8737b1457f in clone () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libc.so.6
warning: Unknown thread 6
warning: Unknown thread 7
warning: Unknown thread 8
warning: Unknown thread 9
warning: Unknown thread 10
warning: Unknown thread 11
warning: Unknown thread 12
warning: Unknown thread 13
warning: Unknown thread 14
warning: Unknown thread 15

Thread 5 "emacs" hit Breakpoint 5, temp_set_point_both (
    buffer=0xdb5800 <bss_sbrk_buffer+458720>, charpos=charpos@entry=146,
    bytepos=bytepos@entry=146) at intervals.c:1729
1729	{
$39 = (struct thread_state *) 0x3fd5080
"tramp-sh-handle-file-attributes" (0x2260a0b8)
"apply" (0x2260a1f0)
"tramp-sh-file-name-handler" (0x2260a498)
"apply" (0x2260a648)
"tramp-file-name-handler" (0x2260b688)
"file-attributes" (0x2260b7e0)
"tramp-check-cached-permissions" (0x2260bbb0)
"tramp-sh-handle-file-readable-p" (0x2260bff8)
"apply" (0x2260bff0)
"tramp-sh-file-name-handler" (0x2260c420)
"apply" (0x2260c418)
"tramp-file-name-handler" (0x2260d458)
"file-readable-p" (0x2260d578)
"tramp-handle-file-accessible-directory-p" (0x2260d8f8)
"apply" (0x2260d8f0)
"tramp-sh-file-name-handler" (0x2260dd20)
"apply" (0x2260dd18)
"tramp-file-name-handler" (0x2260ed58)
"file-accessible-directory-p" (0x2260eec8)
"file-expand-wildcards" (0x2260f218)
"find-file-noselect" (0x2260f7e0)
0x3fd4350 PVEC_COMPILED

Thread 1 (Thread 0x7f873eb61b40 (LWP 27888)):
#0  0x00007f87384808cc in __lll_lock_wait () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libpthread.so.0
#1  0x00007f8738479a45 in pthread_mutex_lock () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libpthread.so.0
#2  0x0000000000648df9 in sys_mutex_lock (mutex=mutex@entry=0xd455c0 <global_lock>) at systhread.c:137
#3  0x0000000000647582 in acquire_global_lock (self=0xd45600 <main_thread>) at thread.c:100
#4  really_call_select (arg=arg@entry=0x7ffce407d420) at thread.c:582
#5  0x00000000005aa698 in flush_stack_call_func (func=func@entry=0x6474f0 <really_call_select>, arg=arg@entry=0x7ffce407d420) at alloc.c:5103
#6  0x00000000006489f9 in thread_select (func=<optimized out>, max_fds=max_fds@entry=11, rfds=rfds@entry=0x7ffce407d500, wfds=wfds@entry=0x7ffce407d580, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffce407db60, sigmask=0x0) at thread.c:602
#7  0x000000000066ad16 in xg_select (fds_lim=11, rfds=rfds@entry=0x7ffce407dc60, wfds=wfds@entry=0x7ffce407dce0, efds=efds@entry=0x0, timeout=timeout@entry=0x7ffce407db60, sigmask=sigmask@entry=0x0) at xgselect.c:117
#8  0x0000000000622b61 in wait_reading_process_output (time_limit=time_limit@entry=30, nsecs=nsecs@entry=0, read_kbd=read_kbd@entry=-1, do_display=do_display@entry=true, wait_for_cell=..., wait_for_cell@entry=XIL(0), wait_proc=wait_proc@entry=0x0, just_wait_proc=0) at process.c:5384
#9  0x000000000042931b in sit_for (timeout=..., reading=reading@entry=true, display_option=display_option@entry=1) at dispnew.c:5801
#10 0x000000000054c241 in read_char (commandflag=commandflag@entry=1, map=..., map@entry=XIL(0x413a593), prev_event=..., used_mouse_menu=used_mouse_menu@entry=0x7ffce407e5bb, end_time=end_time@entry=0x0) at keyboard.c:2688
#11 0x000000000054de99 in read_key_sequence (keybuf=keybuf@entry=0x7ffce407e700, prompt=..., prompt@entry=XIL(0), dont_downcase_last=dont_downcase_last@entry=false, can_return_switch_frame=can_return_switch_frame@entry=true, fix_current_buffer=fix_current_buffer@entry=true, prevent_redisplay=prevent_redisplay@entry=false) at keyboard.c:9108
#12 0x000000000054fc0e in command_loop_1 () at keyboard.c:1338
#13 0x00000000005cc4df in internal_condition_case (bfun=bfun@entry=0x54f9b0 <command_loop_1>, handlers=..., handlers@entry=XIL(0x5340), hfun=hfun@entry=0x542070 <cmd_error>) at eval.c:1349
#14 0x000000000053de38 in command_loop_2 (ignore=..., ignore@entry=XIL(0)) at keyboard.c:1079
#15 0x00000000005cc403 in internal_catch (tag=..., func=func@entry=0x53de10 <command_loop_2>, arg=..., arg@entry=XIL(0)) at eval.c:1114
#16 0x000000000053e06b in command_loop () at keyboard.c:1058
#17 0x0000000000541b74 in recursive_edit_1 () at keyboard.c:703
#18 0x0000000000541f3e in Frecursive_edit () at keyboard.c:774
#19 0x000000000041bfb2 in main (argc=<optimized out>, argv=<optimized out>) at emacs.c:1756

Thread 5 (Thread 0x7f8722610700 (LWP 27981)):
#0  temp_set_point_both (buffer=0xdb5800 <bss_sbrk_buffer+458720>, charpos=charpos@entry=146, bytepos=bytepos@entry=146) at intervals.c:1729
#1  0x00000000006356ed in set_point_both (charpos=<optimized out>, bytepos=146) at intervals.c:1997
#2  0x0000000000635f08 in set_point_from_marker (marker=..., marker@entry=XIL(0x3e59fc5)) at intervals.c:1771
#3  0x00000000005bbf32 in Fgoto_char (position=..., position@entry=XIL(0x3e59fc5)) at editfns.c:423
#4  0x00000000005c6920 in save_excursion_restore (marker=XIL(0x3e59fc5), window=...) at editfns.c:1023
#5  0x00000000005cce89 in unbind_to (count=<optimized out>, value=..., value@entry=XIL(0)) at eval.c:3593
#6  0x000000000061510f in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260a0b8) at bytecode.c:652
#7  0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f8722609d30), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260a0b8) at eval.c:3023
#8  0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=0x7f872260a0b0) at eval.c:2836
#9  0x00000000005cd755 in Fapply (nargs=2, args=<optimized out>) at eval.c:2442
#10 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260a1e8) at eval.c:2822
#11 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=3, args=<optimized out>, args@entry=0x7f872260a498) at bytecode.c:632
#12 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260a218), nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x7f872260a498) at eval.c:3023
#13 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=4, args=0x7f872260a490) at eval.c:2836
#14 0x00000000005cd755 in Fapply (nargs=3, args=<optimized out>) at eval.c:2442
#15 0x00000000005cd4af in Ffuncall (nargs=4, args=args@entry=0x7f872260a640) at eval.c:2822
#16 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=3, args=<optimized out>, args@entry=0x7f872260b688) at bytecode.c:632
#17 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260a6b8), nargs=nargs@entry=3, arg_vector=arg_vector@entry=0x7f872260b688) at eval.c:3023
#18 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=4, args=args@entry=0x7f872260b680) at eval.c:2836
#19 0x00000000005d1864 in call3 (fn=..., arg1=..., arg2=..., arg3=...) at eval.c:2689
#20 0x00000000005cf2f3 in funcall_subr (subr=0x900720 <Sfile_attributes>, numargs=numargs@entry=2, args=args@entry=0x7f872260b7e0) at eval.c:2899
#21 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260b7d8) at eval.c:2822
#22 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260bbb0) at bytecode.c:632
#23 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260b818), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260bbb0) at eval.c:3023
#24 0x00000000005cd41d in Ffuncall (nargs=3, args=args@entry=0x7f872260bba8) at eval.c:2836
#25 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7f872260bff8) at bytecode.c:632
#26 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260bbd0), nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7f872260bff8) at eval.c:3023
#27 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7f872260bff0) at eval.c:2836
#28 0x00000000005cd809 in Fapply (nargs=2, args=0x7f872260bff0) at eval.c:2399
#29 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260bfe8) at eval.c:2822
#30 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260c420) at bytecode.c:632
#31 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260c018), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260c420) at eval.c:3023
#32 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260c418) at eval.c:2836
#33 0x00000000005cd809 in Fapply (nargs=3, args=0x7f872260c418) at eval.c:2399
#34 0x00000000005cd4af in Ffuncall (nargs=4, args=args@entry=0x7f872260c410) at eval.c:2822
#35 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260d458) at bytecode.c:632
#36 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260c488), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260d458) at eval.c:3023
#37 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260d450) at eval.c:2836
#38 0x00000000005cd5cf in call2 (fn=..., arg1=..., arg2=...) at eval.c:2681
#39 0x00000000005cf2fe in funcall_subr (subr=0x9000a0 <Sfile_readable_p>, numargs=numargs@entry=1, args=args@entry=0x7f872260d578) at eval.c:2897
#40 0x00000000005cd4af in Ffuncall (nargs=2, args=args@entry=0x7f872260d570) at eval.c:2822
#41 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=1, args=<optimized out>, args@entry=0x7f872260d8f8) at bytecode.c:632
#42 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260d580), nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7f872260d8f8) at eval.c:3023
#43 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7f872260d8f0) at eval.c:2836
#44 0x00000000005cd809 in Fapply (nargs=2, args=0x7f872260d8f0) at eval.c:2399
#45 0x00000000005cd4af in Ffuncall (nargs=3, args=args@entry=0x7f872260d8e8) at eval.c:2822
#46 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260dd20) at bytecode.c:632
#47 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260d918), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260dd20) at eval.c:3023
#48 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260dd18) at eval.c:2836
#49 0x00000000005cd809 in Fapply (nargs=3, args=0x7f872260dd18) at eval.c:2399
#50 0x00000000005cd4af in Ffuncall (nargs=4, args=args@entry=0x7f872260dd10) at eval.c:2822
#51 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260ed58) at bytecode.c:632
#52 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260dd88), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260ed58) at eval.c:3023
#53 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=3, args=args@entry=0x7f872260ed50) at eval.c:2836
#54 0x00000000005cd5cf in call2 (fn=..., arg1=..., arg1@entry=XIL(0x5940), arg2=..., arg2@entry=XIL(0x7f8718024484)) at eval.c:2681
#55 0x0000000000582b87 in Ffile_accessible_directory_p (filename=...) at fileio.c:2825
#56 0x00000000005cf2fe in funcall_subr (subr=0x8fff60 <Sfile_accessible_directory_p>, numargs=numargs@entry=1, args=args@entry=0x7f872260eec8) at eval.c:2897
#57 0x00000000005cd4af in Ffuncall (nargs=2, args=args@entry=0x7f872260eec0) at eval.c:2822
#58 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=2, args=<optimized out>, args@entry=0x7f872260f218) at bytecode.c:632
#59 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260ef08), nargs=nargs@entry=2, arg_vector=arg_vector@entry=0x7f872260f218) at eval.c:3023
#60 0x00000000005cd41d in Ffuncall (nargs=3, args=args@entry=0x7f872260f210) at eval.c:2836
#61 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=5, args=<optimized out>, args@entry=0x7f872260f7e0) at bytecode.c:632
#62 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260f278), nargs=nargs@entry=5, arg_vector=arg_vector@entry=0x7f872260f7e0) at eval.c:3023
#63 0x00000000005cd41d in Ffuncall (nargs=6, args=args@entry=0x7f872260f7d8) at eval.c:2836
#64 0x0000000000615150 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=nargs@entry=0, args=<optimized out>, args@entry=0x3fd50a8) at bytecode.c:632
#65 0x00000000005d09fc in funcall_lambda (fun=XIL(0x7f872260f808), nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x3fd50a8) at eval.c:3023
#66 0x00000000005cd41d in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x3fd50a0) at eval.c:2836
#67 0x00000000006473db in invoke_thread_function () at thread.c:684
#68 0x00000000005cc4df in internal_condition_case (bfun=bfun@entry=0x6473a0 <invoke_thread_function>, handlers=..., handlers@entry=XIL(0xc330), hfun=hfun@entry=0x6472c0 <record_thread_error>) at eval.c:1349
#69 0x0000000000647e01 in run_thread (state=0x3fd5080) at thread.c:723
#70 0x00007f87384772a7 in start_thread () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libpthread.so.0
#71 0x00007f8737b1457f in clone () from /nix/store/hwwqshlmazzjzj7yhrkyjydxamvvkfd3-glibc-2.26-131/lib/libc.so.6
warning: Unknown thread 6
warning: Unknown thread 7
warning: Unknown thread 8
warning: Unknown thread 9
warning: Unknown thread 10
warning: Unknown thread 11
warning: Unknown thread 12
warning: Unknown thread 13
warning: Unknown thread 14
warning: Unknown thread 15
[Switching to Thread 0x7f873eb61b40 (LWP 27888)]

Thread 1 "find-file /scp:" hit Breakpoint 4, set_point_both (charpos=147,
    bytepos=147) at intervals.c:1826
1826	{
$40 = (struct thread_state *) 0xd45600 <main_thread>
"electric-indent-post-self-insert-function" (0xe407de80)
"self-insert-command" (0xe407e080)
"funcall-interactively" (0xe407e078)
"call-interactively" (0xe407e350)
"command-execute" (0xe407e668)