Subject: bug#3145: 23.0.92; detaching GTK+ tool bar crashes emacs --daemon

From: Chong Yidong <[email-masked]>
Date: Wed, 29 Apr 2009 21:05:29 -0400

Stephen Berman <[email-masked]> wrote:

> Carrying out the following steps reliably crashes Emacs:
>
> 1. emacs -Q --daemon
> 2. emacsclient -c
> 3. Detach the tool bar (only possible with GTK+ build).
> 4. Close the client frame with C-x 5 0
> 5. emacsclient -c
> 6. Detach the tool bar
> => SIGSEGV

Actually, daemon mode is not needed.  You can also do this:

1. emacs -Q -nw
2. M-x make-frame-on-display RET :0.0 RET
3. Detach the tool bar
4. Close the client frame with C-x 5 0
5. M-x make-frame-on-display RET :0.0 RET
6. Detach the tool bar
=> SIGSEGV

Jan, could you try to debug this?  It may be another manifestation of
the problems we've been having with GTK and closing X connections.