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: Sun, 13 Jul 2014 19:54:15 +0400

On 07/13/2014 07:04 PM, Eli Zaretskii wrote:

> Does it help to avoid calling update_menu_bar for frames that don't
> pass the FRAME_LIVE_P test?

If you mean just this:

=== modified file 'src/xdisp.c'
--- src/xdisp.c	2014-07-12 17:53:29 +0000
+++ src/xdisp.c	2014-07-13 15:32:01 +0000
@@ -11698,7 +11698,8 @@
  	    }

  	  GCPRO1 (tail);
-	  menu_bar_hooks_run = update_menu_bar (f, 0, menu_bar_hooks_run);
+	  if (FRAME_LIVE_P (f))
+	    menu_bar_hooks_run = update_menu_bar (f, 0, menu_bar_hooks_run);
  #ifdef HAVE_WINDOW_SYSTEM
  	  update_tool_bar (f, 0);
  #endif

then no, at least for Ken's test case.

Dmitry