From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Mon, 29 Mar 2021 12:26:47 -0400 Message-ID: References: <87im5ofp3z.fsf@md5i.com> <87sg4rclim.fsf@md5i.com> <83k0q3dzj7.fsf@gnu.org> <83czvvdw7o.fsf@gnu.org> <14e14f28-7ece-cd98-5e49-d4583a0153a0@gmx.at> <16b279ef-a1c2-cd41-b18c-69383174c72a@gmx.at> <87a6qs7z60.fsf@md5i.com> <83eeg3kawg.fsf@gnu.org> <83y2e6kp9t.fsf@gnu.org> <83tuouknpb.fsf@gnu.org> <83sg4eknh5.fsf@gnu.org> <83r1jykmt0.fsf@gnu.org> <2d0dbdc8-3678-cd21-234a-9c63bb004629@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35541"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "mwd@md5i.com" , "schwab@linux-m68k.org" , "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 18:28:45 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 1lQuku-00096r-7n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 18:28:44 +0200 Original-Received: from localhost ([::1]:42132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQukt-0003o8-AG for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 12:28:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQujH-0002Eh-H4 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:27:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQujH-0002hj-51 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQujH-0003SF-1W for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 12:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2021 16:27: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.161703522213273 (code B ref 47244); Mon, 29 Mar 2021 16:27:02 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 29 Mar 2021 16:27:02 +0000 Original-Received: from localhost ([127.0.0.1]:49426 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQujF-0003Rr-S3 for submit@debbugs.gnu.org; Mon, 29 Mar 2021 12:27:02 -0400 Original-Received: from taper.sei.cmu.edu ([147.72.252.16]:35868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQujC-0003RD-Cs for 47244@debbugs.gnu.org; Mon, 29 Mar 2021 12:26:59 -0400 Original-Received: from korb.sei.cmu.edu (korb.sei.cmu.edu [10.64.21.30]) by taper.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 12TGQqN4015011; Mon, 29 Mar 2021 12:26:52 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu 12TGQqN4015011 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1617035212; bh=Lx3uUkSnqlkVnjR2ZHZZJp3j32ar0zL7msJ6zWyfP40=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=IGgxaGZYQ4j26JFFdoXqOUJTC03a/66LzBtqL10jzdRUQ7/h0YuRrm0xFrOOUdG1R V3Lz/fKsvPyb+FBKU0ewclKKttdW79zWNGpq7TADQkYoUSLC/ZsJb4ip/L6K5Z0gVu p+9Ab8GmiN2dhhS0uloHJ/H7IiUjx+J09mrsMhnU= Original-Received: from lx-birch.ad.sei.cmu.edu (lx-birch.ad.sei.cmu.edu [10.64.53.120]) by korb.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 12TGQlmY031614; Mon, 29 Mar 2021 12:26:47 -0400 Original-Received: from lx-birch.ad.sei.cmu.edu (localhost [127.0.0.1]) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id 12TGQlYA023753; Mon, 29 Mar 2021 12:26:47 -0400 Original-Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id 12TGQlV9023750; Mon, 29 Mar 2021 12:26:47 -0400 X-Authentication-Warning: lx-birch.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f In-Reply-To: <2d0dbdc8-3678-cd21-234a-9c63bb004629@gmx.at> (martin rudalics's message of "Mon, 29 Mar 2021 12:05:35 -0400") 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:203258 Archived-At: martin rudalics writes: > > Martin, could it be that replace-buffer-in-windows fails to replace a > > buffer? Suppose kill-buffer is called to kill a buffer that is shown > > in the selected window, but replace-buffer-in-windows fails to replace > > it -- can that happen? > > That's what we tried earlier with the check in `switch-to-prev-buffer'. > Michael did you run with that check this time or did you remove it? If > the latter, please reinsert it for the next time. But let's recall that > at the time of the last segfault that particular check did not trigger. I had removed it, sorry. I'll put it in for the next time. > > And another question: can a window be selected if its buffer is dead? > > Or is it possible to set a dead buffer as a window's buffer? > > From what we can say now one of these must have happened. The dead > buffer comes from the selected window. It does not come from the > attempt to restore the current buffer from a temporarily saved one. > > One thing I'm not even sure about is whether the selected window is > still "live" when were trying to make its buffer current. Michael is > this "window" supposed to be the only one on its frame? Are we sure > that it is not the minibuffer window? In either case we could try to > investigate its parent and geometry: What do I think so. Both the *Server* window and the *Group* window will, under normal circumstances, be the only window on the frame. > p XWINDOW (selected_window)->parent > p XWINDOW (selected_window)->prev > p XWINDOW (selected_window)->next > p XWINDOW (selected_window)->top_line > p XWINDOW (selected_window)->pixel_height > > print? (gdb) p XWINDOW (selected_window)->parent $15 = XIL(0) (gdb) p XWINDOW (selected_window)->prev $16 = XIL(0) (gdb) p XWINDOW (selected_window)->next $17 = XIL(0x555556e96635) (gdb) p XWINDOW (selected_window)->top_line $18 = 0 (gdb) p XWINDOW (selected_window)->pixel_height $19 = 995 -- Michael Welsh Duggan (mwd@cert.org)