From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32537: 26.1.50; Tramp: Cursor jumps when typing during asynchronous find-file Date: Fri, 31 Aug 2018 09:40:57 +0300 Message-ID: <83h8jb11ja.fsf@gnu.org> References: <875zzxowlw.fsf@runbox.com> <83mut9568l.fsf@gnu.org> <87r2ii1ddf.fsf@runbox.com> <83r2ih2poi.fsf@gnu.org> <87wos9vyzs.fsf@runbox.com> <83d0u12g7f.fsf@gnu.org> <87sh2vwuyw.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1535697643 12843 195.159.176.226 (31 Aug 2018 06:40:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2018 06:40:43 +0000 (UTC) Cc: 32537@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 08:40:39 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 1fvd6l-0003Dz-4F for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Aug 2018 08:40:39 +0200 Original-Received: from localhost ([::1]:52148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvd8p-0002fu-BB for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Aug 2018 02:42:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvd89-0001db-HJ for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 02:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvd86-0006bd-BF for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 02:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34668) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fvd86-0006bV-59 for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 02:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fvd85-0006Hq-TJ for bug-gnu-emacs@gnu.org; Fri, 31 Aug 2018 02:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 31 Aug 2018 06:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32537 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32537-submit@debbugs.gnu.org id=B32537.153569768924124 (code B ref 32537); Fri, 31 Aug 2018 06:42:01 +0000 Original-Received: (at 32537) by debbugs.gnu.org; 31 Aug 2018 06:41:29 +0000 Original-Received: from localhost ([127.0.0.1]:39686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvd7Y-0006H2-Uq for submit@debbugs.gnu.org; Fri, 31 Aug 2018 02:41:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fvd7V-0006Gl-R6 for 32537@debbugs.gnu.org; Fri, 31 Aug 2018 02:41:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fvd7K-00066o-VG for 32537@debbugs.gnu.org; Fri, 31 Aug 2018 02:41:18 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fvd7G-00064k-R9; Fri, 31 Aug 2018 02:41:11 -0400 Original-Received: from [176.228.60.248] (port=2885 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fvd7G-0004kJ-Bt; Fri, 31 Aug 2018 02:41:10 -0400 In-reply-to: <87sh2vwuyw.fsf@runbox.com> (message from Gemini Lasswell on Thu, 30 Aug 2018 11:49:27 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:149911 Archived-At: > From: Gemini Lasswell > 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 ) at systhread.c:137 > #3 0x0000000000647582 in acquire_global_lock (self=0xd45600 ) 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=, 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.