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 10:07:28 -0400 Message-ID: References: <4upkl3dutgscohej2smaonb26asvl6cmp24z2jj25myjzhb3qz@vlrqcyiid7cx> <868qy9o3x8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13365"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: ravijdelia@gmail.com, 72025@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 10 16:08:29 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 1sRXzg-0003AD-4h for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jul 2024 16:08:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRXzC-0005Gl-Jb; Wed, 10 Jul 2024 10:07: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 1sRXzA-00058j-Kv for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 10:07: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 1sRXzA-0002SF-0C for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 10:07:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRXzG-0003nO-3I for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 10:08:02 -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 14:08: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.172062046614569 (code B ref 72025); Wed, 10 Jul 2024 14:08:02 +0000 Original-Received: (at 72025) by debbugs.gnu.org; 10 Jul 2024 14:07:46 +0000 Original-Received: from localhost ([127.0.0.1]:56858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRXyz-0003mu-OT for submit@debbugs.gnu.org; Wed, 10 Jul 2024 10:07:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRXyx-0003mh-NJ for 72025@debbugs.gnu.org; Wed, 10 Jul 2024 10:07:44 -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 1sRXym-0002RA-0X; Wed, 10 Jul 2024 10:07:32 -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=LgsSVuwJ1z8LFJ7OjdkXhFhgIltL/k2G5df4e5t92XY=; b=OYgugs11Wmy0l4M2gxfS 8856HrUsr4oqMcG3Yub55My09YplNnfMXRwi+QIFg/Y1jXNPkWV+TtZFjkSuvwp9ikE+txf0g6uSM Q3rz8ILEWM0/yoed+Wzi/BJtqdf2fs2gttn8QBT8iqfQ/uW205ikJa2FFEvUaB6Nn8PkUqzDCm1FL zUviZnEKb5ZXjHLLf/bB83+JnX720Zczc9KvhL5uwId13uZU25tgAizdtcEgLkLuEE66uoQDGlolR L47CNrvjpVViHgTZQQjS5W1g35pRl7sgbCobEOTvKdwPVexveTHNF+eABlaSsLIZ0OY/0/tBu15B6 GDNfX70hyFvXag==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sRXyi-0006nY-Bw; Wed, 10 Jul 2024 10:07:29 -0400 In-Reply-To: <868qy9o3x8.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Jul 2024 14:57:23 +0300") 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:288678 Archived-At: 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? Andrea