Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly

From: martin rudalics <[email-masked]>
Date: Sun, 03 Sep 2017 12:15:30 +0200

> To replicate:
 >
 > Compile the latest GNU 24.5.1 source tarball using:
 >
 > CFLAGS='-O0 -g3' ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type --with-x-toolkit=lucid
 > make
 > cd src/
 > gdb ./emacs
 >   (gdb) run -Q -nw -f server-start
 >
 > In a separate terminal:
 >
 > x=0; while emacsclient -c; do x=$(( $x + 1 )); done; echo "Created $x windows before crash."
 >
 > Close each Emacs client window after it appears. Eventually (it seems to average about 5 tries) Emacs will hang with a partially-drawn window. No interaction with the UI is possible. At that point in another terminal I execute:

I checked in a fix for this in current master which should eventually
become Emacs 26.1.  Could you try it?

Thanks, martin