unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: pipcet@protonmail.com, 71744@debbugs.gnu.org, sigve.indregard@pm.me
Subject: bug#71744: 29.4; SIGSEGV during completion-at-point in lsp-mode with corfu and cape
Date: Sat, 17 Aug 2024 09:14:56 +0300	[thread overview]
Message-ID: <865xrz65gf.fsf@gnu.org> (raw)
In-Reply-To: <ea999bf1-670d-4f6e-9fbe-f7eee951f2d9@cs.ucla.edu> (message from Paul Eggert on Fri, 16 Aug 2024 21:37:29 -0700)

> Date: Fri, 16 Aug 2024 21:37:29 -0700
> Cc: sigve.indregard@pm.me, 71744@debbugs.gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
> 
> > Paul, do you agree that we should simply mark 'c' as volatile, or do you
> > think this needs further investigation on the GCC side (because of the
> > lack of a -Wclobbered warning being issued, or because of the weird
> > code)?
> 
> We definitely should mark 'c' as volatile, or do something equivalent, 
> because the Emacs code violates the C standard.
> 
> Also, if my hypothesis of the mistaken identifier is correct, we should 
> stop ignoring -Wclobbered, and instead pacify GCC without using 
> -Wclobbered. That way, when we screw up in setjmp related code, we'll 
> get *some* warning that *something* is being clobbered, and can investigate.
> 
> To do that, I installed the attached patches into the Emacs master 
> branch. While looking into this I noticed several uses of clobbered 
> variables (i.e., violations of the C standard) and fixed them. Patches 
> 0001-0004 fix these similar bugs elsewhere. Patch 0005 implements your 
> suggestion and should fix Bug#71744. Patch 0006 is a minor performance 
> improvement over Patch 0005.
> 
> Please give these patches a try. Patch 0005 is simple and if it works 
> for the original bug reporter we should be able to close the bug report 
> as fixed.

Thanks, but since the original bug exists on the emacs-30 release
branch and causes crashes, we need to install some part of these
patches on the emacs-30 branch.  Can you please suggest for the
release branch some safe subset of this, which targets the known issue
in read_char?  Is it Patch #5 without removing the -Wclobbered
diagnostic?  Or is it something else?





  reply	other threads:[~2024-08-17  6:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-23 21:16 bug#71744: 29.4; SIGSEGV during completion-at-point in lsp-mode with corfu and cape Matthew Rothlisberger
2024-06-24 12:28 ` Eli Zaretskii
2024-06-26 23:27   ` Matthew Rothlisberger
2024-06-27 10:05     ` Eli Zaretskii
2024-08-14 13:22 ` Sigve Indregard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-14 13:57   ` Eli Zaretskii
2024-08-14 15:40     ` Sigve Indregard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-14 16:03       ` Eli Zaretskii
2024-08-14 16:22         ` Eli Zaretskii
2024-08-14 16:37           ` Sigve Indregard via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-14 17:03           ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-15  9:07           ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-16 15:08             ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17  4:37               ` Paul Eggert
2024-08-17  6:14                 ` Eli Zaretskii [this message]
2024-08-17 18:23                   ` Paul Eggert
2024-08-17  7:46                 ` Pip Cet via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-17 18:27                   ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=865xrz65gf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=71744@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=pipcet@protonmail.com \
    --cc=sigve.indregard@pm.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).