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

From: Michael Welsh Duggan <[email-masked]>
Date: Tue, 23 Mar 2021 11:53:52 -0400

martin rudalics <[email-masked]> writes:

>  >>    break buffer.c:1840 if redisplaying_p != 0 && b->window_count > 0
>  >
>  > This triggered today.
>
> Could you try running Emacs inserting before the last two lines of
> `switch-to-prev-buffer'
>
>      ;; Return new-buffer.
>      new-buffer))
>
> a check so this stretch appears as
>
>      (when (and (eq bury-or-kill 'kill) (eq new-buffer old-buffer))
>        (error "Could not replace buffer %s in window %s"
>               old-buffer window))
>
>      ;; Return new-buffer.
>      new-buffer))
>
> If `replace-buffer-in-windows' is the culprit, this should trigger the
> bug sooner.
>
> Thanks, martin

Okay.  Running with this.  I still have the other emacs that segfaulted
in gdb if you want/need anything else from it.

-- 
Michael Welsh Duggan
([email-masked])