all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Simon Pugnet <simon@polaris64.net>, Po Lu <luangruo@yahoo.com>
Cc: 61940@debbugs.gnu.org
Subject: bug#61940: 29.0.60; Occasional crash when moving point continously with visual line numbers
Date: Mon, 06 Mar 2023 14:21:18 +0200	[thread overview]
Message-ID: <837cvu8401.fsf@gnu.org> (raw)
In-Reply-To: <87zg8qkrys.fsf@polaris64.net> (message from Simon Pugnet on Mon,  06 Mar 2023 11:53:27 +0000)

> From: Simon Pugnet <simon@polaris64.net>
> Cc: 61940@debbugs.gnu.org
> Date: Mon, 06 Mar 2023 11:53:27 +0000
> 
> Sorry, yes I realise now that I said "crash" in the subject but I 
> meant that it hung or stopped responding to input. What I see when 
> this happens is a plain white frame (background colour of the theme) 
> and no keyboard or mouse input seems to be accepted.
> 
> 
> >> From there I obtained the backtrace and was able to step, which is
> >> how I noticed that it seemed to be in a loop. I might have 
> >> diagnosed
> >> this incorrectly however.
> >
> > The file etc/DEBUG in the Emacs repository has instructions for how 
> > to
> > identify the code in which Emacs is looping, if it's looping.  Look
> > for "If the symptom of the bug is that Emacs fails to respond".
> 
> I managed to trigger this situation again this morning while working. 
> Unfortunately I was unable to trigger it while it was being debugged 
> in gdb; the problem occurs rarely so it's not easy to reproduce on 
> demand.

You can simply run Emacs under GDB at all times.  As long as Emacs
runs normally, GDB will stay out of the way.

> Thread 1 (Thread 0x7f11e55fa2c0 (LWP 35073) "emacs"):
> #0  0x00007f11e8d139df in poll () at /usr/lib/libc.so.6
> #1  0x00007f11ec43726b in  () at /usr/lib/libxcb.so.1
> #2  0x00007f11ec438d1d in xcb_wait_for_event () at 
>  /usr/lib/libxcb.so.1
> #3  0x00007f11ec49ab09 in _XReadEvents () at /usr/lib/libX11.so.6
> #4  0x00007f11ec48143a in XIfEvent () at /usr/lib/libX11.so.6
> #5  0x00007f11ec4c7f10 in  () at /usr/lib/libX11.so.6
> #6  0x00007f11ec4bf523 in  () at /usr/lib/libX11.so.6
> #7  0x00007f11ec4c847c in _XimRead () at /usr/lib/libX11.so.6
> #8  0x00007f11ec4b8d6c in  () at /usr/lib/libX11.so.6
> #9  0x00007f11ec4a3c5f in XSetICValues () at /usr/lib/libX11.so.6
> #10 0x0000563eb62f9d0b in xic_set_preeditarea (w=0x563ec43bdc60, 
>  x=287, y=493) at xfns.c:3176
> #11 0x0000563eb62e5194 in handle_one_xevent 
>  (dpyinfo=dpyinfo@entry=0x563eb8c67800, 
>  event=event@entry=0x7ffce40dc7e0, finish=finish@entry=0x563eb6994270 
>  <current_finish>, hold_quit=0x7ffce40dcac0) at xterm.c:20116
> #12 0x0000563eb62ecec1 in event_handler_gdk (gxev=0x7ffce40dc7e0, 
>  ev=<optimized out>, data=<optimized out>) at xterm.c:17447
> #13 0x00007f11ed4d1b0f in  () at /usr/lib/libgdk-3.so.0
> #14 0x00007f11ed4d96d5 in  () at /usr/lib/libgdk-3.so.0
> #15 0x00007f11ed47f029 in gdk_display_get_event () at 
>  /usr/lib/libgdk-3.so.0
> #16 0x00007f11ed4d9a68 in  () at /usr/lib/libgdk-3.so.0
> #17 0x00007f11ec60b82b in g_main_context_dispatch () at 
>  /usr/lib/libglib-2.0.so.0
> #18 0x00007f11ec662cc9 in  () at /usr/lib/libglib-2.0.so.0
> #19 0x00007f11ec60a0e2 in g_main_context_iteration () at 
>  /usr/lib/libglib-2.0.so.0
> #20 0x00007f11ecdd8eeb in gtk_main_iteration () at 
>  /usr/lib/libgtk-3.so.0
> #21 0x0000563eb62d783a in XTread_socket (terminal=<optimized out>, 
>  hold_quit=0x7ffce40dcac0) at xterm.c:24819
> #22 0x0000563eb6322f61 in gobble_input () at keyboard.c:7417
> #23 0x0000563eb6323335 in handle_async_input () at keyboard.c:7648
> #24 process_pending_signals () at keyboard.c:7662
> #25 0x0000563eb63ac12d in probably_quit () at eval.c:1661
> #26 0x0000563eb63c0a50 in maybe_quit () at 
>  /storage/Work/personal/emacs/src/lisp.h:3689

This again says that Emacs is trying to read input via XIM.  Maybe Po
Lu could help us understand what could be going on.

> I tried using the "finish" gdb command from this point and here is 
> what happened: -
> 
> (gdb) finish
> Run till exit from #0  0x00007f11e8d139df in poll () from 
> /usr/lib/libc.so.6
> 0x00007f11ec43726b in ?? () from /usr/lib/libxcb.so.1
> (gdb) finish
> Run till exit from #0  0x00007f11ec43726b in ?? () from 
> /usr/lib/libxcb.so.1
> 0x00007f11ec438d1d in xcb_wait_for_event () from /usr/lib/libxcb.so.1
> (gdb) finish
> Run till exit from #0  0x00007f11ec438d1d in xcb_wait_for_event () 
> from /usr/lib/libxcb.so.1
> 0x00007f11ec49ab09 in _XReadEvents () from /usr/lib/libX11.so.6
> (gdb) finish
> Run till exit from #0  0x00007f11ec49ab09 in _XReadEvents () from 
> /usr/lib/libX11.so.6
> 0x00007f11ec48143a in XIfEvent () from /usr/lib/libX11.so.6
> (gdb) finish
> Run till exit from #0  0x00007f11ec48143a in XIfEvent () from 
> /usr/lib/libX11.so.6
> 
> (at this point the "finish" command does not return).
> 
> I hope that helps. I will try to reproduce the problem while running 
> in gdb and I will send an update if I'm successful.





  reply	other threads:[~2023-03-06 12:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-03 13:08 bug#61940: 29.0.60; Occasional crash when moving point continously with visual line numbers Simon Pugnet
2023-03-03 16:32 ` Eli Zaretskii
2023-03-03 16:38   ` Simon Pugnet
2023-03-03 18:26     ` Eli Zaretskii
2023-03-06 11:53       ` Simon Pugnet
2023-03-06 12:21         ` Eli Zaretskii [this message]
2023-03-06 12:43           ` Simon Pugnet
2023-03-06 13:34             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-06 14:57               ` Simon Pugnet
2023-03-08 14:37                 ` Simon Pugnet
2023-03-08 14:59                   ` Eli Zaretskii
2023-03-06 13:05           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-06 13:19             ` Simon Pugnet

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=837cvu8401.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=61940@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=simon@polaris64.net \
    /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.