From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ravi D'Elia Newsgroups: gmane.emacs.bugs Subject: bug#72025: SEGFAULT when using corfu and lsp-mode with clangd Date: Wed, 10 Jul 2024 11:27:00 -0400 Message-ID: References: <4upkl3dutgscohej2smaonb26asvl6cmp24z2jj25myjzhb3qz@vlrqcyiid7cx> <868qy9o3x8.fsf@gnu.org> <861q41nwia.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31748"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Andrea Corallo , 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 17:29:16 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 1sRZFq-0007yS-0J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 10 Jul 2024 17:29:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRZFa-00059T-D5; Wed, 10 Jul 2024 11:28: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 1sRZFY-00059K-Ml for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 11:28: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 1sRZFY-0000u9-Eg for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 11:28:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRZFe-00063K-9X for bug-gnu-emacs@gnu.org; Wed, 10 Jul 2024 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ravi D'Elia Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Jul 2024 15:29: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.172062530123208 (code B ref 72025); Wed, 10 Jul 2024 15:29:02 +0000 Original-Received: (at 72025) by debbugs.gnu.org; 10 Jul 2024 15:28:21 +0000 Original-Received: from localhost ([127.0.0.1]:56936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRZEw-00062D-79 for submit@debbugs.gnu.org; Wed, 10 Jul 2024 11:28:21 -0400 Original-Received: from mail-io1-f41.google.com ([209.85.166.41]:51498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRZEr-00061w-V6 for 72025@debbugs.gnu.org; Wed, 10 Jul 2024 11:28:16 -0400 Original-Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-7eee7728b00so241381839f.3 for <72025@debbugs.gnu.org>; Wed, 10 Jul 2024 08:28:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720625222; x=1721230022; darn=debbugs.gnu.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zEmhA2fAbJcy1G1pDxIf1cGVmhexNDQneqYbGejqhPI=; b=O0/LSxq7SCgSQFuwom0E93Vl2gd3JM/o1DEI58a429SPhYJRjge0yXyZ8JOe7hk3SO LMjj/pVVNc08pih/1BRlEFAkG4Ph2B96UsZwTvz98/vFa6nvk4incsCEJDfyf5AYQO4X NBpO+aXxkuCTyc6r24lkT1DYtCt+BYGTC5/ZdiA0a4unZZv3cd7YwIkZOM5d6uS+Cuq0 8xNq4BJMtLuMO3lzDSbm8NrWfp+VU0RRoLAiF+4PeQo5cnrUEuJ96IpFpCzCL5DwRFjX G/KCQcyhrxiE4R0JVZEjS48SRd4z1aanHP4q+3yXSqb+2f20SHcpGMArf9JVDG1ihoce efzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720625222; x=1721230022; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zEmhA2fAbJcy1G1pDxIf1cGVmhexNDQneqYbGejqhPI=; b=cunL2KEttVVZTRjxv5BnYhC3miPRLDQzJmc3EMXDwtzf7+LucnklP3uI7CYn28OM9n fLe/Jp1fkJxKPHrWJGA32kD2efD1Y4kd85VD+zVcJ9TkYV0Cyw42ZR4fwliPsDXKXW8W 8U4mj3oroIF/bjLwdo7395Qbdon/JlsnYhzxvhZccxsgP686jWTuSKU+pQc6Nx1xjU6S MPU17BBXT23IwIpJ/7EmrqEtzUDJ//UFAf7FPWs/ypUgB4k0LugGgaFwJD5rbw0o+iDD 2N9/Q/JaKs2SZrsmf281ON4qKO5CT3eeeJ/uCvEBHmku89RTsaqE6GYp8ytFOkEO4J6V IXTw== X-Forwarded-Encrypted: i=1; AJvYcCVOmq9HxU3a2ooNu+nDxRu8a6k3Kj4YOyuEQbB6XWVFx2qiS6YqeGyZKzk/L5NGo3mZpAyfaNzaWm6Ev3SP6VYWcQChkdQ= X-Gm-Message-State: AOJu0Yx3Urd/zL8h35RJ11uGoV6/cXRen4weDhyv2ymOs/fDUw61GBP+ e1w/QY+mf3FGKl0urkH1msrAmg547VKyhtzPJALkZtIerpvYJktU X-Google-Smtp-Source: AGHT+IFrsI7HQtSEAoWCLeZBy2HZErZQHTHXLnwiTIVd8uJy+1c4L0AP4gnnG40bnSdMfKygNo0tSw== X-Received: by 2002:a5d:834d:0:b0:806:6b24:ee1e with SMTP id ca18e2360f4ac-8066b24f090mr69115039f.15.1720625221960; Wed, 10 Jul 2024 08:27:01 -0700 (PDT) Original-Received: from localhost ([68.235.43.165]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4c0b1bf7336sm1189630173.99.2024.07.10.08.27.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 08:27:01 -0700 (PDT) Content-Disposition: inline In-Reply-To: <861q41nwia.fsf@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:288682 Archived-At: On 24/07/10 05:37PM, Eli Zaretskii wrote: >> 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. Sorry about the backtrace, I did indeed use gdb but didn't have the debugging symbols to make it useful. My distro (arch) does ship a stripped binary with a separate debug package but I'm having difficulties due to (I think) some packaging mishap on my end. While I take that up on my distro's forum, I'm going to try and build with debugging info. I'll send in the backtrace when one of these bears fruit. Didn't expect to have my computer on me, otherwise I would have figured this out first.