From: Eli Zaretskii <eliz@gnu.org>
To: Gemini Lasswell <gazally@runbox.com>
Cc: 32537@debbugs.gnu.org
Subject: bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file
Date: Fri, 31 Aug 2018 09:40:57 +0300 [thread overview]
Message-ID: <83h8jb11ja.fsf@gnu.org> (raw)
In-Reply-To: <87sh2vwuyw.fsf@runbox.com> (message from Gemini Lasswell on Thu, 30 Aug 2018 11:49:27 -0700)
> From: Gemini Lasswell <gazally@runbox.com>
> Cc: 32537@debbugs.gnu.org
> Date: Thu, 30 Aug 2018 11:49:27 -0700
>
> 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
The "backtrace" command accepts an argument, the number of frames to
show; so you could use "backtrace 10" to show just the innermost 10
frames, and thus make the backtrace be faster.
> 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
This thread, the main thread, is waiting for the global lock to become
free.
> 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
This thread is restoring point as part as returning from
save-excursion. But I still am not sure whether this is our villain.
Does buffer position 146 sound correct wrt what you see in *scratch*,
i.e. is it the position where point jumps? Also, please add to the
breakpoint commands the command to display the current buffer:
pp current_buffer->name_
Thanks.
next prev parent reply other threads:[~2018-08-31 6:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-26 17:39 bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file Gemini Lasswell
2018-08-26 18:32 ` Eli Zaretskii
2018-08-28 19:48 ` Gemini Lasswell
2018-08-29 14:49 ` Eli Zaretskii
2018-08-29 17:55 ` Gemini Lasswell
2018-08-29 18:14 ` Eli Zaretskii
2018-08-30 18:49 ` Gemini Lasswell
2018-08-31 6:40 ` Eli Zaretskii [this message]
2018-08-31 16:52 ` Gemini Lasswell
2018-09-01 13:35 ` Eli Zaretskii
2018-09-01 15:27 ` Michael Albinus
2018-09-02 0:24 ` Gemini Lasswell
2018-09-02 2:35 ` Eli Zaretskii
2018-09-02 8:33 ` Michael Albinus
2018-09-02 16:09 ` Gemini Lasswell
2018-09-02 17:40 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83h8jb11ja.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=32537@debbugs.gnu.org \
--cc=gazally@runbox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.