Subject: Re: bug#11081: 24.0.94; "emacsclient --create-frame" occasionally crashes daemon or causes daemon to hang

From: Eli Zaretskii <[email-masked]>
Date: Sat, 31 Mar 2012 21:00:45 +0300

> From: Jan Djärv <[email-masked]>
> Date: Sat, 31 Mar 2012 19:16:55 +0200
> Cc: [email-masked]
> 
> The crash happens because of the abort in the SELECTED_FRAME macro:
> 
> #define SELECTED_FRAME()				\
>      ((FRAMEP (selected_frame)				\
>        && FRAME_LIVE_P (XFRAME (selected_frame)))	\
>       ? XFRAME (selected_frame)				\
>       : (abort (), (struct frame *) 0))
> 
> FRAME_LIVE_P return false.  There is some timing issue here, but I dont easily see it yet.  Anybody got a clue?

You are saying that the selected frame was already deleted when the
code in update_tool_bar gets to its last lines, is that it?