Subject: Re: bug#47244: 28.0.50; SIGSEGV in long-runnning Emacs

From: martin rudalics <[email-masked]>
Date: Mon, 5 Apr 2021 22:39:34 +0200

> Surprisingly, no.  Three frames were checked.  The only buffers in
 > windows involved in the entire process were:
 >
 > "build.ninja"  - I had that file in another frame
 > " *Minibuf-0*" - Looks like this was in the same frame as build.ninja?
 > "*Server*"     - This was the window whose buffer is being deleted

But *Server* _is_ the buffer that shall be killed IIUC - the obj passed
to window_loop.  I nowhere see that you tried

p XBUFFER (w->contents)->name_

below.  Basically when you encounter the

if (EQ (w->contents, obj))

eventually w->contents should be that buffer.  And apparently
w->contents never is that buffer.  Can you check again?

martin