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#71073: Emacs segfaults if corfu is asked to autocomplete something while the LSP server providing completions is still starting/indexing Date: Mon, 20 May 2024 14:02:12 +0300 Message-ID: <86ttisagqz.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7441"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71073@debbugs.gnu.org To: alexis purslane Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 20 13:03:37 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 1s90np-0001h8-0I for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 May 2024 13:03:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s90nG-0005U8-FK; Mon, 20 May 2024 07:03:02 -0400 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 1s90nC-0005TC-7a for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 07:02:58 -0400 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 1s90nB-0005bo-V0 for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 07:02:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s90nG-0000Si-9n for bug-gnu-emacs@gnu.org; Mon, 20 May 2024 07:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 May 2024 11:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71073 X-GNU-PR-Package: emacs Original-Received: via spool by 71073-submit@debbugs.gnu.org id=B71073.17162029591765 (code B ref 71073); Mon, 20 May 2024 11:03:02 +0000 Original-Received: (at 71073) by debbugs.gnu.org; 20 May 2024 11:02:39 +0000 Original-Received: from localhost ([127.0.0.1]:42036 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s90ms-0000SP-Kb for submit@debbugs.gnu.org; Mon, 20 May 2024 07:02:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s90mp-0000SJ-6R for 71073@debbugs.gnu.org; Mon, 20 May 2024 07:02:36 -0400 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 1s90me-0005Hx-U2; Mon, 20 May 2024 07:02:24 -0400 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=ZyP3otVOa2XNh0tVWP/FbzJnSJaP7NQJ+3ZZb7GW7cM=; b=VKkcQyh6Exmc 6cM2Ozikn4uWep0mo0tifi167mLQPIlB9yg/Up0j3jtbIupbTSzierpolqFhodJdu4aHWx48wu5Hm VT8vitVbOgm8nBiOH586vhRDOlUuxzlJwVy87WGteLrAn9+6DLvoae34VSH189HGp5+qLaYwpymiw F5QpY9zqu9/lVcVzv/lnaMsg1sN4kTcy0zdv7LXz13/+L1EcGhVQ8fnysz/v03vgUsx4VGgnizKAB 5+niOsouMMz0MPGFelq1GtSGC5T297kU0nRzO7UZl3fpjPfyQ3TwLK53pRRas78rXAolIxAG0k2xb AHs3dmF83H6aoWUT8LV3JA==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:285471 Archived-At: > Date: Sun, 19 May 2024 19:58:23 +0000 > From: alexis purslane via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > If corfu is prompted to start autocompletion (by typing the first 3 > letters of a word in my case) while an eglot LSP server is still > starting up, but after eglot has connected to that server, you get a > segmentation fault. > > ## Steps to reproduce > > 1. Open a file with a mode associated with it that has a language server > 2. {M-x eglot} > 3. Before the server has finished indexing and can provide completions, > but after it has connected, prompt corfu to do an autocompletion > 4. Enjoy your segfault salad > > ## Debug information > > Here's the backtrace from the core dump: Thanks, but this backtrace is less useful than it could be. If you can run Emacs from GDB, please do that, and when it segfaults and GDB shows its prompt, type (gdb) thread apply all bt and post here everything GDB produces as result.