From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Zhengyi Fu Newsgroups: gmane.emacs.bugs Subject: bug#75199: 30.0.93; Emacs crashes when completing with corfu Date: Mon, 30 Dec 2024 23:45:31 +0800 Message-ID: <27d97e98800da562c0b2bdeae2cef2c3@fuzy.me> References: <87cyh9qq64.fsf@fuzy.me> <86ttalnsj4.fsf@gnu.org> <87r05pmctv.fsf@fuzy.me> <86ldvxnqgv.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 75199@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 30 16:46: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 1tSHyZ-00045s-Bs for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Dec 2024 16:46:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSHy8-0004fe-1m; Mon, 30 Dec 2024 10:46:12 -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 1tSHy1-0004f1-TR for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 10:46:06 -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 1tSHy0-0003iE-0N for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 10:46:04 -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:MIME-Version:To:Subject; bh=mhtc1cc2/PECQx68OGkl/4a60DKzFZn6iikr4HfxdGc=; b=B7oHdAvRCwLde+9K5T5laPXI5hULM8kBUpak0MxHUNVjXQP1CM1YSmEhcwpP6J4DOzQF2PRXqvEM/c9pKJsncmxKXyfBcGruvrZqKGGdiax0LMEHjVLx0R+oqWLarA1ynH7k0g3O2KFyTfNdUptZi9R5WdMpLVFyw1bJnrbvvd0C0lP42dJhDsow/+FdRmht4DilDPDrX9hKSLl1vR9m5lEnBjUDeGJxbEIVSsAOs2Ul3E1i1F54RN0UN+uO4Gc301n2nmOqnVCIcV4MYmF6h0lODAXj5kTkvCREF7i8085GvlwbXoqyDR7bNIZ5qM56wb3k3cHpc4tR1xlNJF5YZQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tSHxz-0000Fr-RX for bug-gnu-emacs@gnu.org; Mon, 30 Dec 2024 10:46:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Zhengyi Fu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Dec 2024 15:46:03 +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.1735573560939 (code B ref 75199); Mon, 30 Dec 2024 15:46:03 +0000 Original-Received: (at 75199) by debbugs.gnu.org; 30 Dec 2024 15:46:00 +0000 Original-Received: from localhost ([127.0.0.1]:59538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSHxw-0000F5-DL for submit@debbugs.gnu.org; Mon, 30 Dec 2024 10:46:00 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:41237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tSHxu-0000Eo-Qh for 75199@debbugs.gnu.org; Mon, 30 Dec 2024 10:45:59 -0500 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 8BB9AC0004; Mon, 30 Dec 2024 15:45:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fuzy.me; s=gm1; t=1735573532; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=mhtc1cc2/PECQx68OGkl/4a60DKzFZn6iikr4HfxdGc=; b=oqHbcSm1eglLm5N5awGjVTap20H4mCp43gTWUvntpil2MSmPtv6zqN+4QZrU7WIr9gjXGW advb7GUUsX73aZXD6mbg/t0SF3p++nCmkAjDOWCoUqLh/EsyU3Ur4Ge4K9QvW8JOgzPJxP eaLFs64pYK9KWpAmE/J8DvnTRME0HYprYTzj4u2cE89YDPXBjAA68i/Q984e55PJB8AHmE /sC1tav0q1XiGnsfvP9p/qGnFk2nZ4OmeT0bI5k3uiA5MmSjdvYwLBNoLZCpGyLCqejnwS wd2oXbDb90N9hRNluIj4vcs9HrqrU9CCrWJoORcOQGBGIIizVH8jhEul0k6Yog== In-Reply-To: <86ldvxnqgv.fsf@gnu.org> X-Sender: i@fuzy.me X-GND-Sasl: id@fuzy.me 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:298007 Archived-At: On 2024-12-30 23:24, Eli Zaretskii wrote: >> 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? It does crash if running asynchronously. The error code is 2 (BadValue). With (x-synchrozie t), Emacs freezes after entering x_error_quitter. > 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? Sorry, by "width" I mean "height". I'm not familiar enough with corfu implemantation to give any clue.