From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ashish.is@lostca.se (Ashish SHUKLA) Newsgroups: gmane.emacs.bugs Subject: bug#13864: 24.3.50; emacsclient -t loops when connected to emacs server running in X11 Date: Thu, 07 Mar 2013 00:22:43 +0530 Organization: Lost Case Message-ID: <868v60743o.fsf@chateau.d.if> References: <86y5e4xpd8.fsf@chateau.d.if> <83ehfvt5pp.fsf@gnu.org> <86mwujou60.fsf@chateau.d.if> <83y5e2synt.fsf@gnu.org> <86ip56adz3.fsf@chateau.d.if> <83txoo1mp3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1362596036 22301 80.91.229.3 (6 Mar 2013 18:53:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Mar 2013 18:53:56 +0000 (UTC) Cc: 13864@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 19:54:12 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDJTc-0007HZ-HN for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 19:54:08 +0100 Original-Received: from localhost ([::1]:56503 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDJTG-0002ua-Ta for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2013 13:53:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDJT9-0002lG-Ps for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 13:53:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDJT4-0004FZ-Sz for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 13:53:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDJT4-0004FL-P8 for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 13:53:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UDJTV-0005wJ-IZ for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2013 13:54:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <86y5e4xpd8.fsf@chateau.d.if> Resent-From: ashish.is@lostca.se (Ashish SHUKLA) Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Mar 2013 18:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 13864-submit@debbugs.gnu.org id=B13864.136259602822812 (code B ref 13864); Wed, 06 Mar 2013 18:54:01 +0000 Original-Received: (at 13864) by debbugs.gnu.org; 6 Mar 2013 18:53:48 +0000 Original-Received: from localhost ([127.0.0.1]:34709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDJTD-0005vo-7E for submit@debbugs.gnu.org; Wed, 06 Mar 2013 13:53:47 -0500 Original-Received: from arati.lostca.se ([144.76.32.53]:49645 ident=having) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UDJT5-0005vb-OC for 13864@debbugs.gnu.org; Wed, 06 Mar 2013 13:53:40 -0500 Original-Received: from arati.lostca.se (localhost [127.0.0.1]) by arati.lostca.se (Postfix) with ESMTP id B2A73DFB; Wed, 6 Mar 2013 18:52:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=lostca.se; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=howrah; bh=CANoM1jjiJZhfBPQrrkpSjyYeUg=; b=Dp3JQ66WyaPJsjX9M2 1IM6XxmwVRN8h4fbbXXzAOrzz/Bdzc9rFj5UFFE8FztEbc3cnTzmrgVM49xQGSdx JashEjjyf6pM3Jc272PMTFldDy1ueLVR3FeMyMWsT42mDUhJ8ZrI9DR6y85dPHRf 3tbFDP5wj2tOLdHHlDxd1hGmI= Original-Received: from chateau.d.if (localhost [IPv6:::1]) by arati.lostca.se (Postfix) with ESMTP id 6B158DFA; Wed, 6 Mar 2013 18:52:58 +0000 (UTC) Original-Received: from chateau.d.if (localhost [IPv6:::1]); by chateau.d.if (OpenSMTPD) with ESMTP id 9ff1ffd3; Thu, 7 Mar 2013 00:22:48 +0530 (IST) X-Face: )vGQ9yK7Y$Flebu1C>(B\gYBm)[$zfKM+p&TT[[JWl6:]S>cc$%-z7-`46Zf0B*syL.C]oCq[upTG~zuS0.$"_%)|Q@$hA=9{3l{%u^h3jJ^Zl; t7 X-Uptime: 11:08PM up 2:41, 8 users, load averages: 0.16, 0.11, 0.03 X-Operating-System: FreeBSD/FreeBSD 9.1-RELEASE/amd64 X-OpenPGP-Fingerprint: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 X-Attribution: =?UTF-8?Q?=E0=A4=86=E0=A4=B6=E0=A5=80=E0=A4=B7?= Organisation: Lost Case X-Hashcash: 1:20:130306:eliz@gnu.org::eCjTb/V4m6hvBRZs:000000aCK X-Hashcash: 1:20:130306:ashish.is@lostca.se::EBE7KxbxJPdvCdhz:0000000000000000000000000000000000000000002Owd X-Hashcash: 1:20:130306:13864@debbugs.gnu.org::UgJhJagJFoCK3qyq:0000000000000000000000000000000000000000Gk2D User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (amd64-portbld-freebsd9.1) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJ1BMVEWpqal/f39tbW1jY2Md HR2goKCenp6UlJROTk7////9/f35+fnT09ORJdieAAACVklEQVQ4jXXUP2vbQBQA8AvUTkgz5OzY Z0iGWhpS6BSrkECn0mvx0MEJ6AjtYrfoBCVDlD8naJYmNlRfwZq8+mkKlIZaGpJSYmP7Q/XkJDrJ Td8i/H68u3vHPaPufwLdf32AMA4A6GcAgvAamY1pOJiDIFqicTwLswDhfr3uxfFtkAY/GFHPMwzD 8zpnACmIOnE6js7rQb+v4NJrG9od0C+QgpHMy5jBewV+UDSMWiw1Y4fWfyV7+NGFzDsYa3pth9LJ Q4XvXxFHcJRvHOmygn5NAEabnDcQQguarnfoiwSCJ99jmKKcphsZONmWsDK9Ro7cvZOCtQdg8nje egLhc2LNlkLmsezzTFUUy5w18ocox/f0LaLgJy0zO75zk+9pp85GAj36xjqhdI0y3tq2m4dqqcWX zQWBTz8L1irvolXV4J+3q7eCDgVnttjNq6X8H+9KOZsuNk1uCzx8pSp+E9HImfJOTLdcGqo+YKnG EIovizkEn48V7BO+ch2DXcD4ENSpWiU+q8hjjbgTBZCXnZtyj0Ws4Q1Q0B2WXFtYZo65Bbyeeldw RS6qFueM80LlLA29YlVwGRYvFD+kwI/0O+A2PlpOP9GwslUVciHuYGechuBTp922YiDZCrghTknm XSyOM+D3aoRZlo0Jb42zY7DN4p2x4AeZ+QAYutx1sHwTHzMT5cMNduQ9yW3GczN4KZ86kb0c9O8T yXDeFqpl2fryPEAYGXIlezAPXYh2NgVr/gvdoHIuDwuPwOhcWE8f8mmICq41eATkn8x0kuRTIKcB wE9+/QUtiiAnYcaN7wAAAABJRU5ErkJggg== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:72171 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed, 06 Mar 2013 19:07:36 +0200, Eli Zaretskii said: >> From: ashish.is@lostca.se (Ashish SHUKLA) >> Cc: 13864@debbugs.gnu.org >> Date: Tue, 05 Mar 2013 05:56:40 +0530 >>=20 >> I tried r1110803, r110921, r111026, r111253, r111312, and r111607, they = were >> good. Then, I tried r111818, and it has this. >>=20 >> No problem with Emacs 23.4. > So this is a recent regression. Thanks, this narrows down the set of > culprits quite a bit, but still not enough to see the root cause. > Could you please attach a debugger to Emacs, after starting the > server, but before opening the TTY frame with emacsclient, and set a > breakpoint like this: > (gdb) break update_frame_1 > (gdb) commands >> p force_p >> p inhibit_id_p >> continue >> end > (gdb) > Then re-create the problem and see whether update_frame_1 is called > very frequently, and if so, what are the values of the 2 arguments > printed by the breakpoint commands above. (I don't know what is your > level of proficiency with GDB, so let me know if you need more > detailed instructions.) > Don't forget to invoke GDB from the src directory, and make sure that > it reads the .gdbinit file there, and does not reject it due to > security considerations. > If update_frame_1 indeed gets called at high frequency when the xterm > frame flickers, then please do the same when Emacs is started with -nw > (in which case I understand that there's no flickering), and see if > there's any difference in the frequency of calls to update_frame_1 and > in the values of the above 2 arguments. Output with 'emacs -Q': #v+ Breakpoint 3, update_frame_1 (f=3D0x1895d98, force_p=3Dtrue, inhibit_id_p= =3Dfalse) at dispnew.c:4474 4474 struct glyph_matrix *current_matrix =3D f->current_matrix; $85 =3D true $86 =3D false Breakpoint 3, update_frame_1 (f=3D0x1895d98, force_p=3Dtrue, inhibit_id_p= =3Dfalse) at dispnew.c:4474 4474 struct glyph_matrix *current_matrix =3D f->current_matrix; $87 =3D true $88 =3D false Breakpoint 3, update_frame_1 (f=3D0x1895d98, force_p=3Dtrue, inhibit_id_p= =3Dfalse) at dispnew.c:4474 4474 struct glyph_matrix *current_matrix =3D f->current_matrix; $89 =3D true $90 =3D false #v- Output with 'emacs -Q -nw': #v+ Breakpoint 3, update_frame_1 (f=3D0x1255c48, force_p=3Dtrue, inhibit_id_p= =3Dfalse) at dispnew.c:4474 4474 struct glyph_matrix *current_matrix =3D f->current_matrix; $39 =3D true $40 =3D false Breakpoint 3, update_frame_1 (f=3D0x1255c48, force_p=3Dtrue, inhibit_id_p= =3Dfalse) at dispnew.c:4474 4474 struct glyph_matrix *current_matrix =3D f->current_matrix; $41 =3D true $42 =3D false Breakpoint 3, update_frame_1 (f=3D0x1255c48, force_p=3Dtrue, inhibit_id_p= =3Dfalse) at dispnew.c:4474 4474 struct glyph_matrix *current_matrix =3D f->current_matrix; $43 =3D true $44 =3D false #v- Output with 'emacs -Q' was more frequent, whereas output with 'emacs -Q -nw' only printed when I pressed some key into the 'emacsclient' xterm window. HTH =2D-=20 Ashish SHUKLA =E2=80=9CI am free, no matter what rules surround me. If I find them tolera= ble, I tolerate them; if I find them too obnoxious, I break them. I am free becaus= e I know that I alone am morally responsible for everything I do.=E2=80=9D (Rob= ert A. Heinlein, "The Moon Is a Harsh Mistress", 1966) Sent from my Emacs --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iQIcBAEBCgAGBQJRN5B/AAoJEMdGz6nnT6SwFhUQAKCVARbUT2EhJJlsxAarPoW0 mClJZmBcJkE71iPfLgRRTKZGIGokXt4coeaqwhn4qZbM0OOwr1pM//XuORgJz5zN AHzQpd9JA5dlLiCVimhkSoNI/ilEjkCygYOWF1wpDkaszOHCV/8513QVGcpZVAgY 1jUen6W4thMkk5+Dz/ARK9GQIzvC0hqC0vPSHjHU+QaFkV+ZA1umXD/8vONnTFBc iNQ1U4QsuZndESffVwdoJcB5SgfNe3A3ejT8a1on9adO3H5J7aZ2fR+cvuYdrlMs kzk8c+Ct4D3fIOILAVqDRhZe6tiQeDPvqc3suEon76+GU1K8XdmHtirfkANdeEmg +luYSUS9T+IcYh6YqK/u5fuXUadnqpMxQ8zfs62i2aRap7ihKYnRodpzhPTCuPnp o+yH53aRiAEC0DQXnOBnD4PPv6Ph46r4us8MR4cWhgBntDZja+FcrZfqOVPCRRsh 7SHMMLRSc+0dlVY7ft7ZIeYHZUR4OCPyAdBTcKAGZZlwzi650fynB23HfWMTweMI yovYX7DDz0xDU3fnpS6K1uKC0e4W7S6Ch0wB/Qrj3t4PCiC4+nxrQZv/XfMetChZ yUuFmrxCMWvYLLYD9BYUv2UGUNUrTNa1u3gdAJpNtNJpe9fVd8MbiLf1whFIeBTY 6LMahfPJA3D6QPE4GNaf =t6HP -----END PGP SIGNATURE----- --=-=-=--