GNU bug report logs - #71073
Emacs segfaults if corfu is asked to autocomplete something while the LSP server providing completions is still starting/indexing

Previous Next

Package: emacs;

Reported by: alexis purslane <alexispurslane <at> pm.me>

Date: Sun, 19 May 2024 21:08:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 71073 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: alexis purslane <alexispurslane <at> pm.me>
Cc: 71073 <at> debbugs.gnu.org
Subject: Re: 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
> 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" <bug-gnu-emacs <at> gnu.org>
> 
> 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.




This bug report was last modified 305 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.