From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#72025: SEGFAULT when using corfu and lsp-mode with clangd Date: Wed, 10 Jul 2024 04:06:02 -0400 Message-ID: References: <4upkl3dutgscohej2smaonb26asvl6cmp24z2jj25myjzhb3qz@vlrqcyiid7cx> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40171"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72025@debbugs.gnu.org To: Ravi D'Elia Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 10 10:09:18 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 1sRSO5-000ABF-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jul 2024 10:09:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRSNo-0006Bm-U2; Wed, 10 Jul 2024 04:09:01 -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 1sRSNm-0006BJ-DR for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 04:08: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 1sRSNj-0001s0-Tj for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 04:08:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRSNp-000286-RY for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 04:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2024 08:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72025 X-GNU-PR-Package: emacs Original-Received: via spool by 72025-submit@debbugs.gnu.org id=B72025.17205989078141 (code B ref 72025); Wed, 10 Jul 2024 08:09:01 +0000 Original-Received: (at 72025) by debbugs.gnu.org; 10 Jul 2024 08:08:27 +0000 Original-Received: from localhost ([127.0.0.1]:54801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRSNG-00027F-QX for submit@debbugs.gnu.org; Wed, 10 Jul 2024 04:08:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55804) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRSNF-000273-6Q for 72025@debbugs.gnu.org; Wed, 10 Jul 2024 04:08:25 -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 1sRSKw-0001eS-Q4; Wed, 10 Jul 2024 04:06:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=o1ZjtXiYSuC2G9nIcx+jDcS10T+NXaigSNkcaWUbW6M=; b=qbgqYt/K1CX8jnr1PnMg ZJRj4o02OoE52mxShW+2T778CYtBP0e0t3TWSCAvhnr5ZnjTPFSc+QEPmuphyqo7ik6pE/ba0yT8d knIxXYM99dCvJzblPr5WJwrHR853QrFLgPHkaGQ/qPQl6FLcF6iSuW4vlBWeqzjGsQH+KW28kzLfP hqWe1s/wUQhU2rA1QhRpTzhn4wiNkOA1B5lrvZHv1X4h0rI63EgT5sZ11FhSbV0J4Kq4IUC4hERHO M5tpQoq7pxkM+/7CJ5FDAA5u2X19BRy5wJIksiRQztSFbHWIVlF6KJGNzy2m3f8u+10vH764gLnzq FWF4mtncMFgjUA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sRSKw-0002qP-EA; Wed, 10 Jul 2024 04:06:02 -0400 In-Reply-To: <4upkl3dutgscohej2smaonb26asvl6cmp24z2jj25myjzhb3qz@vlrqcyiid7cx> (Ravi D'Elia's message of "Tue, 9 Jul 2024 19:20:15 -0400") 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:288665 Archived-At: Ravi D'Elia writes: > At unpredictable times while editing c++ files, emacs will segfault. > I haven't been able to reproduce without lsp-mode, but with how > unpredictable this is I don't think that necessarily means much. > The problem exists with and without native compilation- this > report assumes without. > > STEPS TO REPRODUCE: > - Let '~/minimal' contain the attached init file > - Start emacs with 'emacs --init-directory ~/minimal' > - Open a c++ file > - Edit it, taking care to type quickly and go back to edit within > words. I can usually get a crash within 10 minutes, but I haven't > been able to iterate enough to figure out exactly what is > happening. It's always while typing though, I think in response > to a keydown. > > Attached is the init file I used to reproduce this, and the backtrace. > I had issues with the .gdbinit, which I will hopefully address when > I get back from vacation. > Hi Ravi, thanks for reporting, how did you produce the stack trace? I ask because without function names in it is not very useful. Here we have some information on how to process backtraces when Emacs crashes [1] and here [2] some info on how to run Emacs under gdb (and produce the backtrace there). Probably debugging Emacs under gdb would be the best option here. Thanks Andrea [1] [2]