Subject: bug#38748: 28.0.50; crash on MacOS 10.15.2

From: Pip Cet <[email-masked]>
Date: Thu, 9 Jan 2020 14:16:54 +0000

On Thu, Jan 9, 2020 at 1:51 PM Andrii Kolomoiets <[email-masked]> wrote:
> Here is the '~/emacs-crash.el' content:
> (make-frame `((parent-frame . ,(window-frame))))
> (make-frame `((parent-frame . ,(window-frame))))
> (make-frame `((parent-frame . ,(window-frame))))
> (make-frame `((parent-frame . ,(window-frame))))
> (delete-frame)
> (delete-frame)
> (delete-frame)
> (delete-frame)
> (garbage-collect)

That sounds like Robert's bug, but not like the one that's related to
the "x = false" thing.

Can you try the attached patch?
diff --git a/src/nsterm.m b/src/nsterm.m
index 03754e5ae5..c1d1d41117 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -1644,6 +1644,7 @@ Hide the window (X11 semantics)
   [view release];
 
   xfree (f->output_data.ns);
+  f->output_data.ns = NULL;
 
   unblock_input ();
 }