From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu Date: Mon, 30 Dec 2024 17:24:48 +0200 Message-ID: <86ldvxnqgv.fsf@gnu.org> References: <87cyh9qq64.fsf@fuzy.me> <86ttalnsj4.fsf@gnu.org> <87r05pmctv.fsf@fuzy.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19225"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 75199@debbugs.gnu.org To: Zhengyi Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 16:26:40 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tSHfD-0004uC-EH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 16:26:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSHef-00033K-L1; Mon, 30 Dec 2024 10:26:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSHed-0002x8-H7 for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 10:26:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tSHed-0001p5-7w for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 10:26:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=y2xV0ukamy7JTxVwg3SN83Iz7GQoXH07Vdnz4xAzg2I=; b=D5zmtlyLF6bFbyMTXXnGy+7FSQ972w9kvJnKKGy+1ABeiLipcPAe5KCwwNZvSR5eeJ1lqkwTN8SgU9RO9vrKiVU0OB0zLsv3UY2he5XtItWLf9wMlhUnBXgEHnZaVXyc0HqdToPEXDkWn6iRunZ8EPbw1U5U5wSfyosDnZ1jJvUbWWTEByzacVY3yufdDlgLnqc6wloe5W390BmozRq6F5+Dz96gFssFokUHtzIzGaXayL8IXokWPhCeDnXqzuawhY0V8E0N4zUbzvh5/t3lE+U+lLm4lOI367ruRmooac5x9kl5sQ7IGBDS5IGtQ2jJhQqXIcJj8rYE6h8FaCsRQg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSHec-0007go-AN for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 10:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75199 X-GNU-PR-Package: emacs Original-Received: via spool by 75199-submit@debbugs.gnu.org id=B75199.173557231029141 (code B ref 75199); Mon, 30 Dec 2024 15:26:02 +0000 Original-Received: (at 75199) by debbugs.gnu.org; 30 Dec 2024 15:25:10 +0000 Original-Received: from localhost ([127.0.0.1]:59495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSHdk-0007Zt-P4 for submit@debbugs.gnu.org; Mon, 30 Dec 2024 10:25:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:34110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSHdg-0007ZE-MM for 75199@debbugs.gnu.org; Mon, 30 Dec 2024 10:25:07 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSHda-0001PQ-IL; Mon, 30 Dec 2024 10:24:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=y2xV0ukamy7JTxVwg3SN83Iz7GQoXH07Vdnz4xAzg2I=; b=EvCWz96KSopU xgGVJayOQj40i6pEK7LfM2b/3wLvUw9bbGdRT1LFR3RwrxIs7vJObS+vrB9pUO3UjX85OQY9qDWuT nQ2C1fQUAuvko0KEjTJBanqUqFjs11rnl16aJ2eO2fu1P+RXYBtGaHKdFytzwt1Hf2X4aiMyznmnZ S1Uh6+itC3y2t0Oat3MeHSbpXU+pj8nVvdAcOPfp/qzNiGF6tjBZCKd9etdou5scR4s42nHWsH6t8 g6/glLnomeGrh1ptcu+H91bjO84ktegX/UwSpN+is87wLqQYI++pUj6Av/FAFvQPfqFMUTbDPAuTy OgoLgMdH6qk0FwXJ8TyqOQ==; In-Reply-To: <87r05pmctv.fsf@fuzy.me> (message from Zhengyi Fu on Mon, 30 Dec 2024 23:04:44 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298006 Archived-At: > From: Zhengyi Fu > Cc: Po Lu , 75199@debbugs.gnu.org > Date: Mon, 30 Dec 2024 23:04:44 +0800 > > Eli Zaretskii 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?