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#72025: SEGFAULT when using corfu and lsp-mode with clangd Date: Wed, 10 Jul 2024 17:37:33 +0300 Message-ID: <861q41nwia.fsf@gnu.org> References: <4upkl3dutgscohej2smaonb26asvl6cmp24z2jj25myjzhb3qz@vlrqcyiid7cx> <868qy9o3x8.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25084"; mail-complaints-to="usenet@ciao.gmane.io" Cc: ravijdelia@gmail.com, 72025@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 10 16:38: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 1sRYSa-0006KS-2G for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jul 2024 16:38:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRYSE-0008KC-7b; Wed, 10 Jul 2024 10:37:58 -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 1sRYSC-0008Fn-DH for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 10:37:56 -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 1sRYSC-0008PP-3t for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 10:37:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRYSI-0004bW-8K for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 10:38: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: Wed, 10 Jul 2024 14:38:02 +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.172062227017677 (code B ref 72025); Wed, 10 Jul 2024 14:38:02 +0000 Original-Received: (at 72025) by debbugs.gnu.org; 10 Jul 2024 14:37:50 +0000 Original-Received: from localhost ([127.0.0.1]:56894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRYS6-0004b0-Gb for submit@debbugs.gnu.org; Wed, 10 Jul 2024 10:37:50 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:54706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRYS4-0004an-JL for 72025@debbugs.gnu.org; Wed, 10 Jul 2024 10:37:49 -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 1sRYRt-0008Jb-0Z; Wed, 10 Jul 2024 10:37:37 -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=DkF+C5EwIIIk5+5iSOQbjwcEDBn6q5uJHwAiyK2ZTIA=; b=ebxAh+LoKd3U Bna8zop3n1wdO1lsC+z5lPxfBoP/azR5Ta7D05ciHHV9PVKSVt1YoS6apgAPxyaM92psyHIUE1r39 QYqZN3HU6PU6sZX5InWxtK0c2kGf6kXqnjEy0wp2CM+qt/9q1FLdwHQRNN7Gkvr/AJOVVM2Xncy9h vtXumWDhHTazDDIuPgcST//c4J86x2xi5ge4bE/yy614+0T9ZqkMuwG6l+bUXDiysJ3+luQPovArr mtyhH98+RxvmIbQPSTbQnPkBiGeZa4k+KxC1xg/81TbcykIrIu8FvZRMb/1BMCHPpCB03fvA6OAWc eZ+mgLEHUCT0KCDuYLr0BQ==; In-Reply-To: (message from Andrea Corallo on Wed, 10 Jul 2024 10:07:28 -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:288681 Archived-At: > From: Andrea Corallo > Cc: ravijdelia@gmail.com, 72025@debbugs.gnu.org > Date: Wed, 10 Jul 2024 10:07:28 -0400 > > Eli Zaretskii writes: > > >> Cc: 72025@debbugs.gnu.org > >> From: Andrea Corallo > >> Date: Wed, 10 Jul 2024 04:06:02 -0400 > >> > >> 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. > > > > I think he already ran Emacs from GDB, but his Emacs is stripped of > > debugging symbols, so GDB couldn't display anything useful. So the > > procedures you mention will not help. > > Right, do you we if typically distros strip our binary and this is > probably the case? I don't know if this is the rule (I think the rule is to offer a separate package with debug info, and if GDB supports debuginfod servers, it can download the debug info at the beginning of a session). But clearly in this case the binary was stripped by someone.