From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#47244: 28.0.50; SIGSEGV in long-runnning Emacs Date: Tue, 6 Apr 2021 10:10:53 +0200 Message-ID: <58c0bfca-02e6-760f-dcff-05fdc4cca135@gmx.at> References: <87im5ofp3z.fsf@md5i.com> <834kgrifrt.fsf@gnu.org> <106ce987-1a45-bbdf-3897-445baa99a476@gmx.at> <745cb501-d742-8797-d07c-00125f60f8ec@gmx.at> <7a37c708-0ac1-3b06-9042-b4b2b6d6c5d6@gmx.at> <87v990r41n.fsf@md5i.com> <4ad20b14-f4a5-07c0-3f86-698d0934d5af@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19482"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Michael Welsh Duggan , "schwab@linux-m68k.org" , "47244@debbugs.gnu.org" <47244@debbugs.gnu.org> To: Michael Welsh Duggan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 06 10:12:11 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 1lTgok-0004wK-8n for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 10:12:10 +0200 Original-Received: from localhost ([::1]:52552 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTgoi-000440-Ng for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 06 Apr 2021 04:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTgoc-00043r-DU for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 04:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55827) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTgoc-0001rl-5l for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 04:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTgoc-0007Ik-0u for bug-gnu-emacs@gnu.org; Tue, 06 Apr 2021 04:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Apr 2021 08:12:01 +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.161769667228004 (code B ref 47244); Tue, 06 Apr 2021 08:12:01 +0000 Original-Received: (at 47244) by debbugs.gnu.org; 6 Apr 2021 08:11:12 +0000 Original-Received: from localhost ([127.0.0.1]:39140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTgno-0007Hb-5K for submit@debbugs.gnu.org; Tue, 06 Apr 2021 04:11:12 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:46909) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTgnl-0007HJ-Pg for 47244@debbugs.gnu.org; Tue, 06 Apr 2021 04:11:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1617696656; bh=6O8WRJBpuyk83xbEC5qa4//AFmgi8auLKtw15zv0mMU=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=VGXtWfwb3nQnZ/G/zsMNmisJ89ywXAT750zX62KJ+27KIF4DUGgKOSS1lp1JKHgWU ryZARi6C9wnDJO+k20kjybzARXwVwTe+UNxwEMH4etC/4pm6sWgOt727GLGcDinfVk +/PZOlkAMPUnRJWpMbTILvEdJP83RB8eKxrFeJTk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.100] ([46.125.249.81]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MQMyf-1lGodt1deD-00MJiA; Tue, 06 Apr 2021 10:10:56 +0200 In-Reply-To: Content-Language: en-US X-Provags-ID: V03:K1:oSZmex3VKM4hJzL00flSydcCTbSn/Dq8xsiZ9AAxGYbKbA6RunT 9rCULOIOvVWJl0ntyaAIeaa+a4aYKGLT0dM0gE4Y2mJPswAP7eovMDfyUhia5VCO/jNKCOe d6f5g7vGe5upCeB9alioYDZi1INDMahmrNni1/mWlsMMJdpJ8yHIqrzhLLUdYdn+jjVHYr7 1KRE09beuaNr4Lxh8Dkaw== X-UI-Out-Filterresults: notjunk:1;V03:K0:S8kj91ZFfNQ=:B3C3HOcoFNsFQaeM3ukAoo eQg1yjF5uc7dK+O9st6rypH3T9me7/z0KJg0fUarJ63CLOWIGAmtyKVaJ+uN9TDhAsvDGepGf m15HXZOTWG6HL8SxOae6nGqMfgxNICSM+kBRYG0Wqvl6czNo6wMk+xANrR1wusz9LTMtluPY8 dHSbUgDkqs9o1mgiJg26do+BdlqPGQWr9X2YdElaQ/ZJBsC+kBTF9sGg13GCr5rulPUCHk8cv 8slJfx5NHFQUmg0tz3pT533Ak4u9xPedqywvzQH2piJhTgDtvvJ36+UMxw4S5p4NRHzu27ug8 9yYEwd2Tj10IaSyM/1xAASekH8znnn2LnBxBMyJyYJTqKHM/ehN46GeaITUEe2In+ObdiW4UY pLR8C+LulHO9g4GWcom1bPie/1i9WXUvm6WwQlSS3OABy4HQP+pjZRUoYzIXkrfxV+a/v6EFF J07CsWeiTbBkshq0Kx2TfmO3dG2faffylcUJNFFebBwc33ajPuFP0/+GiJkSeD0BRvM9EOAil K+7XT0GY0tIN1H9lMiMHUzmznztxthO1x92IcZ2ZuYkEUD1M8VkI40v2QmAAMCrso4Vr+aGUh pUYnlgrt7xv2vpetNGMo+IBL4dQG1dqRXXG6Q2KT0gH2pmQuh3Men3N/HW4oEuMkoYMT/u01C 7qrWDWTpVDFu7cqXBjGpuXhzT/rc4XzZC8MycmugjQOwAuUKRhNo8vDMOdiAbzTnsO6tp4Tpo jkzUdrxeLwibiabIjEtVRC2uMpUk0ISTW+BGXBniKtSISg3SsXnC5YrUhx57us+/vDBY1eL8 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:203620 Archived-At: > Actually, what I did is use xbuffer, which as part of it outputs the > name_. For example: > > (gdb) p w->contents > $53 = XIL(0x5555578be555) > (gdb) xbuffer > $54 = (struct buffer *) 0x5555578be550 > 0x555557241db0 "build.ninja" > > In this case the name_ field is "build.ninja". The definition of > xbuffer is: OK. But please let me reassess what you said earlier: > There were three > frames that we looped over in the FOR_EACH_FRAME() loop. Of these, only > the first is interesting. In this case window_list_1() in window_loop() > returned three windows. For each window, in the > REPLACE_BUFFER_IN_WINDOWS_SAFELY case branch, EQ (w->contents, obj) > returned false. So if one of these three windows on the first frame shows (showed) "build.ninja" then what do (did) the other two windows show? > As a result, best_window is Qnil at the end, and > replace-buffer_in_windows_safely_count never gets incremented. For the > other two frames the return value of window_list_1() was Qnil. The latter could be another problem but should not concern us for the moment - do these frames get killed in the course? > When window_list_1() gets called with the window that has "*Server*" as > the buffer, window_list() (as called on line 2866) does not return a > list that contains that window. I do not know how Vwindow_list (which > is what is returned by window_list() gets updated. Vwindow_list is a cache of the list of all windows and is (re-)built by window_list when it is nil. It is set to nil (that is, the cache gets invalidated) whenever a window is deleted or created. What is the value of Vwindow_list when window_list_1() gets called with the window that has "*Server*" as the buffer? martin