all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Zhengyi Fu <i@fuzy.me>, Po Lu <luangruo@yahoo.com>
Cc: 75199@debbugs.gnu.org
Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu
Date: Mon, 30 Dec 2024 16:40:15 +0200	[thread overview]
Message-ID: <86ttalnsj4.fsf@gnu.org> (raw)
In-Reply-To: <87cyh9qq64.fsf@fuzy.me> (message from Zhengyi Fu on Mon, 30 Dec 2024 21:02:59 +0800)

> From: Zhengyi Fu <i@fuzy.me>
> Date: Mon, 30 Dec 2024 21:02:59 +0800
> 
> Emacs built without Cairo steadily crashes when trying to complete
> symbols with Corfu.
> 
> Steps to reproduce:
> 
> 1. emacs -Q -l path/to/corfu.el
> 2. M-x corfu-mode
> 3. Try completing a simple by pressing C-M-i
> 
> I got the following backtrace from GDB by reproducing the bug after
> evaluating (x-synchronize t):
> 
> (gdb) br x_error_quitter
> Breakpoint 1 at 0x550530: file xterm.c, line 27111.
> (gdb) r
> Starting program: /home/zhengyi/src/emacs/src/emacs -Q -l \~/.emacs.d/straight/repos/corfu/corfu.el
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib64/libthread_db.so.1".
> [New Thread 0x7ffff13fe6c0 (LWP 15400)]
> [New Thread 0x7ffff0a6e6c0 (LWP 15401)]
> [New Thread 0x7fffebfff6c0 (LWP 15402)]
> [New Thread 0x7fffeb66f6c0 (LWP 15403)]
> 
> Thread 1 "emacs" hit Breakpoint 1, x_error_quitter (display=0xe19910, event=0x0) at xterm.c:27111
> 27111	  if (event->error_code == BadName)
> (gdb) bt full
> #0  x_error_quitter (display=0xe19910, event=0x0) at xterm.c:27111
> 	buf = '\000' <repeats 255 times>
> 	buf1 = '\000' <repeats 272 times>...
> #1  0x000000000055076b in x_error_handler (display=0xe19910, event=0x7fffffffba70) at xterm.c:27090
> 	stack = <optimized out>
> 	dpyinfo = <optimized out>
> 	fail = <optimized out>
> 	last = <optimized out>

I don't understand how 'event', which was 0x7fffffffba70 in
x_error_handler became a NULL pointer inside x_error_quitter, which
x_error_handler calls.

Po Lu, any ideas?

Zhengyi Fu, can you configure Emacs 30.0.93 with --enable-checking and
compile it with -O0, and see if you get more detailed diagnostics?

Also, does disabling the X input method help in any way?  (I see you
are using fcitx.)





  parent reply	other threads:[~2024-12-30 14:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-30 13:02 bug#75199: 30.0.93; Emacs crashes when completing with corfu Zhengyi Fu
     [not found] ` <handler.75199.B.17355638041034.ack@debbugs.gnu.org>
2024-12-30 14:25   ` bug#75199: Acknowledgement (30.0.93; Emacs crashes when completing with corfu) Zhengyi Fu
2024-12-30 14:40 ` Eli Zaretskii [this message]
2024-12-30 15:04   ` bug#75199: 30.0.93; Emacs crashes when completing with corfu Zhengyi Fu
2024-12-30 15:24     ` Eli Zaretskii
2024-12-30 15:45       ` Zhengyi Fu
2024-12-30 15:55       ` Zhengyi Fu
2024-12-30 18:00         ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-30 18:28           ` Eli Zaretskii
2024-12-30 18:43             ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-12-30 19:17               ` Eli Zaretskii
2024-12-30 19:47                 ` Daniel Mendler via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=86ttalnsj4.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=75199@debbugs.gnu.org \
    --cc=i@fuzy.me \
    --cc=luangruo@yahoo.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.