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#71744: 29.4; SIGSEGV during completion-at-point in lsp-mode with corfu and cape Date: Wed, 14 Aug 2024 16:57:04 +0300 Message-ID: <86mslf8axb.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24028"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71744@debbugs.gnu.org To: Sigve Indregard Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 14 15:58:10 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 1seEVu-00062Z-1e for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Aug 2024 15:58:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seEVc-0000PS-3m; Wed, 14 Aug 2024 09:57:53 -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 1seEVD-0000Ju-Hw for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2024 09:57:30 -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 1seEVD-000711-5W for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2024 09:57:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=USy4xk5v0dzl0OeKFtmLAz9TyHWrlWTl+l9Ug1v5J7s=; b=Ub9Cqy5BQ9eJw0nDl6ZD/AXQCN/Qf/kOM6rhuCvVw/vAjAiy49OY+j//2pnxc+vSxKKZJIsehlqFP56UTuo0i62ZFHQHYX4RyQ2Hwn5WqmRO/7UqrLUdm1joNmui/660L0QCcl29QWeP7SuGSGdxlW5toBE1qI7utNA0Q0GCYin7NU/sosojtLH14Juy+ZYByXM0vx1cROkKUN/nor5IBOphzEwi2IRD3nIMAiLgXg8XWF7HMbwjKSRZ/fnFzINhFGltxBDAyqJv+ZpxfcJCnFMtib5Dyo7wdso0/xkloVAGPQzeNyVsw4L9M7zsvAZQ/ANLF/gKs+Bmug4BDffSqQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1seEVl-0005Qb-RU for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2024 09:58:01 -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, 14 Aug 2024 13:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71744 X-GNU-PR-Package: emacs Original-Received: via spool by 71744-submit@debbugs.gnu.org id=B71744.172364387220848 (code B ref 71744); Wed, 14 Aug 2024 13:58:01 +0000 Original-Received: (at 71744) by debbugs.gnu.org; 14 Aug 2024 13:57:52 +0000 Original-Received: from localhost ([127.0.0.1]:47134 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seEVc-0005QC-Dm for submit@debbugs.gnu.org; Wed, 14 Aug 2024 09:57:52 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seEVa-0005Ps-8u for 71744@debbugs.gnu.org; Wed, 14 Aug 2024 09:57:51 -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 1seEUu-0006zr-Hv; Wed, 14 Aug 2024 09:57:08 -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=USy4xk5v0dzl0OeKFtmLAz9TyHWrlWTl+l9Ug1v5J7s=; b=MuxxFTz7KVG2 XwqQCl0uuIcofJkmseIFPOLge3VCRhCqjt2DhW+3kwo49cx00bY0XkThgnqioMmjsqmlNn0/rQE2a GhaQ+f7YScgGqgUbNaY3Uxc1YNxhxwK25kvIKwn0ST5pUm4PGobfaPZgaEymNbjnNqkD/MsSv6tSY K2IyWE7iygyE3V2RcwVKdwP2/iaUnVU8fsCyM2JGtpSGsRxeeqz5aMXqFNMWIauljWvj6NeALG3Q8 VrogBUeJV9HPUI22hfYwnnE1FwSU8J87Qscb+DruPRrLxeq+9NQgHJbe2ied4RUBNzxHn8/PiA0Cq LSNovKHEfKBGOftOMdm59g==; In-Reply-To: (bug-gnu-emacs@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:290143 Archived-At: > Date: Wed, 14 Aug 2024 13:22:18 +0000 > From: Sigve Indregard via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > I experience the exact same bug, in that the backtrace looks identical. > > Similar to the original reporter, it occurs while completing symbols for Rust, and my setup also involves Corfu. It does not happen on every complete, but usually within 10 minutes of development. > > But some differences are probably important: my setup is with eglot, not lsp-mode, and I do not use Cape. > > Maybe it is relevant that the trace ending with the failing Fget starts with jsonrpc. Is there a way to monitor the exact communication emacs has with the language server? > > * Backtrace (snippet): > > Thread 1 (Thread 0x7ffff2837080 (LWP 150113) "emacs"): > #0 Fget (symbol=0x5555564e3dc0, propname=0x66f0) at /usr/src/debug/emacs/emacs-29.4-wayland/src/lisp.h:1152 > propval = > propval = > #1 Fget (symbol=0x5555564e3dc0, propname=0x66f0) at /usr/src/debug/emacs/emacs-29.4-wayland/src/fns.c:2516 > propval = > #2 0x0000555555681201 in parse_modifiers (symbol=0x5555564e3dc0) at /usr/src/debug/emacs/emacs-29.4-wayland/src/keyboard.c:6897 > elements = > elements = > end = > modifiers = > unmodified = > mask = > #3 parse_modifiers (symbol=0x5555564e3dc0) at /usr/src/debug/emacs/emacs-29.4-wayland/src/keyboard.c:6888 ^^^^^^^^^^^^^^^^^^^^^ Please show what is this symbol. Something like this: (gdb) source /path/to/emacs/src/.gdbinit (gdb) p symbol (gdb) xsymbol Also, what is the value of globals.f_Voverriding_plist_environment?