From debbugs-submit-bounces@debbugs.gnu.org Mon May 09 17:32:19 2016 Received: (at submit) by debbugs.gnu.org; 9 May 2016 21:32:19 +0000 Received: from localhost ([127.0.0.1]:44784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azsmm-0005Hb-Tx for submit@debbugs.gnu.org; Mon, 09 May 2016 17:32:19 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43907) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azrrX-0003ss-NB for submit@debbugs.gnu.org; Mon, 09 May 2016 16:33:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azrrK-0004OC-UF for submit@debbugs.gnu.org; Mon, 09 May 2016 16:33:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azrrK-0004Nu-RY for submit@debbugs.gnu.org; Mon, 09 May 2016 16:32:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34698) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azrrC-0002wv-Vn for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 16:32:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azrr4-0004HN-U5 for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 16:32:46 -0400 Received: from pm1.irt.drexel.edu ([144.118.29.81]:46310 helo=smtp.mail.drexel.edu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azrr2-0004FF-GS for bug-gnu-emacs@gnu.org; Mon, 09 May 2016 16:32:38 -0400 Received: from esa5000-a.irt.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 17F1E5C86E6 for ; Mon, 9 May 2016 16:32:32 -0400 (EDT) Received: from esa5000-a.irt.drexel.edu (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 012F624A8805_730F3E0B for ; Mon, 9 May 2016 20:32:32 +0000 (GMT) Received: from smtp.mail.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by esa5000-a.irt.drexel.edu (Sophos Email Appliance) with ESMTP id C1D5F24A87FC_730F3DFF for ; Mon, 9 May 2016 20:32:31 +0000 (GMT) Received: from smtp.mail.drexel.edu (localhost.localdomain [127.0.0.1]) by smtp.mail.drexel.edu (Postfix) with SMTP id A8E2A5C8978 for ; Mon, 9 May 2016 16:32:31 -0400 (EDT) X-No-SMTP-Auth: unauthenticated sender Received: from drexel.edu (parula.irt.drexel.edu [144.118.29.36]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 744FA5C87ED for ; Mon, 9 May 2016 16:32:31 -0400 (EDT) Received: from [144.118.29.36] (Forwarded-For: 98.114.23.45) by parula.irt.drexel.edu (mshttpd); Mon, 09 May 2016 16:32:31 -0400 From: "Robert Lange" To: bug-gnu-emacs@gnu.org Message-ID: Date: Mon, 09 May 2016 16:32:31 -0400 X-Mailer: Oracle Communications Messenger Express 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011) MIME-Version: 1.0 Content-Language: en Subject: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly X-Accept-Language: en Priority: normal In-Reply-To: References: Content-Type: multipart/alternative; boundary="--f92a72e6261756d405231" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 09 May 2016 17:32:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This is a multi-part message in MIME format. ----f92a72e6261756d405231 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable As stated in the title=2C I have been trying to use Emacs in daemon mode= =2C however after a number of invocations of =60emacsclient -c=60 the em= acs daemon process hangs (not crashes) and I have to manually kill it=2E= I use Emacs (Lucid toolkit) on Debian Jessie at home and Ubuntu 14=2E04 = at work=2E I experience the problem on both distributions using the dist= ribution packages=2E I have compiled and debugged against the latest unm= odified tarball of Emacs from GNU just to ensure that there were no dist= ribution-specific patches causing the problem=2E My problem is very similar to emacs bug =235802=2C except that bug was =22= fixed=22 by switching to use Emacs compiled with the Lucid toolkit=2C wh= ereas my bug is still present even in Lucid=2E To replicate=3A Compile the latest GNU 24=2E5=2E1 source tarball using=3A CFLAGS=3D=27-O0 -g3=27 =2E/configure --enable-checking=3D=27yes=2Cglyphs= =27 --enable-check-lisp-object-type --with-x-toolkit=3Dlucid make cd src/ gdb =2E/emacs (gdb) run -Q -nw -f server-start In a separate terminal=3A x=3D0=3B while emacsclient -c=3B do x=3D=24(( =24x + 1 ))=3B done=3B ech= o =22Created =24x windows before crash=2E=22 Close each Emacs client window after it appears=2E Eventually (it seems = to average about 5 tries) Emacs will hang with a partially-drawn window=2E= No interaction with the UI is possible=2E At that point in another term= inal I execute=3A ps -ef =7C grep emacs kill -TSTP =3Cemacs pid=3E Returning to the original terminal containing GDB=2C I now execute=3A bt And get this output=3A ----- =230 require=5Fsocket (dpy=3D0xf98ba0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec= =3A60 =231 0x00007ffff5fb8b0e in poll=5Ffor=5Fevent (dpy=3Ddpy=40entry=3D0xf98= ba0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A251 =232 0x00007ffff5fb8cfc in poll=5Ffor=5Fresponse (dpy=3Ddpy=40entry=3D0x= f98ba0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A289 =233 0x00007ffff5fb9147 in =5FXReadEvents (dpy=3Ddpy=40entry=3D0xf98ba0)= at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A424 =234 0x00007ffff5fa1751 in XIfEvent (dpy=3D0xf98ba0=2C event=3Devent=40e= ntry=3D0x7fffffff83f0=2C predicate=3Dpredicate=40entry=3D0x7ffff5fe7790 = =3C=5FCheckCMEvent=3E=2C arg=3Darg=40entry=3D0xf50340 =22=5C200=5C365*=5C= 366=5C377=5C177=22) at =2E=2E/=2E=2E/src/IfEvent=2Ec=3A68 =235 0x00007ffff5fe7f24 in =5FXimXRead (im=3D0xf50340=2C recv=5Fbuf=3D0x= 7fffffff8dd0 =22=22=2C buf=5Flen=3D2048=2C ret=5Flen=3D0x7fffffff851c) a= t =2E=2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imTrX=2Ec=3A476 =236 0x00007ffff5fe8b80 in =5FXimReadData (im=3Dim=40entry=3D0xf50340=2C= len=3Dlen=40entry=3D0x7fffffff857e=2C buf=3Dbuf=40entry=3D0x7fffffff8dd= 0 =22=22=2C buf=5Fsize=3Dbuf=5Fsize=40entry=3D2048) at =2E=2E/=2E=2E/=2E= =2E/=2E=2E/modules/im/ximcp/imTransR=2Ec=3A165 =237 0x00007ffff5fe8e71 in =5FXimRead (im=3Dim=40entry=3D0xf50340=2C len= =3Dlen=40entry=3D0x7fffffff85ce=2C buf=3Dbuf=40entry=3D0x7fffffff8dd0 =22= =22=2C buf=5Fsize=3Dbuf=5Fsize=40entry=3D2048=2C = predicate=3Dpredicate=40entry=3D0x7ffff5fd6c80 =3C=5FXimDestroyICCheck=3E= =2C arg=3Darg=40entry=3D0x161a370 =22 =5C365*=5C366=5C377=5C177=22) at =2E= =2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imTransR=2Ec=3A235 =238 0x00007ffff5fd70e8 in =5FXimProtoDestroyIC (xic=3D0x161a370) at =2E= =2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imDefIc=2Ec=3A914 =239 0x00007ffff5fc58d2 in XDestroyIC (ic=3D0x161a370) at =2E=2E/=2E=2E/= =2E=2E/src/xlibi18n/ICWrap=2Ec=3A265 =2310 0x000000000054c6d6 in free=5Fframe=5Fxic (f=3D0x139e798) at xfns=2E= c=3A2087 =2311 0x00000000005455c5 in x=5Ffree=5Fframe=5Fresources (f=3D0x139e798)= at xterm=2Ec=3A9275 =2312 0x0000000000545c11 in x=5Fdestroy=5Fwindow (f=3D0x139e798) at xter= m=2Ec=3A9383 =2313 0x000000000042826b in delete=5Fframe (frame=3D=2E=2E=2E=2C force=3D= =2E=2E=2E) at frame=2Ec=3A1387 =2314 0x0000000000541ff3 in x=5Fconnection=5Fclosed (dpy=3D0xf98ba0=2C e= rror=5Fmessage=3D0x7fffffff9940 =22X protocol error=3A BadPixmap (invali= d Pixmap parameter) on protocol request 55=22) at xterm=2Ec=3A7635 =2315 0x00000000005422b7 in x=5Ferror=5Fquitter (display=3D0xf98ba0=2C e= vent=3D0x7fffffff9af0) at xterm=2Ec=3A7747 =2316 0x0000000000542209 in x=5Ferror=5Fhandler (display=3D0xf98ba0=2C e= vent=3D0x7fffffff9af0) at xterm=2Ec=3A7717 =2317 0x00007ffff5fbb54b in =5FXError (dpy=3Ddpy=40entry=3D0xf98ba0=2C r= ep=3Drep=40entry=3D0xf76d70) at =2E=2E/=2E=2E/src/XlibInt=2Ec=3A1463 =2318 0x00007ffff5fb85e7 in handle=5Ferror (dpy=3D0xf98ba0=2C err=3D0xf7= 6d70=2C in=5FXReply=3D=3Coptimized out=3E) at =2E=2E/=2E=2E/src/xcb=5Fio= =2Ec=3A213 =2319 0x00007ffff5fb8695 in handle=5Fresponse (dpy=3Ddpy=40entry=3D0xf98= ba0=2C response=3D0xf76d70=2C in=5FXReply=3Din=5FXReply=40entry=3D1) at = =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A325 =2320 0x00007ffff5fb9578 in =5FXReply (dpy=3Ddpy=40entry=3D0xf98ba0=2C r= ep=3Drep=40entry=3D0x7fffffff9cb0=2C extra=3Dextra=40entry=3D0=2C discar= d=3Ddiscard=40entry=3D0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A627 =2321 0x00007ffff5faf4cf in XQueryColor (dpy=3D0xf98ba0=2C cmap=3D32=2C = def=3D0x7fffffff9d10) at =2E=2E/=2E=2E/src/QuColor=2Ec=3A49 =2322 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /usr/lib/x8= 6=5F64-linux-gnu/libXaw3d=2Eso=2E6 =2323 0x00007ffff6b8c600 in =3F=3F () from /usr/lib/x86=5F64-linux-gnu/l= ibXaw3d=2Eso=2E6 =2324 0x00007ffff6b8ca6a in =3F=3F () from /usr/lib/x86=5F64-linux-gnu/l= ibXaw3d=2Eso=2E6 =2325 0x00007ffff66f1afc in CallInitialize (class=3D0x7ffff6dae960 =3Cth= reeDClassRec=3E=2C req=5Fwidget=3Dreq=5Fwidget=40entry=3D0x7fffffff9f20=2C= new=5Fwidget=3Dnew=5Fwidget=40entry=3D0x1604c60=2C args=3Dargs=40entry=3D= 0x7fffffffa3f0=2C = num=5Fargs=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A226 =2326 0x00007ffff66f1ac6 in CallInitialize (class=3D0x7ffff6dac1c0 =3Csc= rollbarClassRec=3E=2C req=5Fwidget=3Dreq=5Fwidget=40entry=3D0x7fffffff9f= 20=2C new=5Fwidget=3Dnew=5Fwidget=40entry=3D0x1604c60=2C args=3Dargs=40e= ntry=3D0x7fffffffa3f0=2C = num=5Fargs=3Dnum=5Fargs=40entry=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A= 221 =2327 0x00007ffff66f2427 in xtCreate (name=3Dname=40entry=3D0x703028 =22= verticalScrollBar=22=2C class=3Dclass=40entry=3D0x0=2C widget=5Fclass=3D= widget=5Fclass=40entry=3D0x7ffff6dac1c0 =3CscrollbarClassRec=3E=2C paren= t=3Dparent=40entry=3D0x10506b0=2C = default=5Fscreen=3D0xfad8e0=2C args=3Dargs=40entry=3D0x7fffffffa3f0=2C = num=5Fargs=3Dnum=5Fargs=40entry=3D3=2C typed=5Fargs=3Dtyped=5Fargs=40ent= ry=3D0x0=2C num=5Ftyped=5Fargs=3Dnum=5Ftyped=5Fargs=40entry=3D0=2C paren= t=5Fconstraint=5Fclass=3D0x0=2C = post=5Fproc=3Dpost=5Fproc=40entry=3D0x7ffff66f1b40 =3CwidgetPostProc=3E= ) at =2E=2E/=2E=2E/src/Create=2Ec=3A416 =2328 0x00007ffff66f2840 in =5FXtCreateWidget (name=3Dname=40entry=3D0x7= 03028 =22verticalScrollBar=22=2C widget=5Fclass=3Dwidget=5Fclass=40entry= =3D0x7ffff6dac1c0 =3CscrollbarClassRec=3E=2C parent=3Dparent=40entry=3D0= x10506b0=2C = args=3Dargs=40entry=3D0x7fffffffa3f0=2C num=5Fargs=3Dnum=5Fargs=40entry= =3D3=2C typed=5Fargs=3Dtyped=5Fargs=40entry=3D0x0=2C num=5Ftyped=5Fargs=3D= num=5Ftyped=5Fargs=40entry=3D0) at =2E=2E/=2E=2E/src/Create=2Ec=3A570 =2329 0x00007ffff66f2b0e in XtCreateWidget (name=3D0x703028 =22verticalS= crollBar=22=2C widget=5Fclass=3D0x7ffff6dac1c0 =3CscrollbarClassRec=3E=2C= parent=3D0x10506b0=2C args=3D0x7fffffffa3f0=2C num=5Fargs=3D3) at =2E=2E= /=2E=2E/src/Create=2Ec=3A589 =2330 0x000000000053c417 in x=5Fcreate=5Ftoolkit=5Fscroll=5Fbar (f=3D0x1= 39e798=2C bar=3D0xfa2560) at xterm=2Ec=3A4768 =2331 0x000000000053c937 in x=5Fscroll=5Fbar=5Fcreate (w=3D0x139f810=2C = top=3D686=2C left=3D1=2C width=3D16=2C height=3D19) at xterm=2Ec=3A4960 =2332 0x000000000053d167 in XTset=5Fvertical=5Fscroll=5Fbar (w=3D0x139f8= 10=2C portion=3D0=2C whole=3D0=2C position=3D0) at xterm=2Ec=3A5205 =2333 0x000000000046b064 in set=5Fvertical=5Fscroll=5Fbar (w=3D0x139f810= ) at xdisp=2Ec=3A15905 =2334 0x000000000046fcfa in redisplay=5Fwindow (window=3D=2E=2E=2E=2C ju= st=5Fthis=5Fone=5Fp=3Dfalse) at xdisp=2Ec=3A16947 =2335 0x00000000004644f2 in redisplay=5Fwindow=5F0 (window=3D=2E=2E=2E) = at xdisp=2Ec=3A14373 =2336 0x00000000006173df in internal=5Fcondition=5Fcase=5F1 (bfun=3D0x46= 44b0 =3Credisplay=5Fwindow=5F0=3E=2C arg=3D=2E=2E=2E=2C handlers=3D=2E=2E= =2E=2C hfun=3D0x46447f =3Credisplay=5Fwindow=5Ferror=3E) at eval=2Ec=3A1= 372 =2337 0x000000000046445d in redisplay=5Fwindows (window=3D=2E=2E=2E) at = xdisp=2Ec=3A14353 =2338 0x0000000000463204 in redisplay=5Finternal () at xdisp=2Ec=3A13949= =2339 0x0000000000463db4 in redisplay=5Fpreserve=5Fecho=5Farea (from=5Fw= here=3D12) at xdisp=2Ec=3A14206 =2340 0x0000000000674157 in wait=5Freading=5Fprocess=5Foutput (time=5Fli= mit=3D30=2C nsecs=3D0=2C read=5Fkbd=3D-1=2C do=5Fdisplay=3Dtrue=2C wait=5F= for=5Fcell=3D=2E=2E=2E=2C wait=5Fproc=3D0x0=2C just=5Fwait=5Fproc=3D0) a= t process=2Ec=3A4821 =2341 0x0000000000422d0c in sit=5Ffor (timeout=3D=2E=2E=2E=2C reading=3D= true=2C display=5Foption=3D1) at dispnew=2Ec=3A5867 =2342 0x0000000000576bff in read=5Fchar (commandflag=3D1=2C map=3D=2E=2E= =2E=2C prev=5Fevent=3D=2E=2E=2E=2C used=5Fmouse=5Fmenu=3D0x7fffffffd7f5=2C= end=5Ftime=3D0x0) at keyboard=2Ec=3A2810 =2343 0x00000000005858f4 in read=5Fkey=5Fsequence (keybuf=3D0x7fffffffda= 20=2C bufsize=3D30=2C prompt=3D=2E=2E=2E=2C dont=5Fdowncase=5Flast=3Dfal= se=2C can=5Freturn=5Fswitch=5Fframe=3Dtrue=2C fix=5Fcurrent=5Fbuffer=3Dt= rue=2C prevent=5Fredisplay=3Dfalse) at keyboard=2Ec=3A9089 =2344 0x0000000000573161 in command=5Floop=5F1 () at keyboard=2Ec=3A1453= =2345 0x000000000061726e in internal=5Fcondition=5Fcase (bfun=3D0x572d8a= =3Ccommand=5Floop=5F1=3E=2C handlers=3D=2E=2E=2E=2C hfun=3D0x57253d =3C= cmd=5Ferror=3E) at eval=2Ec=3A1348 =2346 0x0000000000572a28 in command=5Floop=5F2 (ignore=3D=2E=2E=2E) at k= eyboard=2Ec=3A1178 =2347 0x00000000006166f1 in internal=5Fcatch (tag=3D=2E=2E=2E=2C func=3D= 0x572a05 =3Ccommand=5Floop=5F2=3E=2C arg=3D=2E=2E=2E) at eval=2Ec=3A1112= =2348 0x00000000005729dc in command=5Floop () at keyboard=2Ec=3A1157 =2349 0x0000000000572069 in recursive=5Fedit=5F1 () at keyboard=2Ec=3A77= 8 =2350 0x0000000000572239 in Frecursive=5Fedit () at keyboard=2Ec=3A849 =2351 0x000000000057017b in main (argc=3D5=2C argv=3D0x7fffffffdde8) at = emacs=2Ec=3A1642 Lisp Backtrace=3A =22redisplay=5Finternal (C function)=22 (0xd553f0) ----- In GNU Emacs 24=2E5=2E1 (x86=5F64-unknown-linux-gnu=2C X toolkit=2C Xaw3= d scroll bars) =A0of 2016-05-09 on vistar-rlange Windowing system distributor =60The X=2EOrg Foundation=27=2C version 11=2E= 0=2E11702000 System Description=3A Ubuntu 14=2E04=2E4 LTS Configured using=3A =A0=60configure --enable-checking=3Dyes=2Cglyphs --enable-check-lisp-obj= ect-type =A0--with-x-toolkit=3Dlucid =27CFLAGS=3D-O0 -g3=27=27 Important settings=3A value of =24LC=5FCOLLATE=3A C value of =24LC=5FTIME=3A en=5FDK=2EUTF-8 value of =24LANG=3A en=5FUS=2EUTF-8 value of =24XMODIFIERS=3A =40im=3Dibus locale-coding-system=3A utf-8-unix Major mode=3A Lisp Interaction Minor modes in effect=3A tooltip-mode=3A t electric-indent-mode=3A t mouse-wheel-mode=3A t tool-bar-mode=3A t menu-bar-mode=3A t file-name-shadow-mode=3A t global-font-lock-mode=3A t font-lock-mode=3A t blink-cursor-mode=3A t auto-composition-mode=3A t auto-encryption-mode=3A t auto-compression-mode=3A t line-number-mode=3A t transient-mark-mode=3A t Recent messages=3A For information about GNU Emacs and the GNU system=2C type C-h C-a=2E Making completion list=2E=2E=2E Load-path shadows=3A None found=2E Features=3A (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml= mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd= tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham= georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs) Memory information=3A ((conses 16 73075 4517) =A0(symbols 48 17654 0) =A0(miscs 40 41 114) =A0(strings 32 9912 3852) =A0(string-bytes 1 266512) =A0(vectors 16 9616) =A0(vector-slots 8 388153 15866) =A0(floats 8 68 135) =A0(intervals 56 205 4) =A0(buffers 960 12) =A0(heap 1024 18602 895)) ----f92a72e6261756d405231 Content-Type: text/html; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable As stated in the title=2C I have been trying to use Emacs in daemon mode= =2C however after a number of invocations of =60emacsclient -c=60 the em= acs daemon process hangs (not crashes) and I have to manually kill it=2E= =3Cbr /=3E=3Cbr /=3EI use Emacs (Lucid toolkit) on Debian Jessie at home= and Ubuntu 14=2E04 at work=2E I experience the problem on both distribu= tions using the distribution packages=2E I have compiled and debugged ag= ainst the latest unmodified tarball of Emacs from GNU just to ensure tha= t there were no distribution-specific patches causing the problem=2E=3Cb= r /=3E=3Cbr /=3EMy problem is very similar to emacs bug =235802=2C excep= t that bug was =26quot=3Bfixed=26quot=3B by switching to use Emacs compi= led with the Lucid toolkit=2C whereas my bug is still present even in Lu= cid=2E=3Cbr /=3E=3Cbr /=3ETo replicate=3A=3Cbr /=3E=3Cbr /=3ECompile the= latest GNU 24=2E5=2E1 source tarball using=3A=3Cbr /=3E=3Cbr /=3ECFLAGS= =3D=27-O0 -g3=27 =2E/configure --enable-checking=3D=27yes=2Cglyphs=27 --= enable-check-lisp-object-type --with-x-toolkit=3Dlucid=3Cbr /=3Emake=3Cb= r /=3Ecd src/=3Cbr /=3Egdb =2E/emacs=3Cbr /=3E=A0 (gdb) run -Q -nw -f se= rver-start=3Cbr /=3E=3Cbr /=3EIn a separate terminal=3A=3Cbr /=3E=3Cbr /= =3Ex=3D0=3B while emacsclient -c=3B do x=3D=24(( =24x + 1 ))=3B done=3B = echo =26quot=3BCreated =24x windows before crash=2E=26quot=3B=3Cbr /=3E=3C= br /=3EClose each Emacs client window after it appears=2E Eventually (it= seems to average about 5 tries) Emacs will hang with a partially-drawn = window=2E No interaction with the UI is possible=2E At that point in ano= ther terminal I execute=3A=3Cbr /=3E=3Cbr /=3Eps -ef =7C grep emacs=3Cbr= /=3Ekill -TSTP =26lt=3Bemacs pid=26gt=3B=3Cbr /=3E=3Cbr /=3EReturning t= o the original terminal containing GDB=2C I now execute=3A=3Cbr /=3E=3Cb= r /=3Ebt=3Cbr /=3E=3Cbr /=3EAnd get this output=3A=3Cbr /=3E=3Cbr /=3E--= ---=3Cbr /=3E=3Cbr /=3E=230=A0 require=5Fsocket (dpy=3D0xf98ba0) at =2E=2E= /=2E=2E/src/xcb=5Fio=2Ec=3A60=3Cbr /=3E=231=A0 0x00007ffff5fb8b0e in pol= l=5Ffor=5Fevent (dpy=3Ddpy=40entry=3D0xf98ba0) at =2E=2E/=2E=2E/src/xcb=5F= io=2Ec=3A251=3Cbr /=3E=232=A0 0x00007ffff5fb8cfc in poll=5Ffor=5Frespons= e (dpy=3Ddpy=40entry=3D0xf98ba0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A289= =3Cbr /=3E=233=A0 0x00007ffff5fb9147 in =5FXReadEvents (dpy=3Ddpy=40entr= y=3D0xf98ba0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A424=3Cbr /=3E=234=A0 0= x00007ffff5fa1751 in XIfEvent (dpy=3D0xf98ba0=2C event=3Devent=40entry=3D= 0x7fffffff83f0=2C predicate=3Dpredicate=40entry=3D0x7ffff5fe7790 =26lt=3B= =5FCheckCMEvent=26gt=3B=2C arg=3Darg=40entry=3D0xf50340 =26quot=3B=5C200= =5C365*=5C366=5C377=5C177=26quot=3B)=3Cbr /=3E=A0=A0=A0 at =2E=2E/=2E=2E= /src/IfEvent=2Ec=3A68=3Cbr /=3E=235=A0 0x00007ffff5fe7f24 in =5FXimXRead= (im=3D0xf50340=2C recv=5Fbuf=3D0x7fffffff8dd0 =26quot=3B=26quot=3B=2C b= uf=5Flen=3D2048=2C ret=5Flen=3D0x7fffffff851c) at =2E=2E/=2E=2E/=2E=2E/=2E= =2E/modules/im/ximcp/imTrX=2Ec=3A476=3Cbr /=3E=236=A0 0x00007ffff5fe8b80= in =5FXimReadData (im=3Dim=40entry=3D0xf50340=2C len=3Dlen=40entry=3D0x= 7fffffff857e=2C buf=3Dbuf=40entry=3D0x7fffffff8dd0 =26quot=3B=26quot=3B=2C= buf=5Fsize=3Dbuf=5Fsize=40entry=3D2048) at =2E=2E/=2E=2E/=2E=2E/=2E=2E/= modules/im/ximcp/imTransR=2Ec=3A165=3Cbr /=3E=237=A0 0x00007ffff5fe8e71 = in =5FXimRead (im=3Dim=40entry=3D0xf50340=2C len=3Dlen=40entry=3D0x7ffff= fff85ce=2C buf=3Dbuf=40entry=3D0x7fffffff8dd0 =26quot=3B=26quot=3B=2C bu= f=5Fsize=3Dbuf=5Fsize=40entry=3D2048=2C =3Cbr /=3E=A0=A0=A0 predicate=3D= predicate=40entry=3D0x7ffff5fd6c80 =26lt=3B=5FXimDestroyICCheck=26gt=3B=2C= arg=3Darg=40entry=3D0x161a370 =26quot=3B =5C365*=5C366=5C377=5C177=26qu= ot=3B) at =2E=2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imTransR=2Ec=3A23= 5=3Cbr /=3E=238=A0 0x00007ffff5fd70e8 in =5FXimProtoDestroyIC (xic=3D0x1= 61a370) at =2E=2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imDefIc=2Ec=3A91= 4=3Cbr /=3E=239=A0 0x00007ffff5fc58d2 in XDestroyIC (ic=3D0x161a370) at = =2E=2E/=2E=2E/=2E=2E/src/xlibi18n/ICWrap=2Ec=3A265=3Cbr /=3E=2310 0x0000= 00000054c6d6 in free=5Fframe=5Fxic (f=3D0x139e798) at xfns=2Ec=3A2087=3C= br /=3E=2311 0x00000000005455c5 in x=5Ffree=5Fframe=5Fresources (f=3D0x1= 39e798) at xterm=2Ec=3A9275=3Cbr /=3E=2312 0x0000000000545c11 in x=5Fdes= troy=5Fwindow (f=3D0x139e798) at xterm=2Ec=3A9383=3Cbr /=3E=2313 0x00000= 0000042826b in delete=5Fframe (frame=3D=2E=2E=2E=2C force=3D=2E=2E=2E) a= t frame=2Ec=3A1387=3Cbr /=3E=2314 0x0000000000541ff3 in x=5Fconnection=5F= closed (dpy=3D0xf98ba0=2C error=5Fmessage=3D0x7fffffff9940 =26quot=3BX p= rotocol error=3A BadPixmap (invalid Pixmap parameter) on protocol reques= t 55=26quot=3B) at xterm=2Ec=3A7635=3Cbr /=3E=2315 0x00000000005422b7 in= x=5Ferror=5Fquitter (display=3D0xf98ba0=2C event=3D0x7fffffff9af0) at x= term=2Ec=3A7747=3Cbr /=3E=2316 0x0000000000542209 in x=5Ferror=5Fhandler= (display=3D0xf98ba0=2C event=3D0x7fffffff9af0) at xterm=2Ec=3A7717=3Cbr= /=3E=2317 0x00007ffff5fbb54b in =5FXError (dpy=3Ddpy=40entry=3D0xf98ba0= =2C rep=3Drep=40entry=3D0xf76d70) at =2E=2E/=2E=2E/src/XlibInt=2Ec=3A146= 3=3Cbr /=3E=2318 0x00007ffff5fb85e7 in handle=5Ferror (dpy=3D0xf98ba0=2C= err=3D0xf76d70=2C in=5FXReply=3D=26lt=3Boptimized out=26gt=3B) at =2E=2E= /=2E=2E/src/xcb=5Fio=2Ec=3A213=3Cbr /=3E=2319 0x00007ffff5fb8695 in hand= le=5Fresponse (dpy=3Ddpy=40entry=3D0xf98ba0=2C response=3D0xf76d70=2C in= =5FXReply=3Din=5FXReply=40entry=3D1) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A= 325=3Cbr /=3E=2320 0x00007ffff5fb9578 in =5FXReply (dpy=3Ddpy=40entry=3D= 0xf98ba0=2C rep=3Drep=40entry=3D0x7fffffff9cb0=2C extra=3Dextra=40entry=3D= 0=2C discard=3Ddiscard=40entry=3D0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A= 627=3Cbr /=3E=2321 0x00007ffff5faf4cf in XQueryColor (dpy=3D0xf98ba0=2C = cmap=3D32=2C def=3D0x7fffffff9d10) at =2E=2E/=2E=2E/src/QuColor=2Ec=3A49= =3Cbr /=3E=2322 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /= usr/lib/x86=5F64-linux-gnu/libXaw3d=2Eso=2E6=3Cbr /=3E=2323 0x00007ffff6= b8c600 in =3F=3F () from /usr/lib/x86=5F64-linux-gnu/libXaw3d=2Eso=2E6=3C= br /=3E=2324 0x00007ffff6b8ca6a in =3F=3F () from /usr/lib/x86=5F64-linu= x-gnu/libXaw3d=2Eso=2E6=3Cbr /=3E=2325 0x00007ffff66f1afc in CallInitial= ize (class=3D0x7ffff6dae960 =26lt=3BthreeDClassRec=26gt=3B=2C req=5Fwidg= et=3Dreq=5Fwidget=40entry=3D0x7fffffff9f20=2C new=5Fwidget=3Dnew=5Fwidge= t=40entry=3D0x1604c60=2C args=3Dargs=40entry=3D0x7fffffffa3f0=2C =3Cbr /= =3E=A0=A0=A0 num=5Fargs=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A226=3Cbr = /=3E=2326 0x00007ffff66f1ac6 in CallInitialize (class=3D0x7ffff6dac1c0 =26= lt=3BscrollbarClassRec=26gt=3B=2C req=5Fwidget=3Dreq=5Fwidget=40entry=3D= 0x7fffffff9f20=2C new=5Fwidget=3Dnew=5Fwidget=40entry=3D0x1604c60=2C arg= s=3Dargs=40entry=3D0x7fffffffa3f0=2C =3Cbr /=3E=A0=A0=A0 num=5Fargs=3Dnu= m=5Fargs=40entry=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A221=3Cbr /=3E=23= 27 0x00007ffff66f2427 in xtCreate (name=3Dname=40entry=3D0x703028 =26quo= t=3BverticalScrollBar=26quot=3B=2C class=3Dclass=40entry=3D0x0=2C widget= =5Fclass=3Dwidget=5Fclass=40entry=3D0x7ffff6dac1c0 =26lt=3BscrollbarClas= sRec=26gt=3B=2C parent=3Dparent=40entry=3D0x10506b0=2C =3Cbr /=3E=A0=A0=A0= default=5Fscreen=3D0xfad8e0=2C args=3Dargs=40entry=3D0x7fffffffa3f0=2C = num=5Fargs=3Dnum=5Fargs=40entry=3D3=2C typed=5Fargs=3Dtyped=5Fargs=40ent= ry=3D0x0=2C num=5Ftyped=5Fargs=3Dnum=5Ftyped=5Fargs=40entry=3D0=2C paren= t=5Fconstraint=5Fclass=3D0x0=2C =3Cbr /=3E=A0=A0=A0 post=5Fproc=3Dpost=5F= proc=40entry=3D0x7ffff66f1b40 =26lt=3BwidgetPostProc=26gt=3B) at =2E=2E/= =2E=2E/src/Create=2Ec=3A416=3Cbr /=3E=2328 0x00007ffff66f2840 in =5FXtCr= eateWidget (name=3Dname=40entry=3D0x703028 =26quot=3BverticalScrollBar=26= quot=3B=2C widget=5Fclass=3Dwidget=5Fclass=40entry=3D0x7ffff6dac1c0 =26l= t=3BscrollbarClassRec=26gt=3B=2C parent=3Dparent=40entry=3D0x10506b0=2C = =3Cbr /=3E=A0=A0=A0 args=3Dargs=40entry=3D0x7fffffffa3f0=2C num=5Fargs=3D= num=5Fargs=40entry=3D3=2C typed=5Fargs=3Dtyped=5Fargs=40entry=3D0x0=2C n= um=5Ftyped=5Fargs=3Dnum=5Ftyped=5Fargs=40entry=3D0) at =2E=2E/=2E=2E/src= /Create=2Ec=3A570=3Cbr /=3E=2329 0x00007ffff66f2b0e in XtCreateWidget (n= ame=3D0x703028 =26quot=3BverticalScrollBar=26quot=3B=2C widget=5Fclass=3D= 0x7ffff6dac1c0 =26lt=3BscrollbarClassRec=26gt=3B=2C parent=3D0x10506b0=2C= args=3D0x7fffffffa3f0=2C num=5Fargs=3D3) at =2E=2E/=2E=2E/src/Create=2E= c=3A589=3Cbr /=3E=2330 0x000000000053c417 in x=5Fcreate=5Ftoolkit=5Fscro= ll=5Fbar (f=3D0x139e798=2C bar=3D0xfa2560) at xterm=2Ec=3A4768=3Cbr /=3E= =2331 0x000000000053c937 in x=5Fscroll=5Fbar=5Fcreate (w=3D0x139f810=2C = top=3D686=2C left=3D1=2C width=3D16=2C height=3D19) at xterm=2Ec=3A4960=3C= br /=3E=2332 0x000000000053d167 in XTset=5Fvertical=5Fscroll=5Fbar (w=3D= 0x139f810=2C portion=3D0=2C whole=3D0=2C position=3D0) at xterm=2Ec=3A52= 05=3Cbr /=3E=2333 0x000000000046b064 in set=5Fvertical=5Fscroll=5Fbar (w= =3D0x139f810) at xdisp=2Ec=3A15905=3Cbr /=3E=2334 0x000000000046fcfa in = redisplay=5Fwindow (window=3D=2E=2E=2E=2C just=5Fthis=5Fone=5Fp=3Dfalse)= at xdisp=2Ec=3A16947=3Cbr /=3E=2335 0x00000000004644f2 in redisplay=5Fw= indow=5F0 (window=3D=2E=2E=2E) at xdisp=2Ec=3A14373=3Cbr /=3E=2336 0x000= 00000006173df in internal=5Fcondition=5Fcase=5F1 (bfun=3D0x4644b0 =26lt=3B= redisplay=5Fwindow=5F0=26gt=3B=2C arg=3D=2E=2E=2E=2C handlers=3D=2E=2E=2E= =2C hfun=3D0x46447f =26lt=3Bredisplay=5Fwindow=5Ferror=26gt=3B) at eval=2E= c=3A1372=3Cbr /=3E=2337 0x000000000046445d in redisplay=5Fwindows (windo= w=3D=2E=2E=2E) at xdisp=2Ec=3A14353=3Cbr /=3E=2338 0x0000000000463204 in= redisplay=5Finternal () at xdisp=2Ec=3A13949=3Cbr /=3E=2339 0x000000000= 0463db4 in redisplay=5Fpreserve=5Fecho=5Farea (from=5Fwhere=3D12) at xdi= sp=2Ec=3A14206=3Cbr /=3E=2340 0x0000000000674157 in wait=5Freading=5Fpro= cess=5Foutput (time=5Flimit=3D30=2C nsecs=3D0=2C read=5Fkbd=3D-1=2C do=5F= display=3Dtrue=2C wait=5Ffor=5Fcell=3D=2E=2E=2E=2C wait=5Fproc=3D0x0=2C = just=5Fwait=5Fproc=3D0) at process=2Ec=3A4821=3Cbr /=3E=2341 0x000000000= 0422d0c in sit=5Ffor (timeout=3D=2E=2E=2E=2C reading=3Dtrue=2C display=5F= option=3D1) at dispnew=2Ec=3A5867=3Cbr /=3E=2342 0x0000000000576bff in r= ead=5Fchar (commandflag=3D1=2C map=3D=2E=2E=2E=2C prev=5Fevent=3D=2E=2E=2E= =2C used=5Fmouse=5Fmenu=3D0x7fffffffd7f5=2C end=5Ftime=3D0x0) at keyboar= d=2Ec=3A2810=3Cbr /=3E=2343 0x00000000005858f4 in read=5Fkey=5Fsequence = (keybuf=3D0x7fffffffda20=2C bufsize=3D30=2C prompt=3D=2E=2E=2E=2C dont=5F= downcase=5Flast=3Dfalse=2C can=5Freturn=5Fswitch=5Fframe=3Dtrue=2C fix=5F= current=5Fbuffer=3Dtrue=2C prevent=5Fredisplay=3Dfalse)=3Cbr /=3E=A0=A0=A0= at keyboard=2Ec=3A9089=3Cbr /=3E=2344 0x0000000000573161 in command=5Fl= oop=5F1 () at keyboard=2Ec=3A1453=3Cbr /=3E=2345 0x000000000061726e in i= nternal=5Fcondition=5Fcase (bfun=3D0x572d8a =26lt=3Bcommand=5Floop=5F1=26= gt=3B=2C handlers=3D=2E=2E=2E=2C hfun=3D0x57253d =26lt=3Bcmd=5Ferror=26g= t=3B) at eval=2Ec=3A1348=3Cbr /=3E=2346 0x0000000000572a28 in command=5F= loop=5F2 (ignore=3D=2E=2E=2E) at keyboard=2Ec=3A1178=3Cbr /=3E=2347 0x00= 000000006166f1 in internal=5Fcatch (tag=3D=2E=2E=2E=2C func=3D0x572a05 =26= lt=3Bcommand=5Floop=5F2=26gt=3B=2C arg=3D=2E=2E=2E) at eval=2Ec=3A1112=3C= br /=3E=2348 0x00000000005729dc in command=5Floop () at keyboard=2Ec=3A1= 157=3Cbr /=3E=2349 0x0000000000572069 in recursive=5Fedit=5F1 () at keyb= oard=2Ec=3A778=3Cbr /=3E=2350 0x0000000000572239 in Frecursive=5Fedit ()= at keyboard=2Ec=3A849=3Cbr /=3E=2351 0x000000000057017b in main (argc=3D= 5=2C argv=3D0x7fffffffdde8) at emacs=2Ec=3A1642=3Cbr /=3E=3Cbr /=3ELisp = Backtrace=3A=3Cbr /=3E=26quot=3Bredisplay=5Finternal (C function)=26quot= =3B (0xd553f0)=3Cbr /=3E=3Cbr /=3E-----=3Cbr /=3E=3Cbr /=3EIn GNU Emacs = 24=2E5=2E1 (x86=5F64-unknown-linux-gnu=2C X toolkit=2C Xaw3d scroll bars= )=3Cbr /=3E=A0of 2016-05-09 on vistar-rlange=3Cbr /=3EWindowing system d= istributor =60The X=2EOrg Foundation=27=2C version 11=2E0=2E11702000=3Cb= r /=3ESystem Description=3A=A0=A0 =A0Ubuntu 14=2E04=2E4 LTS=3Cbr /=3E=3C= br /=3EConfigured using=3A=3Cbr /=3E=A0=60configure --enable-checking=3D= yes=2Cglyphs --enable-check-lisp-object-type=3Cbr /=3E=A0--with-x-toolki= t=3Dlucid =27CFLAGS=3D-O0 -g3=27=27=3Cbr /=3E=3Cbr /=3EImportant setting= s=3A=3Cbr /=3E=A0 value of =24LC=5FCOLLATE=3A C=3Cbr /=3E=A0 value of =24= LC=5FTIME=3A en=5FDK=2EUTF-8=3Cbr /=3E=A0 value of =24LANG=3A en=5FUS=2E= UTF-8=3Cbr /=3E=A0 value of =24XMODIFIERS=3A =40im=3Dibus=3Cbr /=3E=A0 l= ocale-coding-system=3A utf-8-unix=3Cbr /=3E=3Cbr /=3EMajor mode=3A Lisp = Interaction=3Cbr /=3E=3Cbr /=3EMinor modes in effect=3A=3Cbr /=3E=A0 too= ltip-mode=3A t=3Cbr /=3E=A0 electric-indent-mode=3A t=3Cbr /=3E=A0 mouse= -wheel-mode=3A t=3Cbr /=3E=A0 tool-bar-mode=3A t=3Cbr /=3E=A0 menu-bar-m= ode=3A t=3Cbr /=3E=A0 file-name-shadow-mode=3A t=3Cbr /=3E=A0 global-fon= t-lock-mode=3A t=3Cbr /=3E=A0 font-lock-mode=3A t=3Cbr /=3E=A0 blink-cur= sor-mode=3A t=3Cbr /=3E=A0 auto-composition-mode=3A t=3Cbr /=3E=A0 auto-= encryption-mode=3A t=3Cbr /=3E=A0 auto-compression-mode=3A t=3Cbr /=3E=A0= line-number-mode=3A t=3Cbr /=3E=A0 transient-mark-mode=3A t=3Cbr /=3E=3C= br /=3ERecent messages=3A=3Cbr /=3EFor information about GNU Emacs and t= he GNU system=2C type C-h C-a=2E=3Cbr /=3EMaking completion list=2E=2E=2E= =3Cbr /=3E=3Cbr /=3ELoad-path shadows=3A=3Cbr /=3ENone found=2E=3Cbr /=3E= =3Cbr /=3EFeatures=3A=3Cbr /=3E(shadow sort gnus-util mail-extr emacsbug= message format-spec rfc822 mml=3Cbr /=3Emml-sec mm-decode mm-bodies mm-= encode mail-parse rfc2231 mailabbrev=3Cbr /=3Egmm-utils mailheader sendm= ail rfc2047 rfc2045 ietf-drums mm-util=3Cbr /=3Ehelp-fns mail-prsvr mail= -utils help-mode easymenu time-date tooltip=3Cbr /=3Eelectric uniquify e= diff-hook vc-hooks lisp-float-type mwheel x-win x-dnd=3Cbr /=3Etool-bar = dnd fontset image regexp-opt fringe tabulated-list newcomment=3Cbr /=3El= isp-mode prog-mode register page menu-bar rfn-eshadow timer select=3Cbr = /=3Escroll-bar mouse jit-lock font-lock syntax facemenu font-core frame = cham=3Cbr /=3Egeorgian utf-8-lang misc-lang vietnamese tibetan thai tai-= viet lao=3Cbr /=3Ekorean japanese hebrew greek romanian slovak czech eur= opean ethiopic=3Cbr /=3Eindian cyrillic chinese case-table epa-hook jka-= cmpr-hook help simple=3Cbr /=3Eabbrev minibuffer nadvice loaddefs button= faces cus-face macroexp files=3Cbr /=3Etext-properties overlay sha1 md5= base64 format env code-pages mule=3Cbr /=3Ecustom widget hashtable-prin= t-readable backquote make-network-process=3Cbr /=3Edbusbind gfilenotify = dynamic-setting system-font-setting=3Cbr /=3Efont-render-setting x-toolk= it x multi-tty emacs)=3Cbr /=3E=3Cbr /=3EMemory information=3A=3Cbr /=3E= ((conses 16 73075 4517)=3Cbr /=3E=A0(symbols 48 17654 0)=3Cbr /=3E=A0(mi= scs 40 41 114)=3Cbr /=3E=A0(strings 32 9912 3852)=3Cbr /=3E=A0(string-by= tes 1 266512)=3Cbr /=3E=A0(vectors 16 9616)=3Cbr /=3E=A0(vector-slots 8 = 388153 15866)=3Cbr /=3E=A0(floats 8 68 135)=3Cbr /=3E=A0(intervals 56 20= 5 4)=3Cbr /=3E=A0(buffers 960 12)=3Cbr /=3E=A0(heap 1024 18602 895))=3Cb= r /=3E ----f92a72e6261756d405231-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 09 18:36:54 2016 Received: (at 23499) by debbugs.gnu.org; 9 May 2016 22:36:54 +0000 Received: from localhost ([127.0.0.1]:44850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aztnK-0008Sv-8M for submit@debbugs.gnu.org; Mon, 09 May 2016 18:36:54 -0400 Received: from pm2.irt.drexel.edu ([144.118.29.82]:38774 helo=smtp.mail.drexel.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aztat-00089t-23 for 23499@debbugs.gnu.org; Mon, 09 May 2016 18:24:03 -0400 Received: from esa5000-a.irt.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 835BCAB0AA7 for <23499@debbugs.gnu.org>; Mon, 9 May 2016 18:23:57 -0400 (EDT) Received: from esa5000-a.irt.drexel.edu (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 5CEB824A7C25_7310DFDB for <23499@debbugs.gnu.org>; Mon, 9 May 2016 22:23:57 +0000 (GMT) Received: from smtp.mail.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by esa5000-a.irt.drexel.edu (Sophos Email Appliance) with ESMTP id 2B54024A7C80_7310DFDF for <23499@debbugs.gnu.org>; Mon, 9 May 2016 22:23:57 +0000 (GMT) Received: from smtp.mail.drexel.edu (localhost.localdomain [127.0.0.1]) by smtp.mail.drexel.edu (Postfix) with SMTP id 1AD295C8A04 for <23499@debbugs.gnu.org>; Mon, 9 May 2016 18:23:57 -0400 (EDT) X-No-SMTP-Auth: unauthenticated sender Received: from drexel.edu (parula.irt.drexel.edu [144.118.29.36]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 11E5A5C87B4 for <23499@debbugs.gnu.org>; Mon, 9 May 2016 18:23:56 -0400 (EDT) Received: from [144.118.29.36] (Forwarded-For: 98.114.23.45) by parula.irt.drexel.edu (mshttpd); Mon, 09 May 2016 18:23:56 -0400 From: "Robert Lange" To: 23499@debbugs.gnu.org Message-ID: Date: Mon, 09 May 2016 18:23:56 -0400 X-Mailer: Oracle Communications Messenger Express 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011) MIME-Version: 1.0 Content-Language: en Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly X-Accept-Language: en Priority: normal In-Reply-To: References: Content-Type: multipart/alternative; boundary="--fe2553fa2279643b751e3" X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 23499 X-Mailman-Approved-At: Mon, 09 May 2016 18:36:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) This is a multi-part message in MIME format. ----fe2553fa2279643b751e3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit After further experimentation, this bug occurs only if the emacs process that launched the daemon is non-graphical (e.g., `emacs --daemon` or `emacs -nw -f server-start`) and the emacsclient is graphical (e.g., `emacsclient -c`). If the emacs server process is graphical (e.g., `emacs -f server-start`) this bug does not manifest. If the emacsclient is non-graphical (e.g., `emacsclient -t`) this bug does not manifest. ----fe2553fa2279643b751e3 Content-Type: text/html; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit After further experimentation, this bug occurs only if the emacs process that launched the daemon is non-graphical (e.g., `emacs --daemon` or `emacs -nw -f server-start`) and the emacsclient is graphical (e.g., `emacsclient -c`).

If the emacs server process is graphical (e.g., `emacs -f server-start`) this bug does not manifest.

If the emacsclient is non-graphical (e.g., `emacsclient -t`) this bug does not manifest.
----fe2553fa2279643b751e3-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 09 19:02:06 2016 Received: (at 23499) by debbugs.gnu.org; 9 May 2016 23:02:06 +0000 Received: from localhost ([127.0.0.1]:44872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azuBh-0002Gq-IO for submit@debbugs.gnu.org; Mon, 09 May 2016 19:02:06 -0400 Received: from pm3.irt.drexel.edu ([144.118.29.83]:36775 helo=smtp.mail.drexel.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azuBe-0002GI-JO for 23499@debbugs.gnu.org; Mon, 09 May 2016 19:02:03 -0400 Received: from esa5000-a.irt.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 183031190C84; Mon, 9 May 2016 19:01:57 -0400 (EDT) Received: from esa5000-a.irt.drexel.edu (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 0C7FE24A7C91_73116E5B; Mon, 9 May 2016 23:01:57 +0000 (GMT) Received: from smtp.mail.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by esa5000-a.irt.drexel.edu (Sophos Email Appliance) with ESMTP id C38AE24A7C80_73116E4F; Mon, 9 May 2016 23:01:56 +0000 (GMT) Received: from smtp.mail.drexel.edu (localhost.localdomain [127.0.0.1]) by smtp.mail.drexel.edu (Postfix) with SMTP id B218AAB0BB4; Mon, 9 May 2016 19:01:56 -0400 (EDT) X-No-SMTP-Auth: unauthenticated sender Received: from drexel.edu (parula.irt.drexel.edu [144.118.29.36]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 80768AB0A96; Mon, 9 May 2016 19:01:56 -0400 (EDT) Received: from [144.118.29.36] (Forwarded-For: 98.114.23.45) by parula.irt.drexel.edu (mshttpd); Mon, 09 May 2016 19:01:56 -0400 From: "Robert Lange" To: "Robert Lange" ,23499@debbugs.gnu.org Message-ID: Date: Mon, 09 May 2016 19:01:56 -0400 X-Mailer: Oracle Communications Messenger Express 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011) MIME-Version: 1.0 Content-Language: en Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly X-Accept-Language: en Priority: normal In-Reply-To: References: Content-Type: multipart/alternative; boundary="--ffd9405f2028f6d44b04" X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 23499 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) This is a multi-part message in MIME format. ----ffd9405f2028f6d44b04 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit New experiment (still using vanilla GNU Emacs 24.5.1 with Lucid in GDB) appears to show that the problem is the scroll bar. Long story short, if I set `scroll-bar-mode` to `nil` in my emacs config, I can happily create and destroy emacsclient all day long without upsetting the daemon. See below for the details: gdb ./emacs (gdb) run -Q -nw -f server-start In another terminal: emacsclient -c -n `-n` makes the terminal return as soon as emacsclient is launched, so we have to manually close and relaunch. After 5-10 tries it will hang, but now the stacktrace we get is slightly different: ----- #0 0x00007ffff5fb8b68 in widen (narrow=1988, wide=) at ../../src/xcb_io.c:224 #1 poll_for_event (dpy=dpy@entry=0x105f2f0) at ../../src/xcb_io.c:264 #2 0x00007ffff5fb8cfc in poll_for_response (dpy=dpy@entry=0x105f2f0) at ../../src/xcb_io.c:289 #3 0x00007ffff5fb9147 in _XReadEvents (dpy=dpy@entry=0x105f2f0) at ../../src/xcb_io.c:424 #4 0x00007ffff5fa1751 in XIfEvent (dpy=0x105f2f0, event=event@entry=0x7fffffff1a80, predicate=predicate@entry=0x7ffff5fe7790 <_CheckCMEvent>, arg=arg@entry=0xd85d30 "\200\365*\366\377\177") at ../../src/IfEvent.c:68 #5 0x00007ffff5fe7f24 in _XimXRead (im=0xd85d30, recv_buf=0x7fffffff2460 "", buf_len=2048, ret_len=0x7fffffff1bac) at ../../../../modules/im/ximcp/imTrX.c:476 #6 0x00007ffff5fe8b80 in _XimReadData (im=im@entry=0xd85d30, len=len@entry=0x7fffffff1c0e, buf=buf@entry=0x7fffffff2460 "", buf_size=buf_size@entry=2048) at ../../../../modules/im/ximcp/imTransR.c:165 #7 0x00007ffff5fe8e71 in _XimRead (im=im@entry=0xd85d30, len=len@entry=0x7fffffff1c5e, buf=buf@entry=0x7fffffff2460 "", buf_size=buf_size@entry=2048, predicate=predicate@entry=0x7ffff5fd6c80 <_XimDestroyICCheck>, arg=arg@entry=0xf6a360 " \365*\366\377\177") at ../../../../modules/im/ximcp/imTransR.c:235 #8 0x00007ffff5fd70e8 in _XimProtoDestroyIC (xic=0xf6a360) at ../../../../modules/im/ximcp/imDefIc.c:914 #9 0x00007ffff5fc58d2 in XDestroyIC (ic=0xf6a360) at ../../../src/xlibi18n/ICWrap.c:265 #10 0x000000000054c6d6 in free_frame_xic (f=0x134b118) at xfns.c:2087 #11 0x00000000005455c5 in x_free_frame_resources (f=0x134b118) at xterm.c:9275 #12 0x0000000000545c11 in x_destroy_window (f=0x134b118) at xterm.c:9383 #13 0x000000000042826b in delete_frame (frame=..., force=...) at frame.c:1387 #14 0x0000000000541ff3 in x_connection_closed (dpy=0x105f2f0, error_message=0x7fffffff2fd0 "X protocol error: BadPixmap (invalid Pixmap parameter) on protocol request 55") at xterm.c:7635 #15 0x00000000005422b7 in x_error_quitter (display=0x105f2f0, event=0x7fffffff3180) at xterm.c:7747 #16 0x0000000000542209 in x_error_handler (display=0x105f2f0, event=0x7fffffff3180) at xterm.c:7717 #17 0x00007ffff5fbb54b in _XError (dpy=dpy@entry=0x105f2f0, rep=rep@entry=0xf83650) at ../../src/XlibInt.c:1463 #18 0x00007ffff5fb85e7 in handle_error (dpy=0x105f2f0, err=0xf83650, in_XReply=) at ../../src/xcb_io.c:213 #19 0x00007ffff5fb8695 in handle_response (dpy=dpy@entry=0x105f2f0, response=0xf83650, in_XReply=in_XReply@entry=1) at ../../src/xcb_io.c:325 #20 0x00007ffff5fb9578 in _XReply (dpy=dpy@entry=0x105f2f0, rep=rep@entry=0x7fffffff3340, extra=extra@entry=0, discard=discard@entry=0) at ../../src/xcb_io.c:627 #21 0x00007ffff5faf4cf in XQueryColor (dpy=0x105f2f0, cmap=32, def=0x7fffffff33a0) at ../../src/QuColor.c:49 #22 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 #23 0x00007ffff6b8c600 in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 #24 0x00007ffff6b8ca6a in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 #25 0x00007ffff66f1afc in CallInitialize (class=0x7ffff6dae960 , req_widget=req_widget@entry=0x7fffffff35b0, new_widget=new_widget@entry=0x1614b40, args=args@entry=0x7fffffff3a80, num_args=3) at ../../src/Create.c:226 #26 0x00007ffff66f1ac6 in CallInitialize (class=0x7ffff6dac1c0 , req_widget=req_widget@entry=0x7fffffff35b0, new_widget=new_widget@entry=0x1614b40, args=args@entry=0x7fffffff3a80, num_args=num_args@entry=3) at ../../src/Create.c:221 #27 0x00007ffff66f2427 in xtCreate (name=name@entry=0x703028 "verticalScrollBar", class=class@entry=0x0, widget_class=widget_class@entry=0x7ffff6dac1c0 , parent=parent@entry=0x16166f0, default_screen=0x15105b0, args=args@entry=0x7fffffff3a80, num_args=num_args@entry=3, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0, parent_constraint_class=0x0, post_proc=post_proc@entry=0x7ffff66f1b40 ) at ../../src/Create.c:416 #28 0x00007ffff66f2840 in _XtCreateWidget (name=name@entry=0x703028 "verticalScrollBar", widget_class=widget_class@entry=0x7ffff6dac1c0 , parent=parent@entry=0x16166f0, args=args@entry=0x7fffffff3a80, num_args=num_args@entry=3, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0) at ../../src/Create.c:570 #29 0x00007ffff66f2b0e in XtCreateWidget (name=0x703028 "verticalScrollBar", widget_class=0x7ffff6dac1c0 , parent=0x16166f0, args=0x7fffffff3a80, num_args=3) at ../../src/Create.c:589 #30 0x000000000053c417 in x_create_toolkit_scroll_bar (f=0x134b118, bar=0x1338328) at xterm.c:4768 #31 0x000000000053c937 in x_scroll_bar_create (w=0x134c2e0, top=686, left=1, width=16, height=19) at xterm.c:4960 #32 0x000000000053d167 in XTset_vertical_scroll_bar (w=0x134c2e0, portion=0, whole=0, position=0) at xterm.c:5205 #33 0x000000000046b064 in set_vertical_scroll_bar (w=0x134c2e0) at xdisp.c:15905 #34 0x000000000046fcfa in redisplay_window (window=..., just_this_one_p=false) at xdisp.c:16947 #35 0x00000000004644f2 in redisplay_window_0 (window=...) at xdisp.c:14373 #36 0x00000000006173df in internal_condition_case_1 (bfun=0x4644b0 , arg=..., handlers=..., hfun=0x46447f ) at eval.c:1372 #37 0x000000000046445d in redisplay_windows (window=...) at xdisp.c:14353 #38 0x0000000000463204 in redisplay_internal () at xdisp.c:13949 #39 0x0000000000463db4 in redisplay_preserve_echo_area (from_where=13) at xdisp.c:14206 #40 0x000000000066b46d in Fdelete_process (process=...) at process.c:877 #41 0x000000000061ac4a in Ffuncall (nargs=2, args=0x7fffffff6880) at eval.c:2811 #42 0x0000000000666389 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=0x7fffffff7010) at bytecode.c:916 #43 0x000000000061b47a in funcall_lambda (fun=..., nargs=1, arg_vector=0x7fffffff7008) at eval.c:2978 #44 0x000000000061ae25 in Ffuncall (nargs=2, args=0x7fffffff7000) at eval.c:2860 #45 0x0000000000666389 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=0x7fffffff7748) at bytecode.c:916 #46 0x000000000061b47a in funcall_lambda (fun=..., nargs=0, arg_vector=0x7fffffff7748) at eval.c:2978 #47 0x000000000061ae25 in Ffuncall (nargs=1, args=0x7fffffff7740) at eval.c:2860 #48 0x0000000000619438 in eval_sub (form=...) at eval.c:2154 #49 0x000000000061710f in internal_lisp_condition_case (var=..., bodyform=..., handlers=...) at eval.c:1317 #50 0x0000000000667498 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=0x7fffffff8128) at bytecode.c:1162 #51 0x000000000061b47a in funcall_lambda (fun=..., nargs=0, arg_vector=0x7fffffff8128) at eval.c:2978 #52 0x000000000061ae25 in Ffuncall (nargs=1, args=0x7fffffff8120) at eval.c:2860 #53 0x0000000000619438 in eval_sub (form=...) at eval.c:2154 #54 0x000000000061710f in internal_lisp_condition_case (var=..., bodyform=..., handlers=...) at eval.c:1317 #55 0x0000000000667498 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=7, args=0x7fffffff8b68) at bytecode.c:1162 #56 0x000000000061b47a in funcall_lambda (fun=..., nargs=7, arg_vector=0x7fffffff8b30) at eval.c:2978 #57 0x000000000061ae25 in Ffuncall (nargs=8, args=0x7fffffff8b28) at eval.c:2860 #58 0x0000000000666389 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=0x7fffffff9290) at bytecode.c:916 #59 0x000000000061b47a in funcall_lambda (fun=..., nargs=0, arg_vector=0x7fffffff9290) at eval.c:2978 #60 0x000000000061ae25 in Ffuncall (nargs=1, args=0x7fffffff9288) at eval.c:2860 #61 0x0000000000666389 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=0x7fffffff99b8) at bytecode.c:916 #62 0x000000000061b47a in funcall_lambda (fun=..., nargs=0, arg_vector=0x7fffffff99b8) at eval.c:2978 #63 0x000000000061ae25 in Ffuncall (nargs=1, args=0x7fffffff99b0) at eval.c:2860 #64 0x0000000000619438 in eval_sub (form=...) at eval.c:2154 #65 0x000000000061710f in internal_lisp_condition_case (var=..., bodyform=..., handlers=...) at eval.c:1317 #66 0x0000000000667498 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=1, args=0x7fffffffa3f8) at bytecode.c:1162 #67 0x000000000061b47a in funcall_lambda (fun=..., nargs=1, arg_vector=0x7fffffffa3f0) at eval.c:2978 #68 0x000000000061ae25 in Ffuncall (nargs=2, args=0x7fffffffa3e8) at eval.c:2860 #69 0x0000000000666389 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=0x7fffffffab98) at bytecode.c:916 #70 0x000000000061b47a in funcall_lambda (fun=..., nargs=0, arg_vector=0x7fffffffab98) at eval.c:2978 #71 0x000000000061ae25 in Ffuncall (nargs=1, args=0x7fffffffab90) at eval.c:2860 #72 0x0000000000619438 in eval_sub (form=...) at eval.c:2154 #73 0x000000000061710f in internal_lisp_condition_case (var=..., bodyform=..., handlers=...) at eval.c:1317 #74 0x0000000000667498 in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=0, args=0x7fffffffb558) at bytecode.c:1162 #75 0x000000000061b47a in funcall_lambda (fun=..., nargs=0, arg_vector=0x7fffffffb558) at eval.c:2978 #76 0x000000000061ae25 in Ffuncall (nargs=1, args=0x7fffffffb550) at eval.c:2860 #77 0x0000000000619438 in eval_sub (form=...) at eval.c:2154 #78 0x00000000006166f1 in internal_catch (tag=..., func=0x618e0c , arg=...) at eval.c:1112 #79 0x00000000006670dc in exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., nargs=2, args=0x7fffffffbe88) at bytecode.c:1097 #80 0x000000000061b47a in funcall_lambda (fun=..., nargs=2, arg_vector=0x7fffffffbe78) at eval.c:2978 #81 0x000000000061ae25 in Ffuncall (nargs=3, args=0x7fffffffbe70) at eval.c:2860 #82 0x0000000000619ed8 in Fapply (nargs=2, args=0x7fffffffbf60) at eval.c:2350 #83 0x000000000061a508 in apply1 (fn=..., arg=...) at eval.c:2584 #84 0x0000000000674852 in read_process_output_call (fun_and_args=...) at process.c:4967 #85 0x00000000006173df in internal_condition_case_1 (bfun=0x6747c8 , arg=..., handlers=..., hfun=0x674854 ) at eval.c:1372 #86 0x0000000000674efd in read_and_dispose_of_process_output (p=0x1348370, chars=0x7fffffffc080 "-env XDG_VTNR=7 -env XDG_SESSION_ID=c2 -env XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/rlange -env SELINUX_INIT=YES -env CLUTTER_IM_MODULE=xim -env SESSION=ubuntu -env GPG_AGENT_INFO=/run/user/1000/ke"..., nbytes=3947, coding=0xf5a810) at process.c:5180 #87 0x0000000000674bd9 in read_process_output (proc=..., channel=3947) at process.c:5089 #88 0x0000000000674106 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=..., wait_proc=0x0, just_wait_proc=0) at process.c:4811 #89 0x0000000000422d0c in sit_for (timeout=..., reading=true, display_option=1) at dispnew.c:5867 #90 0x0000000000576bff in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd7f5, end_time=0x0) at keyboard.c:2810 #91 0x00000000005858f4 in read_key_sequence (keybuf=0x7fffffffda20, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9089 #92 0x0000000000573161 in command_loop_1 () at keyboard.c:1453 #93 0x000000000061726e in internal_condition_case (bfun=0x572d8a , handlers=..., hfun=0x57253d ) at eval.c:1348 #94 0x0000000000572a28 in command_loop_2 (ignore=...) at keyboard.c:1178 #95 0x00000000006166f1 in internal_catch (tag=..., func=0x572a05 , arg=...) at eval.c:1112 #96 0x00000000005729dc in command_loop () at keyboard.c:1157 #97 0x0000000000572069 in recursive_edit_1 () at keyboard.c:778 #98 0x0000000000572239 in Frecursive_edit () at keyboard.c:849 #99 0x000000000057017b in main (argc=5, argv=0x7fffffffdde8) at emacs.c:1642 Lisp Backtrace: "redisplay_internal (C function)" (0xd553f0) "delete-process" (0xffff6888) "server-delete-client" (0xffff7008) 0x13524d8 PVEC_COMPILED "funcall" (0xffff7740) 0x13544f8 PVEC_COMPILED "funcall" (0xffff8120) "server-execute" (0xffff8b30) 0x1341258 PVEC_COMPILED 0x134b470 PVEC_COMPILED "funcall" (0xffff99b0) "server-execute-continuation" (0xffffa3f0) 0x134a3f0 PVEC_COMPILED "funcall" (0xffffab90) 0x13492e0 PVEC_COMPILED "funcall" (0xffffb550) "server-process-filter" (0xffffbe78) ----- ----ffd9405f2028f6d44b04 Content-Type: text/html; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =3Cspan=3ENew experiment (still using vanilla GNU Emacs 24=2E5=2E1 with = Lucid in GDB) appears to show that the problem is the scroll bar=2E=3Cbr= /=3E=3Cbr /=3ELong story short=2C if I set =60scroll-bar-mode=60 to =60= nil=60 in my emacs config=2C I can happily create and destroy emacsclien= t all day long without upsetting the daemon=2E=3Cbr /=3E=3Cbr /=3ESee be= low for the details=3A=3Cbr /=3E=3Cbr /=3Egdb =2E/emacs=3Cbr /=3E=A0 (gd= b)=3C/span=3E run -Q -nw -f server-start=3Cbr /=3E=3Cbr /=3EIn another t= erminal=3A=3Cbr /=3E=3Cbr /=3Eemacsclient -c -n=3Cbr /=3E=3Cbr /=3E=60-n= =60 makes the terminal return as soon as emacsclient is launched=2C so w= e have to manually close and relaunch=2E After 5-10 tries it will hang=2C= but now the stacktrace we get is slightly different=3A=3Cbr /=3E=3Cbr /= =3E-----=3Cbr /=3E=3Cbr /=3E=230=A0 0x00007ffff5fb8b68 in widen (narrow=3D= 1988=2C wide=3D=26lt=3Bsynthetic pointer=26gt=3B) at =2E=2E/=2E=2E/src/x= cb=5Fio=2Ec=3A224=3Cbr /=3E=231=A0 poll=5Ffor=5Fevent (dpy=3Ddpy=40entry= =3D0x105f2f0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A264=3Cbr /=3E=232=A0 0= x00007ffff5fb8cfc in poll=5Ffor=5Fresponse (dpy=3Ddpy=40entry=3D0x105f2f= 0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A289=3Cbr /=3E=233=A0 0x00007ffff5= fb9147 in =5FXReadEvents (dpy=3Ddpy=40entry=3D0x105f2f0) at =2E=2E/=2E=2E= /src/xcb=5Fio=2Ec=3A424=3Cbr /=3E=234=A0 0x00007ffff5fa1751 in XIfEvent = (dpy=3D0x105f2f0=2C event=3Devent=40entry=3D0x7fffffff1a80=2C predicate=3D= predicate=40entry=3D0x7ffff5fe7790 =26lt=3B=5FCheckCMEvent=26gt=3B=2C ar= g=3Darg=40entry=3D0xd85d30 =26quot=3B=5C200=5C365*=5C366=5C377=5C177=26q= uot=3B)=3Cbr /=3E=A0=A0=A0 at =2E=2E/=2E=2E/src/IfEvent=2Ec=3A68=3Cbr /=3E= =235=A0 0x00007ffff5fe7f24 in =5FXimXRead (im=3D0xd85d30=2C recv=5Fbuf=3D= 0x7fffffff2460 =26quot=3B=26quot=3B=2C buf=5Flen=3D2048=2C ret=5Flen=3D0= x7fffffff1bac) at =2E=2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imTrX=2Ec= =3A476=3Cbr /=3E=236=A0 0x00007ffff5fe8b80 in =5FXimReadData (im=3Dim=40= entry=3D0xd85d30=2C len=3Dlen=40entry=3D0x7fffffff1c0e=2C buf=3Dbuf=40en= try=3D0x7fffffff2460 =26quot=3B=26quot=3B=2C buf=5Fsize=3Dbuf=5Fsize=40e= ntry=3D2048) at =2E=2E/=2E=2E/=2E=2E/=2E=2E/modules/im/ximcp/imTransR=2E= c=3A165=3Cbr /=3E=237=A0 0x00007ffff5fe8e71 in =5FXimRead (im=3Dim=40ent= ry=3D0xd85d30=2C len=3Dlen=40entry=3D0x7fffffff1c5e=2C buf=3Dbuf=40entry= =3D0x7fffffff2460 =26quot=3B=26quot=3B=2C buf=5Fsize=3Dbuf=5Fsize=40entr= y=3D2048=2C =3Cbr /=3E=A0=A0=A0 predicate=3Dpredicate=40entry=3D0x7ffff5= fd6c80 =26lt=3B=5FXimDestroyICCheck=26gt=3B=2C arg=3Darg=40entry=3D0xf6a= 360 =26quot=3B =5C365*=5C366=5C377=5C177=26quot=3B) at =2E=2E/=2E=2E/=2E= =2E/=2E=2E/modules/im/ximcp/imTransR=2Ec=3A235=3Cbr /=3E=238=A0 0x00007f= fff5fd70e8 in =5FXimProtoDestroyIC (xic=3D0xf6a360) at =2E=2E/=2E=2E/=2E= =2E/=2E=2E/modules/im/ximcp/imDefIc=2Ec=3A914=3Cbr /=3E=239=A0 0x00007ff= ff5fc58d2 in XDestroyIC (ic=3D0xf6a360) at =2E=2E/=2E=2E/=2E=2E/src/xlib= i18n/ICWrap=2Ec=3A265=3Cbr /=3E=2310 0x000000000054c6d6 in free=5Fframe=5F= xic (f=3D0x134b118) at xfns=2Ec=3A2087=3Cbr /=3E=2311 0x00000000005455c5= in x=5Ffree=5Fframe=5Fresources (f=3D0x134b118) at xterm=2Ec=3A9275=3Cb= r /=3E=2312 0x0000000000545c11 in x=5Fdestroy=5Fwindow (f=3D0x134b118) a= t xterm=2Ec=3A9383=3Cbr /=3E=2313 0x000000000042826b in delete=5Fframe (= frame=3D=2E=2E=2E=2C force=3D=2E=2E=2E) at frame=2Ec=3A1387=3Cbr /=3E=23= 14 0x0000000000541ff3 in x=5Fconnection=5Fclosed (dpy=3D0x105f2f0=2C err= or=5Fmessage=3D0x7fffffff2fd0 =26quot=3BX protocol error=3A BadPixmap (i= nvalid Pixmap parameter) on protocol request 55=26quot=3B) at xterm=2Ec=3A= 7635=3Cbr /=3E=2315 0x00000000005422b7 in x=5Ferror=5Fquitter (display=3D= 0x105f2f0=2C event=3D0x7fffffff3180) at xterm=2Ec=3A7747=3Cbr /=3E=2316 = 0x0000000000542209 in x=5Ferror=5Fhandler (display=3D0x105f2f0=2C event=3D= 0x7fffffff3180) at xterm=2Ec=3A7717=3Cbr /=3E=2317 0x00007ffff5fbb54b in= =5FXError (dpy=3Ddpy=40entry=3D0x105f2f0=2C rep=3Drep=40entry=3D0xf8365= 0) at =2E=2E/=2E=2E/src/XlibInt=2Ec=3A1463=3Cbr /=3E=2318 0x00007ffff5fb= 85e7 in handle=5Ferror (dpy=3D0x105f2f0=2C err=3D0xf83650=2C in=5FXReply= =3D=26lt=3Boptimized out=26gt=3B) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A21= 3=3Cbr /=3E=2319 0x00007ffff5fb8695 in handle=5Fresponse (dpy=3Ddpy=40en= try=3D0x105f2f0=2C response=3D0xf83650=2C in=5FXReply=3Din=5FXReply=40en= try=3D1) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A325=3Cbr /=3E=2320 0x00007f= fff5fb9578 in =5FXReply (dpy=3Ddpy=40entry=3D0x105f2f0=2C rep=3Drep=40en= try=3D0x7fffffff3340=2C extra=3Dextra=40entry=3D0=2C discard=3Ddiscard=40= entry=3D0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A627=3Cbr /=3E=2321 0x0000= 7ffff5faf4cf in XQueryColor (dpy=3D0x105f2f0=2C cmap=3D32=2C def=3D0x7ff= fffff33a0) at =2E=2E/=2E=2E/src/QuColor=2Ec=3A49=3Cbr /=3E=2322 0x00007f= fff6b8c50c in Xaw3dComputeTopShadowRGB () from /usr/lib/x86=5F64-linux-g= nu/libXaw3d=2Eso=2E6=3Cbr /=3E=2323 0x00007ffff6b8c600 in =3F=3F () from= /usr/lib/x86=5F64-linux-gnu/libXaw3d=2Eso=2E6=3Cbr /=3E=2324 0x00007fff= f6b8ca6a in =3F=3F () from /usr/lib/x86=5F64-linux-gnu/libXaw3d=2Eso=2E6= =3Cbr /=3E=2325 0x00007ffff66f1afc in CallInitialize (class=3D0x7ffff6da= e960 =26lt=3BthreeDClassRec=26gt=3B=2C req=5Fwidget=3Dreq=5Fwidget=40ent= ry=3D0x7fffffff35b0=2C new=5Fwidget=3Dnew=5Fwidget=40entry=3D0x1614b40=2C= args=3Dargs=40entry=3D0x7fffffff3a80=2C =3Cbr /=3E=A0=A0=A0 num=5Fargs=3D= 3) at =2E=2E/=2E=2E/src/Create=2Ec=3A226=3Cbr /=3E=2326 0x00007ffff66f1a= c6 in CallInitialize (class=3D0x7ffff6dac1c0 =26lt=3BscrollbarClassRec=26= gt=3B=2C req=5Fwidget=3Dreq=5Fwidget=40entry=3D0x7fffffff35b0=2C new=5Fw= idget=3Dnew=5Fwidget=40entry=3D0x1614b40=2C args=3Dargs=40entry=3D0x7fff= ffff3a80=2C =3Cbr /=3E=A0=A0=A0 num=5Fargs=3Dnum=5Fargs=40entry=3D3) at = =2E=2E/=2E=2E/src/Create=2Ec=3A221=3Cbr /=3E=2327 0x00007ffff66f2427 in = xtCreate (name=3Dname=40entry=3D0x703028 =26quot=3BverticalScrollBar=26q= uot=3B=2C class=3Dclass=40entry=3D0x0=2C widget=5Fclass=3Dwidget=5Fclass= =40entry=3D0x7ffff6dac1c0 =26lt=3BscrollbarClassRec=26gt=3B=2C parent=3D= parent=40entry=3D0x16166f0=2C =3Cbr /=3E=A0=A0=A0 default=5Fscreen=3D0x1= 5105b0=2C args=3Dargs=40entry=3D0x7fffffff3a80=2C num=5Fargs=3Dnum=5Farg= s=40entry=3D3=2C typed=5Fargs=3Dtyped=5Fargs=40entry=3D0x0=2C num=5Ftype= d=5Fargs=3Dnum=5Ftyped=5Fargs=40entry=3D0=2C parent=5Fconstraint=5Fclass= =3D0x0=2C =3Cbr /=3E=A0=A0=A0 post=5Fproc=3Dpost=5Fproc=40entry=3D0x7fff= f66f1b40 =26lt=3BwidgetPostProc=26gt=3B) at =2E=2E/=2E=2E/src/Create=2Ec= =3A416=3Cbr /=3E=2328 0x00007ffff66f2840 in =5FXtCreateWidget (name=3Dna= me=40entry=3D0x703028 =26quot=3BverticalScrollBar=26quot=3B=2C widget=5F= class=3Dwidget=5Fclass=40entry=3D0x7ffff6dac1c0 =26lt=3BscrollbarClassRe= c=26gt=3B=2C parent=3Dparent=40entry=3D0x16166f0=2C =3Cbr /=3E=A0=A0=A0 = args=3Dargs=40entry=3D0x7fffffff3a80=2C num=5Fargs=3Dnum=5Fargs=40entry=3D= 3=2C typed=5Fargs=3Dtyped=5Fargs=40entry=3D0x0=2C num=5Ftyped=5Fargs=3Dn= um=5Ftyped=5Fargs=40entry=3D0) at =2E=2E/=2E=2E/src/Create=2Ec=3A570=3Cb= r /=3E=2329 0x00007ffff66f2b0e in XtCreateWidget (name=3D0x703028 =26quo= t=3BverticalScrollBar=26quot=3B=2C widget=5Fclass=3D0x7ffff6dac1c0 =26lt= =3BscrollbarClassRec=26gt=3B=2C parent=3D0x16166f0=2C args=3D0x7fffffff3= a80=2C num=5Fargs=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A589=3Cbr /=3E=23= 30 0x000000000053c417 in x=5Fcreate=5Ftoolkit=5Fscroll=5Fbar (f=3D0x134b= 118=2C bar=3D0x1338328) at xterm=2Ec=3A4768=3Cbr /=3E=2331 0x00000000005= 3c937 in x=5Fscroll=5Fbar=5Fcreate (w=3D0x134c2e0=2C top=3D686=2C left=3D= 1=2C width=3D16=2C height=3D19) at xterm=2Ec=3A4960=3Cbr /=3E=2332 0x000= 000000053d167 in XTset=5Fvertical=5Fscroll=5Fbar (w=3D0x134c2e0=2C porti= on=3D0=2C whole=3D0=2C position=3D0) at xterm=2Ec=3A5205=3Cbr /=3E=2333 = 0x000000000046b064 in set=5Fvertical=5Fscroll=5Fbar (w=3D0x134c2e0) at x= disp=2Ec=3A15905=3Cbr /=3E=2334 0x000000000046fcfa in redisplay=5Fwindow= (window=3D=2E=2E=2E=2C just=5Fthis=5Fone=5Fp=3Dfalse) at xdisp=2Ec=3A16= 947=3Cbr /=3E=2335 0x00000000004644f2 in redisplay=5Fwindow=5F0 (window=3D= =2E=2E=2E) at xdisp=2Ec=3A14373=3Cbr /=3E=2336 0x00000000006173df in int= ernal=5Fcondition=5Fcase=5F1 (bfun=3D0x4644b0 =26lt=3Bredisplay=5Fwindow= =5F0=26gt=3B=2C arg=3D=2E=2E=2E=2C handlers=3D=2E=2E=2E=2C hfun=3D0x4644= 7f =26lt=3Bredisplay=5Fwindow=5Ferror=26gt=3B) at eval=2Ec=3A1372=3Cbr /= =3E=2337 0x000000000046445d in redisplay=5Fwindows (window=3D=2E=2E=2E) = at xdisp=2Ec=3A14353=3Cbr /=3E=2338 0x0000000000463204 in redisplay=5Fin= ternal () at xdisp=2Ec=3A13949=3Cbr /=3E=2339 0x0000000000463db4 in redi= splay=5Fpreserve=5Fecho=5Farea (from=5Fwhere=3D13) at xdisp=2Ec=3A14206=3C= br /=3E=2340 0x000000000066b46d in Fdelete=5Fprocess (process=3D=2E=2E=2E= ) at process=2Ec=3A877=3Cbr /=3E=2341 0x000000000061ac4a in Ffuncall (na= rgs=3D2=2C args=3D0x7fffffff6880) at eval=2Ec=3A2811=3Cbr /=3E=2342 0x00= 00000000666389 in exec=5Fbyte=5Fcode (bytestr=3D=2E=2E=2E=2C vector=3D=2E= =2E=2E=2C maxdepth=3D=2E=2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C nargs=3D= 1=2C args=3D0x7fffffff7010) at bytecode=2Ec=3A916=3Cbr /=3E=2343 0x00000= 0000061b47a in funcall=5Flambda (fun=3D=2E=2E=2E=2C nargs=3D1=2C arg=5Fv= ector=3D0x7fffffff7008) at eval=2Ec=3A2978=3Cbr /=3E=2344 0x000000000061= ae25 in Ffuncall (nargs=3D2=2C args=3D0x7fffffff7000) at eval=2Ec=3A2860= =3Cbr /=3E=2345 0x0000000000666389 in exec=5Fbyte=5Fcode (bytestr=3D=2E=2E= =2E=2C vector=3D=2E=2E=2E=2C maxdepth=3D=2E=2E=2E=2C args=5Ftemplate=3D=2E= =2E=2E=2C nargs=3D0=2C args=3D0x7fffffff7748) at bytecode=2Ec=3A916=3Cbr= /=3E=2346 0x000000000061b47a in funcall=5Flambda (fun=3D=2E=2E=2E=2C na= rgs=3D0=2C arg=5Fvector=3D0x7fffffff7748) at eval=2Ec=3A2978=3Cbr /=3E=23= 47 0x000000000061ae25 in Ffuncall (nargs=3D1=2C args=3D0x7fffffff7740) a= t eval=2Ec=3A2860=3Cbr /=3E=2348 0x0000000000619438 in eval=5Fsub (form=3D= =2E=2E=2E) at eval=2Ec=3A2154=3Cbr /=3E=2349 0x000000000061710f in inter= nal=5Flisp=5Fcondition=5Fcase (var=3D=2E=2E=2E=2C bodyform=3D=2E=2E=2E=2C= handlers=3D=2E=2E=2E) at eval=2Ec=3A1317=3Cbr /=3E=2350 0x0000000000667= 498 in exec=5Fbyte=5Fcode (bytestr=3D=2E=2E=2E=2C vector=3D=2E=2E=2E=2C = maxdepth=3D=2E=2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C nargs=3D0=2C args= =3D0x7fffffff8128) at bytecode=2Ec=3A1162=3Cbr /=3E=2351 0x000000000061b= 47a in funcall=5Flambda (fun=3D=2E=2E=2E=2C nargs=3D0=2C arg=5Fvector=3D= 0x7fffffff8128) at eval=2Ec=3A2978=3Cbr /=3E=2352 0x000000000061ae25 in = Ffuncall (nargs=3D1=2C args=3D0x7fffffff8120) at eval=2Ec=3A2860=3Cbr /=3E= =2353 0x0000000000619438 in eval=5Fsub (form=3D=2E=2E=2E) at eval=2Ec=3A= 2154=3Cbr /=3E=2354 0x000000000061710f in internal=5Flisp=5Fcondition=5F= case (var=3D=2E=2E=2E=2C bodyform=3D=2E=2E=2E=2C handlers=3D=2E=2E=2E) a= t eval=2Ec=3A1317=3Cbr /=3E=2355 0x0000000000667498 in exec=5Fbyte=5Fcod= e (bytestr=3D=2E=2E=2E=2C vector=3D=2E=2E=2E=2C maxdepth=3D=2E=2E=2E=2C = args=5Ftemplate=3D=2E=2E=2E=2C nargs=3D7=2C args=3D0x7fffffff8b68) at by= tecode=2Ec=3A1162=3Cbr /=3E=2356 0x000000000061b47a in funcall=5Flambda = (fun=3D=2E=2E=2E=2C nargs=3D7=2C arg=5Fvector=3D0x7fffffff8b30) at eval=2E= c=3A2978=3Cbr /=3E=2357 0x000000000061ae25 in Ffuncall (nargs=3D8=2C arg= s=3D0x7fffffff8b28) at eval=2Ec=3A2860=3Cbr /=3E=2358 0x0000000000666389= in exec=5Fbyte=5Fcode (bytestr=3D=2E=2E=2E=2C vector=3D=2E=2E=2E=2C max= depth=3D=2E=2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C nargs=3D0=2C args=3D= 0x7fffffff9290) at bytecode=2Ec=3A916=3Cbr /=3E=2359 0x000000000061b47a = in funcall=5Flambda (fun=3D=2E=2E=2E=2C nargs=3D0=2C arg=5Fvector=3D0x7f= ffffff9290) at eval=2Ec=3A2978=3Cbr /=3E=2360 0x000000000061ae25 in Ffun= call (nargs=3D1=2C args=3D0x7fffffff9288) at eval=2Ec=3A2860=3Cbr /=3E=23= 61 0x0000000000666389 in exec=5Fbyte=5Fcode (bytestr=3D=2E=2E=2E=2C vect= or=3D=2E=2E=2E=2C maxdepth=3D=2E=2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C= nargs=3D0=2C args=3D0x7fffffff99b8) at bytecode=2Ec=3A916=3Cbr /=3E=236= 2 0x000000000061b47a in funcall=5Flambda (fun=3D=2E=2E=2E=2C nargs=3D0=2C= arg=5Fvector=3D0x7fffffff99b8) at eval=2Ec=3A2978=3Cbr /=3E=2363 0x0000= 00000061ae25 in Ffuncall (nargs=3D1=2C args=3D0x7fffffff99b0) at eval=2E= c=3A2860=3Cbr /=3E=2364 0x0000000000619438 in eval=5Fsub (form=3D=2E=2E=2E= ) at eval=2Ec=3A2154=3Cbr /=3E=2365 0x000000000061710f in internal=5Flis= p=5Fcondition=5Fcase (var=3D=2E=2E=2E=2C bodyform=3D=2E=2E=2E=2C handler= s=3D=2E=2E=2E) at eval=2Ec=3A1317=3Cbr /=3E=2366 0x0000000000667498 in e= xec=5Fbyte=5Fcode (bytestr=3D=2E=2E=2E=2C vector=3D=2E=2E=2E=2C maxdepth= =3D=2E=2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C nargs=3D1=2C args=3D0x7ff= fffffa3f8) at bytecode=2Ec=3A1162=3Cbr /=3E=2367 0x000000000061b47a in f= uncall=5Flambda (fun=3D=2E=2E=2E=2C nargs=3D1=2C arg=5Fvector=3D0x7fffff= ffa3f0) at eval=2Ec=3A2978=3Cbr /=3E=2368 0x000000000061ae25 in Ffuncall= (nargs=3D2=2C args=3D0x7fffffffa3e8) at eval=2Ec=3A2860=3Cbr /=3E=2369 = 0x0000000000666389 in exec=5Fbyte=5Fcode (bytestr=3D=2E=2E=2E=2C vector=3D= =2E=2E=2E=2C maxdepth=3D=2E=2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C narg= s=3D0=2C args=3D0x7fffffffab98) at bytecode=2Ec=3A916=3Cbr /=3E=2370 0x0= 00000000061b47a in funcall=5Flambda (fun=3D=2E=2E=2E=2C nargs=3D0=2C arg= =5Fvector=3D0x7fffffffab98) at eval=2Ec=3A2978=3Cbr /=3E=2371 0x00000000= 0061ae25 in Ffuncall (nargs=3D1=2C args=3D0x7fffffffab90) at eval=2Ec=3A= 2860=3Cbr /=3E=2372 0x0000000000619438 in eval=5Fsub (form=3D=2E=2E=2E) = at eval=2Ec=3A2154=3Cbr /=3E=2373 0x000000000061710f in internal=5Flisp=5F= condition=5Fcase (var=3D=2E=2E=2E=2C bodyform=3D=2E=2E=2E=2C handlers=3D= =2E=2E=2E) at eval=2Ec=3A1317=3Cbr /=3E=2374 0x0000000000667498 in exec=5F= byte=5Fcode (bytestr=3D=2E=2E=2E=2C vector=3D=2E=2E=2E=2C maxdepth=3D=2E= =2E=2E=2C args=5Ftemplate=3D=2E=2E=2E=2C nargs=3D0=2C args=3D0x7fffffffb= 558) at bytecode=2Ec=3A1162=3Cbr /=3E=2375 0x000000000061b47a in funcall= =5Flambda (fun=3D=2E=2E=2E=2C nargs=3D0=2C arg=5Fvector=3D0x7fffffffb558= ) at eval=2Ec=3A2978=3Cbr /=3E=2376 0x000000000061ae25 in Ffuncall (narg= s=3D1=2C args=3D0x7fffffffb550) at eval=2Ec=3A2860=3Cbr /=3E=2377 0x0000= 000000619438 in eval=5Fsub (form=3D=2E=2E=2E) at eval=2Ec=3A2154=3Cbr /=3E= =2378 0x00000000006166f1 in internal=5Fcatch (tag=3D=2E=2E=2E=2C func=3D= 0x618e0c =26lt=3Beval=5Fsub=26gt=3B=2C arg=3D=2E=2E=2E) at eval=2Ec=3A11= 12=3Cbr /=3E=2379 0x00000000006670dc in exec=5Fbyte=5Fcode (bytestr=3D=2E= =2E=2E=2C vector=3D=2E=2E=2E=2C maxdepth=3D=2E=2E=2E=2C args=5Ftemplate=3D= =2E=2E=2E=2C nargs=3D2=2C args=3D0x7fffffffbe88) at bytecode=2Ec=3A1097=3C= br /=3E=2380 0x000000000061b47a in funcall=5Flambda (fun=3D=2E=2E=2E=2C = nargs=3D2=2C arg=5Fvector=3D0x7fffffffbe78) at eval=2Ec=3A2978=3Cbr /=3E= =2381 0x000000000061ae25 in Ffuncall (nargs=3D3=2C args=3D0x7fffffffbe70= ) at eval=2Ec=3A2860=3Cbr /=3E=2382 0x0000000000619ed8 in Fapply (nargs=3D= 2=2C args=3D0x7fffffffbf60) at eval=2Ec=3A2350=3Cbr /=3E=2383 0x00000000= 0061a508 in apply1 (fn=3D=2E=2E=2E=2C arg=3D=2E=2E=2E) at eval=2Ec=3A258= 4=3Cbr /=3E=2384 0x0000000000674852 in read=5Fprocess=5Foutput=5Fcall (f= un=5Fand=5Fargs=3D=2E=2E=2E) at process=2Ec=3A4967=3Cbr /=3E=2385 0x0000= 0000006173df in internal=5Fcondition=5Fcase=5F1 (bfun=3D0x6747c8 =26lt=3B= read=5Fprocess=5Foutput=5Fcall=26gt=3B=2C arg=3D=2E=2E=2E=2C handlers=3D= =2E=2E=2E=2C hfun=3D0x674854 =26lt=3Bread=5Fprocess=5Foutput=5Ferror=5Fh= andler=26gt=3B) at eval=2Ec=3A1372=3Cbr /=3E=2386 0x0000000000674efd in = read=5Fand=5Fdispose=5Fof=5Fprocess=5Foutput (p=3D0x1348370=2C =3Cbr /=3E= =A0=A0=A0 chars=3D0x7fffffffc080 =26quot=3B-env XDG=5FVTNR=3D7 -env XDG=5F= SESSION=5FID=3Dc2 -env XDG=5FGREETER=5FDATA=5FDIR=3D/var/lib/lightdm-dat= a/rlange -env SELINUX=5FINIT=3DYES -env CLUTTER=5FIM=5FMODULE=3Dxim -env= SESSION=3Dubuntu -env GPG=5FAGENT=5FINFO=3D/run/user/1000/ke=26quot=3B=2E= =2E=2E=2C nbytes=3D3947=2C coding=3D0xf5a810) at process=2Ec=3A5180=3Cbr= /=3E=2387 0x0000000000674bd9 in read=5Fprocess=5Foutput (proc=3D=2E=2E=2E= =2C channel=3D3947) at process=2Ec=3A5089=3Cbr /=3E=2388 0x0000000000674= 106 in wait=5Freading=5Fprocess=5Foutput (time=5Flimit=3D30=2C nsecs=3D0= =2C read=5Fkbd=3D-1=2C do=5Fdisplay=3Dtrue=2C wait=5Ffor=5Fcell=3D=2E=2E= =2E=2C wait=5Fproc=3D0x0=2C just=5Fwait=5Fproc=3D0) at process=2Ec=3A481= 1=3Cbr /=3E=2389 0x0000000000422d0c in sit=5Ffor (timeout=3D=2E=2E=2E=2C= reading=3Dtrue=2C display=5Foption=3D1) at dispnew=2Ec=3A5867=3Cbr /=3E= =2390 0x0000000000576bff in read=5Fchar (commandflag=3D1=2C map=3D=2E=2E= =2E=2C prev=5Fevent=3D=2E=2E=2E=2C used=5Fmouse=5Fmenu=3D0x7fffffffd7f5=2C= end=5Ftime=3D0x0) at keyboard=2Ec=3A2810=3Cbr /=3E=2391 0x0000000000585= 8f4 in read=5Fkey=5Fsequence (keybuf=3D0x7fffffffda20=2C bufsize=3D30=2C= prompt=3D=2E=2E=2E=2C dont=5Fdowncase=5Flast=3Dfalse=2C can=5Freturn=5F= switch=5Fframe=3Dtrue=2C fix=5Fcurrent=5Fbuffer=3Dtrue=2C prevent=5Fredi= splay=3Dfalse)=3Cbr /=3E=A0=A0=A0 at keyboard=2Ec=3A9089=3Cbr /=3E=2392 = 0x0000000000573161 in command=5Floop=5F1 () at keyboard=2Ec=3A1453=3Cbr = /=3E=2393 0x000000000061726e in internal=5Fcondition=5Fcase (bfun=3D0x57= 2d8a =26lt=3Bcommand=5Floop=5F1=26gt=3B=2C handlers=3D=2E=2E=2E=2C hfun=3D= 0x57253d =26lt=3Bcmd=5Ferror=26gt=3B) at eval=2Ec=3A1348=3Cbr /=3E=2394 = 0x0000000000572a28 in command=5Floop=5F2 (ignore=3D=2E=2E=2E) at keyboar= d=2Ec=3A1178=3Cbr /=3E=2395 0x00000000006166f1 in internal=5Fcatch (tag=3D= =2E=2E=2E=2C func=3D0x572a05 =26lt=3Bcommand=5Floop=5F2=26gt=3B=2C arg=3D= =2E=2E=2E) at eval=2Ec=3A1112=3Cbr /=3E=2396 0x00000000005729dc in comma= nd=5Floop () at keyboard=2Ec=3A1157=3Cbr /=3E=2397 0x0000000000572069 in= recursive=5Fedit=5F1 () at keyboard=2Ec=3A778=3Cbr /=3E=2398 0x00000000= 00572239 in Frecursive=5Fedit () at keyboard=2Ec=3A849=3Cbr /=3E=2399 0x= 000000000057017b in main (argc=3D5=2C argv=3D0x7fffffffdde8) at emacs=2E= c=3A1642=3Cbr /=3E=3Cbr /=3ELisp Backtrace=3A=3Cbr /=3E=26quot=3Bredispl= ay=5Finternal (C function)=26quot=3B (0xd553f0)=3Cbr /=3E=26quot=3Bdelet= e-process=26quot=3B (0xffff6888)=3Cbr /=3E=26quot=3Bserver-delete-client= =26quot=3B (0xffff7008)=3Cbr /=3E0x13524d8 PVEC=5FCOMPILED=3Cbr /=3E=26q= uot=3Bfuncall=26quot=3B (0xffff7740)=3Cbr /=3E0x13544f8 PVEC=5FCOMPILED=3C= br /=3E=26quot=3Bfuncall=26quot=3B (0xffff8120)=3Cbr /=3E=26quot=3Bserve= r-execute=26quot=3B (0xffff8b30)=3Cbr /=3E0x1341258 PVEC=5FCOMPILED=3Cbr= /=3E0x134b470 PVEC=5FCOMPILED=3Cbr /=3E=26quot=3Bfuncall=26quot=3B (0xf= fff99b0)=3Cbr /=3E=26quot=3Bserver-execute-continuation=26quot=3B (0xfff= fa3f0)=3Cbr /=3E0x134a3f0 PVEC=5FCOMPILED=3Cbr /=3E=26quot=3Bfuncall=26q= uot=3B (0xffffab90)=3Cbr /=3E0x13492e0 PVEC=5FCOMPILED=3Cbr /=3E=26quot=3B= funcall=26quot=3B (0xffffb550)=3Cbr /=3E=26quot=3Bserver-process-filter=26= quot=3B (0xffffbe78)=3Cbr /=3E=3Cbr /=3E-----=3Cbr /=3E=3Cspan=3E=3C/spa= n=3E ----ffd9405f2028f6d44b04-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 09 22:39:22 2016 Received: (at 23499) by debbugs.gnu.org; 10 May 2016 02:39:22 +0000 Received: from localhost ([127.0.0.1]:44949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azxZy-0007JJ-Kn for submit@debbugs.gnu.org; Mon, 09 May 2016 22:39:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37947) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1azxZw-0007J6-Kg for 23499@debbugs.gnu.org; Mon, 09 May 2016 22:39:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1azxZm-00015M-Mh for 23499@debbugs.gnu.org; Mon, 09 May 2016 22:39:15 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1azxZm-00015C-J8; Mon, 09 May 2016 22:39:10 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1800 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1azxZk-0006d1-BR; Mon, 09 May 2016 22:39:09 -0400 Date: Tue, 10 May 2016 05:39:10 +0300 Message-Id: <837ff2d4c1.fsf@gnu.org> From: Eli Zaretskii To: "Robert Lange" In-reply-to: (rcl24@drexel.edu) Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.1 (-------) X-Debbugs-Envelope-To: 23499 Cc: 23499@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.1 (-------) > From: "Robert Lange" > Date: Mon, 09 May 2016 16:32:31 -0400 > > #0 require_socket (dpy=0xf98ba0) at ../../src/xcb_io.c:60 > #1 0x00007ffff5fb8b0e in poll_for_event (dpy=dpy@entry=0xf98ba0) at ../../src/xcb_io.c:251 > #2 0x00007ffff5fb8cfc in poll_for_response (dpy=dpy@entry=0xf98ba0) at ../../src/xcb_io.c:289 > #3 0x00007ffff5fb9147 in _XReadEvents (dpy=dpy@entry=0xf98ba0) at ../../src/xcb_io.c:424 > #4 0x00007ffff5fa1751 in XIfEvent (dpy=0xf98ba0, event=event@entry=0x7fffffff83f0, predicate=predicate@entry=0x7ffff5fe7790 <_CheckCMEvent>, arg=arg@entry=0xf50340 "\200\365*\366\377\177") > at ../../src/IfEvent.c:68 > #5 0x00007ffff5fe7f24 in _XimXRead (im=0xf50340, recv_buf=0x7fffffff8dd0 "", buf_len=2048, ret_len=0x7fffffff851c) at ../../../../modules/im/ximcp/imTrX.c:476 > #6 0x00007ffff5fe8b80 in _XimReadData (im=im@entry=0xf50340, len=len@entry=0x7fffffff857e, buf=buf@entry=0x7fffffff8dd0 "", buf_size=buf_size@entry=2048) at ../../../../modules/im/ximcp/imTransR.c:165 > #7 0x00007ffff5fe8e71 in _XimRead (im=im@entry=0xf50340, len=len@entry=0x7fffffff85ce, buf=buf@entry=0x7fffffff8dd0 "", buf_size=buf_size@entry=2048, > predicate=predicate@entry=0x7ffff5fd6c80 <_XimDestroyICCheck>, arg=arg@entry=0x161a370 " \365*\366\377\177") at ../../../../modules/im/ximcp/imTransR.c:235 > #8 0x00007ffff5fd70e8 in _XimProtoDestroyIC (xic=0x161a370) at ../../../../modules/im/ximcp/imDefIc.c:914 > #9 0x00007ffff5fc58d2 in XDestroyIC (ic=0x161a370) at ../../../src/xlibi18n/ICWrap.c:265 > #10 0x000000000054c6d6 in free_frame_xic (f=0x139e798) at xfns.c:2087 > #11 0x00000000005455c5 in x_free_frame_resources (f=0x139e798) at xterm.c:9275 > #12 0x0000000000545c11 in x_destroy_window (f=0x139e798) at xterm.c:9383 > #13 0x000000000042826b in delete_frame (frame=..., force=...) at frame.c:1387 > #14 0x0000000000541ff3 in x_connection_closed (dpy=0xf98ba0, error_message=0x7fffffff9940 "X protocol error: BadPixmap (invalid Pixmap parameter) on protocol request 55") at xterm.c:7635 > #15 0x00000000005422b7 in x_error_quitter (display=0xf98ba0, event=0x7fffffff9af0) at xterm.c:7747 > #16 0x0000000000542209 in x_error_handler (display=0xf98ba0, event=0x7fffffff9af0) at xterm.c:7717 > #17 0x00007ffff5fbb54b in _XError (dpy=dpy@entry=0xf98ba0, rep=rep@entry=0xf76d70) at ../../src/XlibInt.c:1463 > #18 0x00007ffff5fb85e7 in handle_error (dpy=0xf98ba0, err=0xf76d70, in_XReply=) at ../../src/xcb_io.c:213 > #19 0x00007ffff5fb8695 in handle_response (dpy=dpy@entry=0xf98ba0, response=0xf76d70, in_XReply=in_XReply@entry=1) at ../../src/xcb_io.c:325 > #20 0x00007ffff5fb9578 in _XReply (dpy=dpy@entry=0xf98ba0, rep=rep@entry=0x7fffffff9cb0, extra=extra@entry=0, discard=discard@entry=0) at ../../src/xcb_io.c:627 > #21 0x00007ffff5faf4cf in XQueryColor (dpy=0xf98ba0, cmap=32, def=0x7fffffff9d10) at ../../src/QuColor.c:49 > #22 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 This is some kind of X error. Please run the daemon in X synchronous mode (etc/DEBUG tells how to do that), and repeat the experiment. Then the X error should be triggered immediately by whatever operation errors out, and we will see a more helpful backtrace. In that case, please tell what the value of X error is. From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 12:40:45 2016 Received: (at 23499) by debbugs.gnu.org; 10 May 2016 16:40:45 +0000 Received: from localhost ([127.0.0.1]:46100 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0AiC-0002Lf-LP for submit@debbugs.gnu.org; Tue, 10 May 2016 12:40:45 -0400 Received: from pm3.irt.drexel.edu ([144.118.29.83]:43540 helo=smtp.mail.drexel.edu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0AiA-0002LS-V5 for 23499@debbugs.gnu.org; Tue, 10 May 2016 12:40:43 -0400 Received: from esa5000-a.irt.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 2F2DC119039A for <23499@debbugs.gnu.org>; Tue, 10 May 2016 12:40:37 -0400 (EDT) Received: from esa5000-a.irt.drexel.edu (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 05CF524A88F1_7320F05B for <23499@debbugs.gnu.org>; Tue, 10 May 2016 16:40:37 +0000 (GMT) Received: from smtp.mail.drexel.edu (ace-smtp-nat.noc.drexel.edu [144.118.29.70]) by esa5000-a.irt.drexel.edu (Sophos Email Appliance) with ESMTP id C1A9E24A88E0_7320F04F for <23499@debbugs.gnu.org>; Tue, 10 May 2016 16:40:36 +0000 (GMT) Received: from smtp.mail.drexel.edu (localhost.localdomain [127.0.0.1]) by smtp.mail.drexel.edu (Postfix) with SMTP id A2C8AAB0C36 for <23499@debbugs.gnu.org>; Tue, 10 May 2016 12:40:36 -0400 (EDT) X-No-SMTP-Auth: unauthenticated sender Received: from drexel.edu (parula.irt.drexel.edu [144.118.29.36]) by smtp.mail.drexel.edu (Postfix) with ESMTP id 83524AB0AD0 for <23499@debbugs.gnu.org>; Tue, 10 May 2016 12:40:36 -0400 (EDT) Received: from [144.118.29.36] (Forwarded-For: 98.114.23.45) by parula.irt.drexel.edu (mshttpd); Tue, 10 May 2016 12:40:36 -0400 From: "Robert Lange" To: 23499@debbugs.gnu.org Message-ID: Date: Tue, 10 May 2016 12:40:36 -0400 X-Mailer: Oracle Communications Messenger Express 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011) MIME-Version: 1.0 Content-Language: en Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly X-Accept-Language: en Priority: normal In-Reply-To: References: Content-Type: multipart/alternative; boundary="--1d5d21b5209bd400c380b" X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: 23499 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) This is a multi-part message in MIME format. ----1d5d21b5209bd400c380b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 7bit Same setup as before. (gdb) break x_error_quitter (gdb) run -Q -nw -xrm "emacs.synchronous: true" -f server-start Breakpoint 3, x_error_quitter (display=0xfd7720, event=0x7fffffff9ac0) at xterm.c:7732 7732 { (gdb) bt #0 x_error_quitter (display=0xfd7720, event=0x7fffffff9ac0) at xterm.c:7732 #1 0x0000000000542209 in x_error_handler (display=0xfd7720, event=0x7fffffff9ac0) at xterm.c:7717 #2 0x00007ffff5fbb54b in _XError (dpy=dpy@entry=0xfd7720, rep=rep@entry=0xf97e30) at ../../src/XlibInt.c:1463 #3 0x00007ffff5fb85e7 in handle_error (dpy=0xfd7720, err=0xf97e30, in_XReply=) at ../../src/xcb_io.c:213 #4 0x00007ffff5fb8695 in handle_response (dpy=dpy@entry=0xfd7720, response=0xf97e30, in_XReply=in_XReply@entry=1) at ../../src/xcb_io.c:325 #5 0x00007ffff5fb9578 in _XReply (dpy=dpy@entry=0xfd7720, rep=rep@entry=0x7fffffff9c80, extra=extra@entry=0, discard=discard@entry=0) at ../../src/xcb_io.c:627 #6 0x00007ffff5faf4cf in XQueryColor (dpy=0xfd7720, cmap=32, def=0x7fffffff9ce0) at ../../src/QuColor.c:49 #7 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 #8 0x00007ffff6b8c600 in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 #9 0x00007ffff6b8ca6a in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 #10 0x00007ffff66f1afc in CallInitialize (class=0x7ffff6dae960 , req_widget=req_widget@entry=0x7fffffff9ef0, new_widget=new_widget@entry=0x1655210, args=args@entry=0x7fffffffa3c0, num_args=3) at ../../src/Create.c:226 #11 0x00007ffff66f1ac6 in CallInitialize (class=0x7ffff6dac1c0 , req_widget=req_widget@entry=0x7fffffff9ef0, new_widget=new_widget@entry=0x1655210, args=args@entry=0x7fffffffa3c0, num_args=num_args@entry=3) at ../../src/Create.c:221 #12 0x00007ffff66f2427 in xtCreate (name=name@entry=0x703028 "verticalScrollBar", class=class@entry=0x0, widget_class=widget_class@entry=0x7ffff6dac1c0 , parent=parent@entry=0xff6940, default_screen=0xfb5cb0, args=args@entry=0x7fffffffa3c0, num_args=num_args@entry=3, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0, parent_constraint_class=0x0, post_proc=post_proc@entry=0x7ffff66f1b40 ) at ../../src/Create.c:416 #13 0x00007ffff66f2840 in _XtCreateWidget (name=name@entry=0x703028 "verticalScrollBar", widget_class=widget_class@entry=0x7ffff6dac1c0 , parent=parent@entry=0xff6940, args=args@entry=0x7fffffffa3c0, num_args=num_args@entry=3, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0) at ../../src/Create.c:570 #14 0x00007ffff66f2b0e in XtCreateWidget (name=0x703028 "verticalScrollBar", widget_class=0x7ffff6dac1c0 , parent=0xff6940, args=0x7fffffffa3c0, num_args=3) at ../../src/Create.c:589 #15 0x000000000053c417 in x_create_toolkit_scroll_bar (f=0xffed38, bar=0x134e3b8) at xterm.c:4768 #16 0x000000000053c937 in x_scroll_bar_create (w=0x13b0940, top=686, left=1, width=16, height=19) at xterm.c:4960 #17 0x000000000053d167 in XTset_vertical_scroll_bar (w=0x13b0940, portion=0, whole=0, position=0) at xterm.c:5205 #18 0x000000000046b064 in set_vertical_scroll_bar (w=0x13b0940) at xdisp.c:15905 #19 0x000000000046fcfa in redisplay_window (window=..., just_this_one_p=false) at xdisp.c:16947 #20 0x00000000004644f2 in redisplay_window_0 (window=...) at xdisp.c:14373 #21 0x00000000006173df in internal_condition_case_1 (bfun=0x4644b0 , arg=..., handlers=..., hfun=0x46447f ) at eval.c:1372 #22 0x000000000046445d in redisplay_windows (window=...) at xdisp.c:14353 #23 0x0000000000463204 in redisplay_internal () at xdisp.c:13949 #24 0x0000000000463db4 in redisplay_preserve_echo_area (from_where=12) at xdisp.c:14206 #25 0x0000000000674157 in wait_reading_process_output (time_limit=30, nsecs=0, read_kbd=-1, do_display=true, wait_for_cell=..., wait_proc=0x0, just_wait_proc=0) at process.c:4821 #26 0x0000000000422d0c in sit_for (timeout=..., reading=true, display_option=1) at dispnew.c:5867 #27 0x0000000000576bff in read_char (commandflag=1, map=..., prev_event=..., used_mouse_menu=0x7fffffffd7c5, end_time=0x0) at keyboard.c:2810 #28 0x00000000005858f4 in read_key_sequence (keybuf=0x7fffffffd9f0, bufsize=30, prompt=..., dont_downcase_last=false, can_return_switch_frame=true, fix_current_buffer=true, prevent_redisplay=false) at keyboard.c:9089 #29 0x0000000000573161 in command_loop_1 () at keyboard.c:1453 #30 0x000000000061726e in internal_condition_case (bfun=0x572d8a , handlers=..., hfun=0x57253d ) at eval.c:1348 #31 0x0000000000572a28 in command_loop_2 (ignore=...) at keyboard.c:1178 #32 0x00000000006166f1 in internal_catch (tag=..., func=0x572a05 , arg=...) at eval.c:1112 #33 0x00000000005729dc in command_loop () at keyboard.c:1157 #34 0x0000000000572069 in recursive_edit_1 () at keyboard.c:778 #35 0x0000000000572239 in Frecursive_edit () at keyboard.c:849 #36 0x000000000057017b in main (argc=7, argv=0x7fffffffddb8) at emacs.c:1642 Lisp Backtrace: "redisplay_internal (C function)" (0xd553f0) (gdb) print event $1 = (XErrorEvent *) 0x7fffffff9ac0 (gdb) print *event $2 = { type = 0, display = 0xfd7720, resourceid = 0, serial = 1942, error_code = 4 '\004', request_code = 55 '7', minor_code = 0 '\000' } ----1d5d21b5209bd400c380b Content-Type: text/html; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Same setup as before=2E=3Cbr /=3E=3Cbr /=3E(gdb) break x=5Ferror=5Fquitt= er=3Cbr /=3E(gdb) run -Q -nw -xrm =26quot=3Bemacs=2Esynchronous=3A true=26= quot=3B -f server-start=3Cbr /=3E=3Cbr /=3EBreakpoint 3=2C x=5Ferror=5Fq= uitter (display=3D0xfd7720=2C event=3D0x7fffffff9ac0) at xterm=2Ec=3A773= 2=3Cbr /=3E7732=A0=A0=A0 =7B=3Cbr /=3E(gdb) bt=3Cbr /=3E=230=A0 x=5Ferro= r=5Fquitter (display=3D0xfd7720=2C event=3D0x7fffffff9ac0) at xterm=2Ec=3A= 7732=3Cbr /=3E=231=A0 0x0000000000542209 in x=5Ferror=5Fhandler (display= =3D0xfd7720=2C event=3D0x7fffffff9ac0) at xterm=2Ec=3A7717=3Cbr /=3E=232= =A0 0x00007ffff5fbb54b in =5FXError (dpy=3Ddpy=40entry=3D0xfd7720=2C rep= =3Drep=40entry=3D0xf97e30) at =2E=2E/=2E=2E/src/XlibInt=2Ec=3A1463=3Cbr = /=3E=233=A0 0x00007ffff5fb85e7 in handle=5Ferror (dpy=3D0xfd7720=2C err=3D= 0xf97e30=2C in=5FXReply=3D=26lt=3Boptimized out=26gt=3B) at =2E=2E/=2E=2E= /src/xcb=5Fio=2Ec=3A213=3Cbr /=3E=234=A0 0x00007ffff5fb8695 in handle=5F= response (dpy=3Ddpy=40entry=3D0xfd7720=2C response=3D0xf97e30=2C in=5FXR= eply=3Din=5FXReply=40entry=3D1) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A325=3C= br /=3E=235=A0 0x00007ffff5fb9578 in =5FXReply (dpy=3Ddpy=40entry=3D0xfd= 7720=2C rep=3Drep=40entry=3D0x7fffffff9c80=2C extra=3Dextra=40entry=3D0=2C= discard=3Ddiscard=40entry=3D0) at =2E=2E/=2E=2E/src/xcb=5Fio=2Ec=3A627=3C= br /=3E=236=A0 0x00007ffff5faf4cf in XQueryColor (dpy=3D0xfd7720=2C cmap= =3D32=2C def=3D0x7fffffff9ce0) at =2E=2E/=2E=2E/src/QuColor=2Ec=3A49=3Cb= r /=3E=237=A0 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /us= r/lib/x86=5F64-linux-gnu/libXaw3d=2Eso=2E6=3Cbr /=3E=238=A0 0x00007ffff6= b8c600 in =3F=3F () from /usr/lib/x86=5F64-linux-gnu/libXaw3d=2Eso=2E6=3C= br /=3E=239=A0 0x00007ffff6b8ca6a in =3F=3F () from /usr/lib/x86=5F64-li= nux-gnu/libXaw3d=2Eso=2E6=3Cbr /=3E=2310 0x00007ffff66f1afc in CallIniti= alize (class=3D0x7ffff6dae960 =26lt=3BthreeDClassRec=26gt=3B=2C req=5Fwi= dget=3Dreq=5Fwidget=40entry=3D0x7fffffff9ef0=2C new=5Fwidget=3Dnew=5Fwid= get=40entry=3D0x1655210=2C args=3Dargs=40entry=3D0x7fffffffa3c0=2C =3Cbr= /=3E=A0=A0=A0 num=5Fargs=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A226=3Cb= r /=3E=2311 0x00007ffff66f1ac6 in CallInitialize (class=3D0x7ffff6dac1c0= =26lt=3BscrollbarClassRec=26gt=3B=2C req=5Fwidget=3Dreq=5Fwidget=40entr= y=3D0x7fffffff9ef0=2C new=5Fwidget=3Dnew=5Fwidget=40entry=3D0x1655210=2C= args=3Dargs=40entry=3D0x7fffffffa3c0=2C =3Cbr /=3E=A0=A0=A0 num=5Fargs=3D= num=5Fargs=40entry=3D3) at =2E=2E/=2E=2E/src/Create=2Ec=3A221=3Cbr /=3E=23= 12 0x00007ffff66f2427 in xtCreate (name=3Dname=40entry=3D0x703028 =26quo= t=3BverticalScrollBar=26quot=3B=2C class=3Dclass=40entry=3D0x0=2C widget= =5Fclass=3Dwidget=5Fclass=40entry=3D0x7ffff6dac1c0 =26lt=3BscrollbarClas= sRec=26gt=3B=2C parent=3Dparent=40entry=3D0xff6940=2C =3Cbr /=3E=A0=A0=A0= default=5Fscreen=3D0xfb5cb0=2C args=3Dargs=40entry=3D0x7fffffffa3c0=2C = num=5Fargs=3Dnum=5Fargs=40entry=3D3=2C typed=5Fargs=3Dtyped=5Fargs=40ent= ry=3D0x0=2C num=5Ftyped=5Fargs=3Dnum=5Ftyped=5Fargs=40entry=3D0=2C paren= t=5Fconstraint=5Fclass=3D0x0=2C =3Cbr /=3E=A0=A0=A0 post=5Fproc=3Dpost=5F= proc=40entry=3D0x7ffff66f1b40 =26lt=3BwidgetPostProc=26gt=3B) at =2E=2E/= =2E=2E/src/Create=2Ec=3A416=3Cbr /=3E=2313 0x00007ffff66f2840 in =5FXtCr= eateWidget (name=3Dname=40entry=3D0x703028 =26quot=3BverticalScrollBar=26= quot=3B=2C widget=5Fclass=3Dwidget=5Fclass=40entry=3D0x7ffff6dac1c0 =26l= t=3BscrollbarClassRec=26gt=3B=2C parent=3Dparent=40entry=3D0xff6940=2C =3C= br /=3E=A0=A0=A0 args=3Dargs=40entry=3D0x7fffffffa3c0=2C num=5Fargs=3Dnu= m=5Fargs=40entry=3D3=2C typed=5Fargs=3Dtyped=5Fargs=40entry=3D0x0=2C num= =5Ftyped=5Fargs=3Dnum=5Ftyped=5Fargs=40entry=3D0) at =2E=2E/=2E=2E/src/C= reate=2Ec=3A570=3Cbr /=3E=2314 0x00007ffff66f2b0e in XtCreateWidget (nam= e=3D0x703028 =26quot=3BverticalScrollBar=26quot=3B=2C widget=5Fclass=3D0= x7ffff6dac1c0 =26lt=3BscrollbarClassRec=26gt=3B=2C parent=3D0xff6940=2C = args=3D0x7fffffffa3c0=2C num=5Fargs=3D3) at =2E=2E/=2E=2E/src/Create=2Ec= =3A589=3Cbr /=3E=2315 0x000000000053c417 in x=5Fcreate=5Ftoolkit=5Fscrol= l=5Fbar (f=3D0xffed38=2C bar=3D0x134e3b8) at xterm=2Ec=3A4768=3Cbr /=3E=23= 16 0x000000000053c937 in x=5Fscroll=5Fbar=5Fcreate (w=3D0x13b0940=2C top= =3D686=2C left=3D1=2C width=3D16=2C height=3D19) at xterm=2Ec=3A4960=3Cb= r /=3E=2317 0x000000000053d167 in XTset=5Fvertical=5Fscroll=5Fbar (w=3D0= x13b0940=2C portion=3D0=2C whole=3D0=2C position=3D0) at xterm=2Ec=3A520= 5=3Cbr /=3E=2318 0x000000000046b064 in set=5Fvertical=5Fscroll=5Fbar (w=3D= 0x13b0940) at xdisp=2Ec=3A15905=3Cbr /=3E=2319 0x000000000046fcfa in red= isplay=5Fwindow (window=3D=2E=2E=2E=2C just=5Fthis=5Fone=5Fp=3Dfalse) at= xdisp=2Ec=3A16947=3Cbr /=3E=2320 0x00000000004644f2 in redisplay=5Fwind= ow=5F0 (window=3D=2E=2E=2E) at xdisp=2Ec=3A14373=3Cbr /=3E=2321 0x000000= 00006173df in internal=5Fcondition=5Fcase=5F1 (bfun=3D0x4644b0 =26lt=3Br= edisplay=5Fwindow=5F0=26gt=3B=2C arg=3D=2E=2E=2E=2C handlers=3D=2E=2E=2E= =2C hfun=3D0x46447f =26lt=3Bredisplay=5Fwindow=5Ferror=26gt=3B) at eval=2E= c=3A1372=3Cbr /=3E=2322 0x000000000046445d in redisplay=5Fwindows (windo= w=3D=2E=2E=2E) at xdisp=2Ec=3A14353=3Cbr /=3E=2323 0x0000000000463204 in= redisplay=5Finternal () at xdisp=2Ec=3A13949=3Cbr /=3E=2324 0x000000000= 0463db4 in redisplay=5Fpreserve=5Fecho=5Farea (from=5Fwhere=3D12) at xdi= sp=2Ec=3A14206=3Cbr /=3E=2325 0x0000000000674157 in wait=5Freading=5Fpro= cess=5Foutput (time=5Flimit=3D30=2C nsecs=3D0=2C read=5Fkbd=3D-1=2C do=5F= display=3Dtrue=2C wait=5Ffor=5Fcell=3D=2E=2E=2E=2C wait=5Fproc=3D0x0=2C = just=5Fwait=5Fproc=3D0) at process=2Ec=3A4821=3Cbr /=3E=2326 0x000000000= 0422d0c in sit=5Ffor (timeout=3D=2E=2E=2E=2C reading=3Dtrue=2C display=5F= option=3D1) at dispnew=2Ec=3A5867=3Cbr /=3E=2327 0x0000000000576bff in r= ead=5Fchar (commandflag=3D1=2C map=3D=2E=2E=2E=2C prev=5Fevent=3D=2E=2E=2E= =2C used=5Fmouse=5Fmenu=3D0x7fffffffd7c5=2C end=5Ftime=3D0x0) at keyboar= d=2Ec=3A2810=3Cbr /=3E=2328 0x00000000005858f4 in read=5Fkey=5Fsequence = (keybuf=3D0x7fffffffd9f0=2C bufsize=3D30=2C prompt=3D=2E=2E=2E=2C dont=5F= downcase=5Flast=3Dfalse=2C can=5Freturn=5Fswitch=5Fframe=3Dtrue=2C fix=5F= current=5Fbuffer=3Dtrue=2C prevent=5Fredisplay=3Dfalse)=3Cbr /=3E=A0=A0=A0= at keyboard=2Ec=3A9089=3Cbr /=3E=2329 0x0000000000573161 in command=5Fl= oop=5F1 () at keyboard=2Ec=3A1453=3Cbr /=3E=2330 0x000000000061726e in i= nternal=5Fcondition=5Fcase (bfun=3D0x572d8a =26lt=3Bcommand=5Floop=5F1=26= gt=3B=2C handlers=3D=2E=2E=2E=2C hfun=3D0x57253d =26lt=3Bcmd=5Ferror=26g= t=3B) at eval=2Ec=3A1348=3Cbr /=3E=2331 0x0000000000572a28 in command=5F= loop=5F2 (ignore=3D=2E=2E=2E) at keyboard=2Ec=3A1178=3Cbr /=3E=2332 0x00= 000000006166f1 in internal=5Fcatch (tag=3D=2E=2E=2E=2C func=3D0x572a05 =26= lt=3Bcommand=5Floop=5F2=26gt=3B=2C arg=3D=2E=2E=2E) at eval=2Ec=3A1112=3C= br /=3E=2333 0x00000000005729dc in command=5Floop () at keyboard=2Ec=3A1= 157=3Cbr /=3E=2334 0x0000000000572069 in recursive=5Fedit=5F1 () at keyb= oard=2Ec=3A778=3Cbr /=3E=2335 0x0000000000572239 in Frecursive=5Fedit ()= at keyboard=2Ec=3A849=3Cbr /=3E=2336 0x000000000057017b in main (argc=3D= 7=2C argv=3D0x7fffffffddb8) at emacs=2Ec=3A1642=3Cbr /=3E=3Cbr /=3ELisp = Backtrace=3A=3Cbr /=3E=26quot=3Bredisplay=5Finternal (C function)=26quot= =3B (0xd553f0)=3Cbr /=3E=3Cbr /=3E(gdb) print event=3Cbr /=3E=241 =3D (X= ErrorEvent *) 0x7fffffff9ac0=3Cbr /=3E=3Cbr /=3E(gdb) print *event=3Cbr = /=3E=242 =3D =7B=3Cbr /=3E=A0 type =3D 0=2C =3Cbr /=3E=A0 display =3D 0x= fd7720=2C =3Cbr /=3E=A0 resourceid =3D 0=2C =3Cbr /=3E=A0 serial =3D 194= 2=2C =3Cbr /=3E=A0 error=5Fcode =3D 4 =27=5C004=27=2C =3Cbr /=3E=A0 requ= est=5Fcode =3D 55 =277=27=2C =3Cbr /=3E=A0 minor=5Fcode =3D 0 =27=5C000=27= =3Cbr /=3E=7D=3Cbr /=3E=3Cbr /=3E ----1d5d21b5209bd400c380b-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 10 12:59:56 2016 Received: (at 23499) by debbugs.gnu.org; 10 May 2016 16:59:56 +0000 Received: from localhost ([127.0.0.1]:46113 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0B0m-0002oh-Dg for submit@debbugs.gnu.org; Tue, 10 May 2016 12:59:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b0B0k-0002oT-VH for 23499@debbugs.gnu.org; Tue, 10 May 2016 12:59:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0B0c-0005N6-CW for 23499@debbugs.gnu.org; Tue, 10 May 2016 12:59:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0B0c-0005MP-9Y; Tue, 10 May 2016 12:59:46 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2949 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b0B0Y-0008OG-Rv; Tue, 10 May 2016 12:59:44 -0400 Date: Tue, 10 May 2016 19:59:46 +0300 Message-Id: <83wpn1c0hp.fsf@gnu.org> From: Eli Zaretskii To: "Robert Lange" In-reply-to: (rcl24@drexel.edu) Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.1 (-------) X-Debbugs-Envelope-To: 23499 Cc: 23499@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.1 (-------) > From: "Robert Lange" > Date: Tue, 10 May 2016 12:40:36 -0400 > > (gdb) break x_error_quitter > (gdb) run -Q -nw -xrm "emacs.synchronous: true" -f server-start > > Breakpoint 3, x_error_quitter (display=0xfd7720, event=0x7fffffff9ac0) at xterm.c:7732 > 7732 { > (gdb) bt > #0 x_error_quitter (display=0xfd7720, event=0x7fffffff9ac0) at xterm.c:7732 > #1 0x0000000000542209 in x_error_handler (display=0xfd7720, event=0x7fffffff9ac0) at xterm.c:7717 > #2 0x00007ffff5fbb54b in _XError (dpy=dpy@entry=0xfd7720, rep=rep@entry=0xf97e30) at ../../src/XlibInt.c:1463 > #3 0x00007ffff5fb85e7 in handle_error (dpy=0xfd7720, err=0xf97e30, in_XReply=) at ../../src/xcb_io.c:213 > #4 0x00007ffff5fb8695 in handle_response (dpy=dpy@entry=0xfd7720, response=0xf97e30, in_XReply=in_XReply@entry=1) at ../../src/xcb_io.c:325 > #5 0x00007ffff5fb9578 in _XReply (dpy=dpy@entry=0xfd7720, rep=rep@entry=0x7fffffff9c80, extra=extra@entry=0, discard=discard@entry=0) at ../../src/xcb_io.c:627 > #6 0x00007ffff5faf4cf in XQueryColor (dpy=0xfd7720, cmap=32, def=0x7fffffff9ce0) at ../../src/QuColor.c:49 > #7 0x00007ffff6b8c50c in Xaw3dComputeTopShadowRGB () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 > #8 0x00007ffff6b8c600 in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 > #9 0x00007ffff6b8ca6a in ?? () from /usr/lib/x86_64-linux-gnu/libXaw3d.so.6 > #10 0x00007ffff66f1afc in CallInitialize (class=0x7ffff6dae960 , req_widget=req_widget@entry=0x7fffffff9ef0, new_widget=new_widget@entry=0x1655210, args=args@entry=0x7fffffffa3c0, > num_args=3) at ../../src/Create.c:226 > #11 0x00007ffff66f1ac6 in CallInitialize (class=0x7ffff6dac1c0 , req_widget=req_widget@entry=0x7fffffff9ef0, new_widget=new_widget@entry=0x1655210, args=args@entry=0x7fffffffa3c0, > num_args=num_args@entry=3) at ../../src/Create.c:221 > #12 0x00007ffff66f2427 in xtCreate (name=name@entry=0x703028 "verticalScrollBar", class=class@entry=0x0, widget_class=widget_class@entry=0x7ffff6dac1c0 , parent=parent@entry=0xff6940, > default_screen=0xfb5cb0, args=args@entry=0x7fffffffa3c0, num_args=num_args@entry=3, typed_args=typed_args@entry=0x0, num_typed_args=num_typed_args@entry=0, parent_constraint_class=0x0, > post_proc=post_proc@entry=0x7ffff66f1b40 ) at ../../src/Create.c:416 > #13 0x00007ffff66f2840 in _XtCreateWidget (name=name@entry=0x703028 "verticalScrollBar", widget_class=widget_class@entry=0x7ffff6dac1c0 , parent=parent@entry=0xff6940, So now we know that the error is caused by creation of the vertical scrollbar. > (gdb) print event > $1 = (XErrorEvent *) 0x7fffffff9ac0 > > (gdb) print *event > $2 = { > type = 0, > display = 0xfd7720, > resourceid = 0, > serial = 1942, > error_code = 4 '\004', > request_code = 55 '7', > minor_code = 0 '\000' > } Error code 4 is BadPixmap, according to my references. I hope some X expert will chime in and tell why this happens. (I actually don't understand why we try to create the scroll bar when the frame is iconified.) Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 07 20:37:59 2016 Received: (at control) by debbugs.gnu.org; 8 Dec 2016 01:38:00 +0000 Received: from localhost ([127.0.0.1]:60521 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEnep-0001QB-Q7 for submit@debbugs.gnu.org; Wed, 07 Dec 2016 20:37:59 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50727) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEneo-0001Py-JG for control@debbugs.gnu.org; Wed, 07 Dec 2016 20:37:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEndu-00061y-HU for control@debbugs.gnu.org; Wed, 07 Dec 2016 20:37:53 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEndu-00061i-Bg for control@debbugs.gnu.org; Wed, 07 Dec 2016 20:37:02 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cEndt-0006Cc-TN for control@debbugs.gnu.org; Wed, 07 Dec 2016 20:37:02 -0500 Subject: control message for bug 23499 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Wed, 07 Dec 2016 20:37:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.0 (--------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.0 (--------) tag 23499 = help From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 03 06:15:46 2017 Received: (at 23499) by debbugs.gnu.org; 3 Sep 2017 10:15:47 +0000 Received: from localhost ([127.0.0.1]:44796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doRwQ-0003Xd-N4 for submit@debbugs.gnu.org; Sun, 03 Sep 2017 06:15:46 -0400 Received: from mout.gmx.net ([212.227.17.21]:49547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doRwO-0003XF-GF for 23499@debbugs.gnu.org; Sun, 03 Sep 2017 06:15:44 -0400 Received: from [192.168.1.100] ([46.125.249.17]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MdaiW-1e9GaB1KXM-00PLw7; Sun, 03 Sep 2017 12:15:35 +0200 Message-ID: <59ABD642.9050908@gmx.at> Date: Sun, 03 Sep 2017 12:15:30 +0200 From: martin rudalics MIME-Version: 1.0 To: Robert Lange , 23499@debbugs.gnu.org Subject: Re: bug#23499: 24.5; emacs --daemon hangs randomly when emacsclient -c used repeatedly References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:iwOVICIZeUuapSMp/6kaclIwFRFlJgzxYpMgq1lnJOkBkMKqMyi BLnnl4sEoTplApMsq0dJed5P8DccKatzcZHL2xYrqcHke9gpOua5Us80dA1QaA8ZNlZWb/n 9JtB0Zz21RelJBcTAmuguejPAUwkEFkpOhJyVOr60QvmiWQ9XklY6hDEntfdsh95IBfPpfj 6n74kJVIW9zfolOkuhvSQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:OES7lvSqaj8=:TLop0K4vNkdstjcDza7g+G z2r6G2wr6LHBbvR75bXPnfVHCz1Hkutz4Ddtc5xtfGt1jc9qSwxC2AHMyl+Nq8SikshUt3/3q p0z7fqAd9DamGqAQFNxuj2oAg+329yJ3c59b2e0l5Ky4B4t5CFtwnQbL32Aahge0yG8R6o0MA F0XOQKBoSWv2QtWdnuy6rGBhzmBkCNDZG05jbxIdyvsLIBSutYJ2ZW35OCOpx+zR8i1qEEyrx zxLUOEuhA/rOYZSvuXO1WP4jOAzIh1OMNBscIF4zmM1ssZdYyDTdSJSMgKRzkPImJa/hdBBTj YX2lPvP1vTyH3PGEcC5qqRIguhc7Bersi5KkWXYKBf1IF0ql90LwMUCkN0CHRdW9aqLIvevxg At8B4grzhfjllkdjVqvL+XTnFHCQKiq4NAuIYfDqZn+LeTPkKBI9BsHOVcjpL2Cs1jDqQZ7Jg 2BDABMg8q8eBbadA70I3tr9PSwy1/imHsZ88aueFrZYZ1yPebdaMXiEkGEC6YNPFqI2SXIPFN TmuGNy6w9xjgAv3SE/OntxFaAdAivTc6asXE4+7yyOF8jdI6HKLwn5dMYzi3BDY7F2mVXACUB pJRgaPhKIc7KU5smXMg4vHIo/ENuPD/bsyU5NYKxAuA6kciRs5sSZBJvYKGCimqstdI/MO+LA Y2LmhuPqxzEV7aYg3Tvdapwy/nwNZWsnWtHmxbA/xkGLpx6z0tVcU8t07g+trgEtw0ArjKtnL p3H8EjZzctfhfU7Kt0PbAqQoF6ycUlZzOxehMPBHbTKtmm5/KcVKqFaf69RaMw1V+aykoD0KY BVX2EOJIFY72qunCgGOWpt5PXwiaS8PwIgODdu07fMSov8HWeU4PBcuww3BEmE0QKa0ao7I X-Spam-Score: -0.2 (/) X-Debbugs-Envelope-To: 23499 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.2 (/) > 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 05 16:05:39 2017 Received: (at control) by debbugs.gnu.org; 5 Sep 2017 20:05:39 +0000 Received: from localhost ([127.0.0.1]:51858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpK6N-0007Cw-2b for submit@debbugs.gnu.org; Tue, 05 Sep 2017 16:05:39 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39217) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dpK6K-0007Ck-S1 for control@debbugs.gnu.org; Tue, 05 Sep 2017 16:05:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dpK6B-0000YI-D4 for control@debbugs.gnu.org; Tue, 05 Sep 2017 16:05:31 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dpK6B-0000YD-AE for control@debbugs.gnu.org; Tue, 05 Sep 2017 16:05:27 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1dpK6B-0008N4-2j for control@debbugs.gnu.org; Tue, 05 Sep 2017 16:05:27 -0400 Subject: control message for bug 23499 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Tue, 05 Sep 2017 16:05:27 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) close 23499 26.1 From unknown Mon Aug 18 11:32:36 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 04 Oct 2017 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator