From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Need help debugging Emacs: emacsclient will not draw its contents sometimes Date: Tue, 08 Sep 2015 22:16:03 +0300 Message-ID: <8337yo7mdo.fsf@gnu.org> References: <83fv2o7rtp.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1441739783 29218 80.91.229.3 (8 Sep 2015 19:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 8 Sep 2015 19:16:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jon Dufresne Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 08 21:16:15 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZZONI-00058K-0A for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 21:16:12 +0200 Original-Received: from localhost ([::1]:36818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZONH-0000vg-MD for ged-emacs-devel@m.gmane.org; Tue, 08 Sep 2015 15:16:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZON3-0000vW-BD for emacs-devel@gnu.org; Tue, 08 Sep 2015 15:15:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZOMy-0004qT-DJ for emacs-devel@gnu.org; Tue, 08 Sep 2015 15:15:57 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:60646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZOMy-0004pC-0h for emacs-devel@gnu.org; Tue, 08 Sep 2015 15:15:52 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NUD00300H1S8800@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Tue, 08 Sep 2015 22:15:50 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NUD003XWHID8W00@a-mtaout20.012.net.il>; Tue, 08 Sep 2015 22:15:50 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:189736 Archived-At: > Date: Tue, 8 Sep 2015 11:58:35 -0700 > From: Jon Dufresne > Cc: emacs-devel@gnu.org > > On Tue, Sep 8, 2015 at 10:18 AM, Eli Zaretskii wrote: > > The backtrace shows that Emacs is idle, waiting for input, which is > > normal. Try typing "finish" repeatedly to step out of the functions > > shown in the backtrace, until some of them doesn't return. Then tell > > here which one didn't. > > Thanks! > > I have tried this. The results are below. The client process hung on > the first "finish" while the server process took a few more commands > but eventually hung in command_loop_1(). Any thoughts on this? The "hang" in command_loop_1 is not a hang -- that's the main loop where Emacs does its job. So now the question is why you don't see the display. Please step through command_loop_1 until it calls read_key_sequence, step into that, then step until it calls read_char, and step through read_char until it calls redisplay_internal. Once you are inside redisplay_internal, step through it and show which lines are being executed.