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 19:22:39 +0300 Message-ID: <86cymb846o.fsf@gnu.org> References: <86mslf8axb.fsf@gnu.org> <86ed6r8535.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1321"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71744@debbugs.gnu.org To: sigve.indregard@pm.me Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 14 18:23:50 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 1seGms-000Adp-1J for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Aug 2024 18:23:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1seGmX-0007kl-Tk; Wed, 14 Aug 2024 12:23:29 -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 1seGmV-0007kb-Ol for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:23:27 -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 1seGmV-0007So-60 for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:23: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=9auiQRlTV3dhmv22jdhNXpa/ObVATrM9injd/aCrfjU=; b=U6jUElfx9UiYtsBGtkWrGiPnCa6iE1SgrKy6YFB8JaXJDarPPWirbIu5PbWlL72cKTyAXs0J8LsciuyE1HGmF8+iIwNTEIw0crdGFuuYle2ZvZ3I9mtR11FnKhNmRX3OiTUP2bm9VSUjOs9ukgpEfXTjj8Ws7dn1rEM46zHTTnWMuq3PnxgRbdz5AwhxKdwrzAps6hs5/aRdSsv6MWCcuiCoEA6g35NE6RMvGh9baiglqsu1yfGS8JA9g6QpUn16jD2FyijWXf4T2IoGRWJ2UX+alTEa9UFFsZrMqKzk7cuBgGMykFx0KnMIXPHG9uOIZbi4gzmBkOYCqqSsXbKolw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1seGn3-0001Uf-RX for bug-gnu-emacs@gnu.org; Wed, 14 Aug 2024 12:24: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 16:24: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.17236526065659 (code B ref 71744); Wed, 14 Aug 2024 16:24:01 +0000 Original-Received: (at 71744) by debbugs.gnu.org; 14 Aug 2024 16:23:26 +0000 Original-Received: from localhost ([127.0.0.1]:47317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seGmT-0001TA-TK for submit@debbugs.gnu.org; Wed, 14 Aug 2024 12:23:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1seGmR-0001Sv-Hh for 71744@debbugs.gnu.org; Wed, 14 Aug 2024 12:23:24 -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 1seGlm-0007RG-NA; Wed, 14 Aug 2024 12:22:42 -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=9auiQRlTV3dhmv22jdhNXpa/ObVATrM9injd/aCrfjU=; b=hBm9Q6HLJsUE HzyhpUaBzaAgA8vBsLInG/szS4QNrff8whjgXED13LNcO5veumAy1GnIG6UlFmfxv6V+3b3ye/QgO QHIq5/vp6wxtLU3/uUyekzyqQ18HCaCBYcSlyYUDiB9bp4Y6jAS40jNbKfh0sNcSfYy9ZVb5aEoZX dksisJGFivePnhAOT/ROoqSYnxokpxK38x0QhTizXDHPKdtW527gC8DxLl0IN8VCFSDhKtrgd2Og9 pFTj0mXKgrDE1iG91gj/Jg0vsD3OGy22ZwFtJYEFSbmnH50nYBrZ1xyIDzw77kLjUVkhXY2HSquvS 4gyL5+3ZlF3Wit6qwkIOdw==; In-Reply-To: <86ed6r8535.fsf@gnu.org> (message from Eli Zaretskii on Wed, 14 Aug 2024 19:03:10 +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:290151 Archived-At: > Cc: 71744@debbugs.gnu.org > Date: Wed, 14 Aug 2024 19:03:10 +0300 > From: Eli Zaretskii > > > Date: Wed, 14 Aug 2024 15:40:34 +0000 > > From: Sigve Indregard > > Cc: 71744@debbugs.gnu.org > > > > (gdb) frame 3 > > #3 parse_modifiers (symbol=XIL(0x5555564e3dc0)) at /usr/src/debug/emacs/emacs-29.4-wayland/src/keyboard.c:6888 > > 6888 parse_modifiers (Lisp_Object symbol) > > (gdb) print symbol > > $11 = XIL(0x5555564e3dc0) > > (gdb) xsymbol > > $12 = (struct Lisp_Symbol *) 0xaaaaac1f1640 > > Cannot access memory at address 0xaaaaac1f1648 Btw, this 0x5555564e3dc0 value is the same as the pointer to old_kbd inside read_char: #7 read_char (commandflag=0, map=0x0, prev_event=0x0, used_mouse_menu=0x0, end_time=0x7fffffffb5b0) at /usr/src/debug/emacs/emacs-29.4-wayland/src/keyboard.c:3018 c = local_getcjmp = {{__jmpbuf = {93825000405056, -5147324661749537557, 1, 4611686019484352512, 5, 0, -5147324661946669845, -1313834696378178325}, __mask_was_saved = 0, __saved_mask = {__val = {0, 93825010269488, 93825104789632, 140737488335792, 18446744073709550936, 11, 93825104789616, 140737488335856, 140737279378894, 140737488335856, 140737488335920, 0, 140737488335920, 0, 93825010269488, 140737488336000}}}} save_jump = {{__jmpbuf = {12048, 140737188459256, 140737488335856, 93825095637120, 16, -7692597586030666240, 48, 1}, __mask_was_saved = 1453957408, __saved_mask = {__val = {140737488335776, 2, 140737488335824, 140737488335760, 140737321006214, 1, 140737321006651, 14319535557742690304, 6, 140737488335696, 140737279373914, 93825000331312, 0, 1, 1, 93823560581122}}}} tem = save = 0x0 previous_echo_area_message = 0x0 also_record = 0x0 reread = false recorded = false polling_stopped_here = false orig_kboard = 0x5555564e3dc0 <<<<<<<<<<<<<<<<<<<<<<< So either the value of orig_kboard here is bogus (perhaps due to optimizations), or somehow the variable C, which is supposed to hold an input event, holds something very different instead, and then it's a small surprise that we crash. Which version of what compiler did you use to build Emacs, and what were the compilation switches?