From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mario Becroft Newsgroups: gmane.emacs.bugs Subject: bug#19175: 24.4; make-frame-on-display fails if emacs started with -nw Date: Tue, 25 Nov 2014 17:28:27 +1300 Message-ID: <87wq6jrjis.fsf@ak2.becroft.co.nz> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416889835 24886 80.91.229.3 (25 Nov 2014 04:30:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2014 04:30:35 +0000 (UTC) To: 19175@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 05:30:27 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 1Xt7lh-0005nc-Up for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Nov 2014 05:30:26 +0100 Original-Received: from localhost ([::1]:55419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7lh-0005WF-IM for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Nov 2014 23:30:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7lV-0005W9-Cv for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:30:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xt7lM-0002Lm-AD for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:30:13 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7lM-0002Ko-7S for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:30:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Xt7lL-0004aE-Jq for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:30:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mario Becroft Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Nov 2014 04:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19175 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.141688974317433 (code B ref -1); Tue, 25 Nov 2014 04:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2014 04:29:03 +0000 Original-Received: from localhost ([127.0.0.1]:44464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xt7kN-0004X5-3a for submit@debbugs.gnu.org; Mon, 24 Nov 2014 23:29:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41443) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xt7kJ-0004WZ-MX for submit@debbugs.gnu.org; Mon, 24 Nov 2014 23:29:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xt7kA-00028o-A5 for submit@debbugs.gnu.org; Mon, 24 Nov 2014 23:28:59 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7kA-00028k-78 for submit@debbugs.gnu.org; Mon, 24 Nov 2014 23:28:50 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7k3-0005QH-L5 for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:28:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xt7jx-00027Z-EQ for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:28:43 -0500 Original-Received: from ak2.becroft.co.nz ([202.50.176.175]:43405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xt7jw-00027L-Qe for bug-gnu-emacs@gnu.org; Mon, 24 Nov 2014 23:28:37 -0500 Original-Received: by ak2.becroft.co.nz (Postfix, from userid 489) id 5AAC7320300; Tue, 25 Nov 2014 17:28:29 +1300 (NZDT) Original-Received: from ak2.becroft.co.nz (ak2.becroft.co.nz [202.50.176.175]) by ak2.becroft.co.nz (Postfix) with ESMTP id 2CA963202CA for ; Tue, 25 Nov 2014 17:28:28 +1300 (NZDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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:96533 Archived-At: emacs -nw M-x make-frame-on-display RET When prompted: myhost:0 RET Expected result: A new X11 frame is created on the specified X11 display 'myhost:0' Actual result: In minibuffer, the following message appears: Display myhost:0 can't be opened Note: DISPLAY=myhost:0 emacs works fine, and make-frame-on-display works. It's only when starting emacs with -nw (or, more importantly, --daemon) that make-frame-on-display subsequently fails. This is *not* a simple X authorization problem or anything like that. The strace output from the point where emacs connects to the X server to when it closes the connection, without having read or written any data, follows (actual IP address of target X server host elided and replaced with 192.168.1.2): ---- socket(PF_INET, SOCK_STREAM|SOCK_CLOEXEC, IPPROTO_TCP) = 10 setsockopt(10, SOL_TCP, TCP_NODELAY, [1], 4) = 0 setsockopt(10, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0 connect(10, {sa_family=AF_INET, sin_port=htons(6000), sin_addr=inet_addr("192.168.1.2")}, 16) = ? ERESTARTSYS (To be restarted) --- SIGIO (I/O possible) @ 0 (0) --- rt_sigreturn(0x1d) = -1 EINTR (Interrupted system call) close(10) = 0 ---- In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, X toolkit) of 2014-11-25 on ak2 Configured using: `configure --without-toolkit-scroll-bars --with-x --with-x-toolkit=lucid --without-xft' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: rcirc-track-minor-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: SPC L i n u x SPC d e s k t o p SPC s y s t e m , SPC j u s t SPC s a y : RET D I S P L A Y = : 0 SPC e m a c s SPC - n w RET M - x SPC m a k e - f r a m e - o n - d i s p l a y RET W h e n SPC p r o m p t e d SPC e n t e r : SPC : 0 RET I f SPC a SPC n e w SPC f r a m e SPC a p p e a r s , SPC t h e SPC n i t SPC i DEL DEL DEL DEL DEL DEL n SPC i t SPC i s SPC w o r k i n g RET I f SPC t h e SPC t e x t SPC ' D i s p l a y SPC : 0 SPC c a n ' t SPC b e SPC o p e n e d ' SPC a p p e a r s SPC i n SPC t h e SPC m i n i b u f f e r , SPC t h e n SPC t h e SPC b u g ESC b ESC b y o u SPC h a v e SPC RET ESC [ > 0 ; 2 4 2 ; 0 c ESC ] 1 1 ; r g b : f f f f / f f f f / f f f f ESC \ ESC x r e p o TAB r t TAB RET Recent messages: When done with this frame, type C-x 5 0 x-initialize-window-system: Display 10.87.0.1:0 can't be opened x-initialize-window-system: Display 10.89.6.1:0 can't be opened [2 times] Connecting to chat.freenode.net...done Quit Making completion list... Rcirc-Track minor mode disabled Rcirc-Track minor mode enabled When done with this frame, type C-x 5 0 Making completion list... Load-path shadows: None found. Features: (shadow sort 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 mail-utils help-mode easymenu disp-table network-stream auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util help-fns mail-prsvr password-cache starttls tls rcirc ring xterm server jabber-autoloads package epg-config escreen time-date paren cus-start cus-load 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 gfilenotify dynamic-setting x-toolkit x multi-tty emacs) Memory information: ((conses 16 144895 13629) (symbols 48 21822 0) (miscs 40 256 529) (strings 32 22112 4517) (string-bytes 1 584096) (vectors 16 11221) (vector-slots 8 410639 4818) (floats 8 80 297) (intervals 56 4036 233) (buffers 960 26) (heap 1024 23508 585))