unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Zhengyi Fu <i@fuzy.me>
Cc: luangruo@yahoo.com, 75199@debbugs.gnu.org
Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu
Date: Mon, 30 Dec 2024 17:24:48 +0200	[thread overview]
Message-ID: <86ldvxnqgv.fsf@gnu.org> (raw)
In-Reply-To: <87r05pmctv.fsf@fuzy.me> (message from Zhengyi Fu on Mon, 30 Dec 2024 23:04:44 +0800)

> From: Zhengyi Fu <i@fuzy.me>
> Cc: Po Lu <luangruo@yahoo.com>,  75199@debbugs.gnu.org
> Date: Mon, 30 Dec 2024 23:04:44 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > 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.)
> 
> This the backtrace I got after rebuilding Emacs with --enable-checking
> and -O0 and disabling fcitx:
> 
> 
> (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 0x7ffff1bfe6c0 (LWP 58332)]
> [New Thread 0x7ffff126e6c0 (LWP 58333)]
> [New Thread 0x7fffebfff6c0 (LWP 58334)]
> [New Thread 0x7fffeb66f6c0 (LWP 58335)]
> [Detaching after vfork from child process 58338]
> [Detaching after vfork from child process 58343]
> [Detaching after vfork from child process 58350]
> [Detaching after vfork from child process 58351]
> [Detaching after vfork from child process 58352]
> [Detaching after vfork from child process 58353]
> [Detaching after vfork from child process 58357]
> [Detaching after vfork from child process 58361]
> [Detaching after vfork from child process 58366]
> [Detaching after vfork from child process 58370]
> [Detaching after vfork from child process 58374]
> [Detaching after vfork from child process 58379]
> 
> Thread 1 "emacs" hit Breakpoint 1, x_error_quitter (display=0x104d5d0, event=0x7fffffffb8c0) at xterm.c:27111
> 27111	  if (event->error_code == BadName)

Thanks, but now it doesn't seem to be a crash?  What is the value of
event->error_code?

Earlier you wrote:

> The error is probably caused by the width value of 0 passed to 
> XCreatePixmapFromBitmapData().
> 
> It seems gui_intersect_rectangles() returns true even if the resulted 
> rectangle is empty.  Is that correct behavior?

Can you tell how this happens?  Is corfu doing something special with
the fringes?





  reply	other threads:[~2024-12-30 15:24 UTC|newest]

Thread overview: 13+ 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 ` bug#75199: 30.0.93; Emacs crashes when completing with corfu Eli Zaretskii
2024-12-30 15:04   ` Zhengyi Fu
2024-12-30 15:24     ` Eli Zaretskii [this message]
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
2025-01-18  9:10                   ` Eli Zaretskii

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86ldvxnqgv.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).