From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.bugs Subject: bug#16674: 24.3.50; crash: redisplay_internal, update_frame, using client-daemon in tmux Date: Sun, 09 Feb 2014 02:39:09 -0500 Message-ID: <877g9420rm.fsf@holos.localdomain> References: <87sirwvsr0.fsf@holos.localdomain> <83y51nxuia.fsf@gnu.org> <87d2iyx5yn.fsf@holos.localdomain> <83ppmxx4wc.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1391931495 25521 80.91.229.3 (9 Feb 2014 07:38:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Feb 2014 07:38:15 +0000 (UTC) To: 16674@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 09 08:38:22 2014 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 1WCOy5-00085E-BR for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2014 08:38:21 +0100 Original-Received: from localhost ([::1]:49569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOy4-0007o1-Vi for geb-bug-gnu-emacs@m.gmane.org; Sun, 09 Feb 2014 02:38:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOxw-0007nc-1S for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:38:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCOxq-0001H4-MD for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:38:11 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOxq-0001Gz-Hx for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:38:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WCOxp-0002iW-81 for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:38:05 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <87sirwvsr0.fsf@holos.localdomain> Resent-From: Mark Oteiza Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 09 Feb 2014 07:38:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16674 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.139193148210438 (code B ref -1); Sun, 09 Feb 2014 07:38:04 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2014 07:38:02 +0000 Original-Received: from localhost ([127.0.0.1]:59178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCOxl-0002iE-Az for submit@debbugs.gnu.org; Sun, 09 Feb 2014 02:38:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54608) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WCOxd-0002i1-Km for submit@debbugs.gnu.org; Sun, 09 Feb 2014 02:37:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCOxX-0001G0-V3 for submit@debbugs.gnu.org; Sun, 09 Feb 2014 02:37:53 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOxX-0001Fs-RZ for submit@debbugs.gnu.org; Sun, 09 Feb 2014 02:37:47 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOxS-0007m5-OL for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:37:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WCOxK-0001Ey-JJ for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:37:42 -0500 Original-Received: from mail-qa0-f45.google.com ([209.85.216.45]:58231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCOxK-0001Es-FQ for bug-gnu-emacs@gnu.org; Sun, 09 Feb 2014 02:37:34 -0500 Original-Received: by mail-qa0-f45.google.com with SMTP id ii20so7773346qab.18 for ; Sat, 08 Feb 2014 23:37:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:references:date:message-id :user-agent:mime-version:content-type; bh=5kHE3dTcjbqyW2LbklWG0W3imdldi6ONN9xy4/L3XQU=; b=QyE4IJSqlH23Fmdwuo2Bn6SnpiG4Az92Cv8M67O5JM+W4MQJQK1CLRO8B/Bv6iMpDj xOLHd6rxsOJGfbPefnANwQxRPw1KvFvbgN4ysmzUlUoT7APjUqZUs3FMErQ1adpnGR9x vVbLT0U+6CApjafQAglDXBg2PEiN28Vo1hOFHa2NNZctazFLzm9Nj5QGKVvsCu7QOncw 29EZVsJupVExFqC8XFlbvup5CR1q9vDC9Kh98IktbGM33L+F2uLE3Ms1QDPNAIMl8682 ubtjlnfahJkfqIEOSgmDAOBt9SE9Md67uuwgVlhFEx5bEA72BruSQ4ozVJyyUdJvc5nj ObgA== X-Gm-Message-State: ALoCoQmIqn0p+r1pX9Or/Rzw4yO3Fw3yWwI9nfgNwpg3pKZb950GVhcnNF1cQpX5i50xUSyDTCTt X-Received: by 10.224.136.67 with SMTP id q3mr9149573qat.32.1391931453624; Sat, 08 Feb 2014 23:37:33 -0800 (PST) Original-Received: from holos.localdomain (c-68-55-201-85.hsd1.md.comcast.net. [68.55.201.85]) by mx.google.com with ESMTPSA id b14sm18077027qga.16.2014.02.08.23.37.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Feb 2014 23:37:33 -0800 (PST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:85076 Archived-At: Eli Zaretskii writes: >> From: Mark Oteiza >> Date: Fri, 07 Feb 2014 11:06:40 -0500 >> >> |A|B| >> >> Now, "B" has focus. I exit from this client into the shell, and exit the >> shell, killing the tmux pane. At this point, the pane "A" occupies is >> the sole pane, but "A" is still only occupying half the window! >> >> |A | >> >> I can make and destroy tmux panes and constrict the client >> "display". The frame won't update until I enter the pane "A" occupies >> *and* interact with the client. > > Sounds like Emacs is not being told about these changes. Do they send > the SIGWINCH signal? If not, how is Emacs supposed to know about > them? Ok, in this example, no SIGWINCH is sent when "B" is closed and the pane it occupied (stracing client "A"). It seems like when the focused client is killed, no other client gets "updated" until some input happens; either mouse click with xterm-input-mode or keyboard input. >> This does not happen in 24.3, so this is a regression I imagine I can >> bisect if need be. > > Please do, and thanks. I found 0cd28af (references Bug#15025). >> #3 0x00000000004e6bc5 in cmcheckmagic (tty=0xcab010) at cm.c:120 >> No locals. >> #4 0x00000000004e9ac9 in tty_write_glyphs (f=0x1251078, >> string=0x7fa611599760, len=149) at term.c:778 >> conversion_buffer = 0x1ae6410 ' ' , "\f\001 `(i!" >> coding = 0x19a9ab0 >> n = 149 >> stringlen = 0 >> tty = 0xcab010 >> #5 0x00000000004f2fcb in write_glyphs (f=0x1251078, >> string=0x7fa611597b70, len=149) at terminal.c:162 >> No locals. >> #6 0x000000000041c56c in update_frame_line (f=0x1251078, vpos=50) at dispnew.c:4791 >> obody = 0x0 >> nbody = 0x7fa611597b70 >> op1 = 0x29 >> op2 = 0x412d30 <_start> >> np1 = 0x7fffa4cf9e10 >> nend = 0x7fa611599760 >> tem = 4290101 >> osp = 2 >> nsp = 14045808 >> begmatch = 0 >> endmatch = 291518304 >> olen = 0 >> nlen = 149 >> current_matrix = 0xcef6f0 >> desired_matrix = 0x143c2f0 >> current_row = 0xecedd0 >> desired_row = 0xf01cc0 >> must_write_whole_line_p = true >> write_spaces_p = true >> colored_spaces_p = true > > This seems to indicate that Emacs thinks its frame is 149-column wide > and 51-row high. Does this make sense? 177x51 is the size of a full screen tmux window for me, so it makes sense.