Subject: Re: bug#17975: 24.3.92; assertion failure deleting frames with varying names for the same display (and, using multiple X11 connections in that case too)

From: Dmitry Antipov <[email-masked]>
Date: Fri, 11 Sep 2020 13:11:45 +0300

On 9/9/20 2:28 PM, Lars Ingebrigtsen wrote:

> I tried this with Emacs 28 now (on Debian bullseye), and valgrind did
> not output this warning.  (This is with a lucid build.)  However,
> looking at the x11 bug tracker, there doesn't seem to have been any
> progress there:
> 
>    https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/36
> 
> So are you still seeing this problem?

No. But, to whom it may be interesting, running the following code:
  
(dotimes (n 10000)
   (let ((x (make-frame-on-display ":1.0"))
         (y (make-frame-on-display ":1.0")))
     (delete-frame x)
     (delete-frame y)))

with Xnest (which is ":1.0") successfully raises Emacs' RSS from
~30M to ~120M.

Dmitry