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#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Fri, 19 Mar 2021 10:19:55 +0200 Message-ID: <83y2ejees4.fsf@gnu.org> References: <87im5ofp3z.fsf@md5i.com> <87czvwfoys.fsf@md5i.com> <83tup8fo1j.fsf@gnu.org> <87wnu4qvfi.fsf@md5i.com> <83sg4sfm1w.fsf@gnu.org> <83pmzwfgng.fsf@gnu.org> <83im5off16.fsf@gnu.org> <83h7l8fdfa.fsf@gnu.org> <871rccgqyz.fsf@igel.home> <83eegcfbrh.fsf@gnu.org> <91a20795-4dc5-0007-42a0-7b9fbb011058@gmx.at> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15309"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mwd@md5i.com, schwab@linux-m68k.org, 47244@debbugs.gnu.org, mwd@cert.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 19 09:21:16 2021 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 1lNANf-0003n3-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Mar 2021 09:21:15 +0100 Original-Received: from localhost ([::1]:56148 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNANe-0003S0-S0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 19 Mar 2021 04:21:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lNANS-0003Rq-St for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 04:21:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lNANS-0007cU-Lf for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 04:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lNANS-0007jW-FX for bug-gnu-emacs@gnu.org; Fri, 19 Mar 2021 04:21:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 19 Mar 2021 08:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47244 X-GNU-PR-Package: emacs Original-Received: via spool by 47244-submit@debbugs.gnu.org id=B47244.161614200329621 (code B ref 47244); Fri, 19 Mar 2021 08:21:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 19 Mar 2021 08:20:03 +0000 Original-Received: from localhost ([127.0.0.1]:48729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNAMV-0007hh-Bc for submit@debbugs.gnu.org; Fri, 19 Mar 2021 04:20:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lNAMT-0007hA-Je for 47244@debbugs.gnu.org; Fri, 19 Mar 2021 04:20:02 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46205) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lNAML-0006t0-76; Fri, 19 Mar 2021 04:19:53 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1420 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lNAMK-0006ls-Fh; Fri, 19 Mar 2021 04:19:53 -0400 In-Reply-To: <91a20795-4dc5-0007-42a0-7b9fbb011058@gmx.at> (message from martin rudalics on Fri, 19 Mar 2021 09:15:07 +0100) 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" Xref: news.gmane.io gmane.emacs.bugs:202668 Archived-At: > Cc: mwd@md5i.com, 47244@debbugs.gnu.org, mwd@cert.org > From: martin rudalics > Date: Fri, 19 Mar 2021 09:15:07 +0100 > > >>> So the selected window's buffer was killed. How is that possible? > >> > >> Perhaps during run_window_change_functions. > > > > Something like that, yes. But I don't understand how that can happen > > technically: kill-buffer selects another buffer when killing the > > current one. So how was that buffer killed, and yet stayed current? > > It's a problem of any hook we run during redisplay: > > (1) Redisplay chooses a window as the selected and its buffer as the > current one. > > (2) Lisp code in a hook deletes that window and/or its buffer. > > (3) Redisplay continues to work on that window and/or its buffer as if > it were still alive. Sorry, I don't understand: when kill-buffer kills the current buffer, it replaces it with another one. Are you saying we have a way of killing buffers that bypasses kill-buffer? if so, can you describe how that can be done? Or what else am I missing?