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 16:40:15 +0200 Message-ID: <86ttalnsj4.fsf@gnu.org> References: <87cyh9qq64.fsf@fuzy.me> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10378"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75199@debbugs.gnu.org To: Zhengyi Fu , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 15:41:20 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 1tSGxL-0002Uy-B4 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 15:41:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSGx7-0004SR-I4; Mon, 30 Dec 2024 09:41: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 1tSGx5-0004SJ-4Z for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 09:41: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 1tSGx4-0004l9-NW for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 09:41:02 -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=cWB2GyUR6AvyzDoIa9dtQokJyOs0jpu0C/80H+d+1mU=; b=dx4G4+T5cCXo1MEJMQE9fC1G2eud7ozyEA8ZOpwk211Zl7tN46uIgQ3ensTpO2Ntgh6FII65VPBu5IgwqyHGxl138zQY9Z/pucxpz9x6Qwo7FSF8yzi9Fm7wVFCNq0HnFmTq4zQI0yKlHyBX+HZftg3ARR/xa9LvqYRqXUGndj5M5W0En7u3goDls5w0lnWPxNc2CEq3VE1g3DXqHi5vNP/VORbVWGM0+Msr7aO+bBSPVxlLrMLC8yxXpynP5JgEqooWm9BjL+X30HaTcHYe0gH3k81Bw7dM1GAo6ij/HpzFE+lYOiwSIW8R5NO1SntTFYrcyZBTCorvdgK9+8EgYA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSGx4-0005Aa-8w for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 09:41: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 14:41: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.173556962719808 (code B ref 75199); Mon, 30 Dec 2024 14:41:02 +0000 Original-Received: (at 75199) by debbugs.gnu.org; 30 Dec 2024 14:40:27 +0000 Original-Received: from localhost ([127.0.0.1]:58036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSGwV-00059P-CM for submit@debbugs.gnu.org; Mon, 30 Dec 2024 09:40:27 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSGwS-000595-3v for 75199@debbugs.gnu.org; Mon, 30 Dec 2024 09:40:25 -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 1tSGwL-0004gF-Qa; Mon, 30 Dec 2024 09:40:17 -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=cWB2GyUR6AvyzDoIa9dtQokJyOs0jpu0C/80H+d+1mU=; b=chAMeQ15fo0t mJ9ywTmWIMk/ZWlL9eoXSi3r7U6nijVIvXm8Sg0RpfL19IISz3aDjZPTPw/qIh1mNpaMHn/335mA6 QbRCUaPvQE0wYZ/s6WZpjhHhKrCQLPpV51orfcv1euPgyfsuCcRel31Vw5zofUp3OGYUAbZ1Oz1NQ +BmQHXWPD11xcITXQYrw4kBPu0vijx64arRaEu+HiGHhFdqHEZEZhTDY+F1fu4kSNkDQTIcJ+AG/m Y4nZK1ISrPBv2iCfKVsoAEcQZvImvQ/cOOBzx74LzIJ3JAyl12PQ6+9Ey9ClY6PCYcl5lY8fPTkHj ZtRYmOUz2Grsvxmq8LjFtQ==; In-Reply-To: <87cyh9qq64.fsf@fuzy.me> (message from Zhengyi Fu on Mon, 30 Dec 2024 21:02:59 +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:298004 Archived-At: > From: Zhengyi Fu > 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' > buf1 = '\000' ... > #1 0x000000000055076b in x_error_handler (display=0xe19910, event=0x7fffffffba70) at xterm.c:27090 > stack = > dpyinfo = > fail = > last = 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.)