From unknown Sat Aug 09 15:53:55 2025 X-Loop: don@donarmstrong.com Subject: bug#1467: 23.0.60; Cannot "emacsclient -c" to daemon started from tt1 Reply-To: pent , 1467@debbugs.gnu.org Resent-From: pent Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 01 Dec 2008 20:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1467 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12281618276124 (code B ref -1); Mon, 01 Dec 2008 20:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.4 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Dec 2008 20:03:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB1K3fQ4006117 for ; Mon, 1 Dec 2008 12:03:44 -0800 Received: from mx10.gnu.org ([199.232.76.166]:48969) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L7EzE-0004d8-Mv for emacs-pretest-bug@gnu.org; Mon, 01 Dec 2008 15:03:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L7Eza-0000Ve-4A for emacs-pretest-bug@gnu.org; Mon, 01 Dec 2008 15:03:39 -0500 Received: from aparamon.dialup.corbina.ru ([89.179.245.94]:43184 helo=neo.paramonovs) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7EzZ-0000Uu-FH for emacs-pretest-bug@gnu.org; Mon, 01 Dec 2008 15:03:37 -0500 Received: from pent by neo.paramonovs with local (Exim 4.69) (envelope-from ) id 1L7EzR-0000YO-Mq; Mon, 01 Dec 2008 23:03:29 +0300 To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org Message-Id: From: pent Date: Mon, 01 Dec 2008 23:03:29 +0300 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 0) Start X session. 1) Switch to tty1 or any other console terminal and run $ emacs --daemon Emacs server loads (correct). 2) Make sure you can connect to it by running $ emacsclient -t This should work from both tty and X sessions (correct). 3) Switch to X session and run $ emacsclient -c This fails with message Waiting for Emacs... *ERROR*: Display :0.0 can't be opened I think it would be really nice if Emacs could easily survive X crash. I'm ready to provide any additional info, Andrey In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-30 on elegiac, modified by Debian (emacs-snapshot package, version 1:20081129-1) Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ru_RU.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: delete-selection-mode: t pc-selection-mode: t shell-dirtrack-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t From unknown Sat Aug 09 15:53:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1467: 23.0.60; Cannot "emacsclient -c" to daemon started from tt1 Reply-To: Chong Yidong , 1467@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 27 Dec 2008 15:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1467 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1467-submit@emacsbugs.donarmstrong.com id=B1467.12303908876584 (code B ref 1467); Sat, 27 Dec 2008 15:20:02 +0000 Received: (at 1467) by emacsbugs.donarmstrong.com; 27 Dec 2008 15:14:47 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBRFEiF0006578 for <1467@emacsbugs.donarmstrong.com>; Sat, 27 Dec 2008 07:14:45 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id C92B957E204; Sat, 27 Dec 2008 10:14:53 -0500 (EST) From: Chong Yidong To: pent Cc: 1467@debbugs.gnu.org Date: Sat, 27 Dec 2008 10:14:53 -0500 Message-ID: <87hc4phcpe.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 0) Start X session. > 1) Switch to tty1 or any other console terminal and run > $ emacs --daemon > Emacs server loads (correct). > 2) Make sure you can connect to it by running > $ emacsclient -t > This should work from both tty and X sessions (correct). > 3) Switch to X session and run > $ emacsclient -c > This fails with message > Waiting for Emacs... > *ERROR*: Display :0.0 can't be opened I can't reproduce this with the latest CVS. Could you try that and see if the bug is still present? From unknown Sat Aug 09 15:53:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1467: Bug still here Reply-To: =?UTF-8?Q?"=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2"?= , 1467@debbugs.gnu.org Resent-From: =?UTF-8?Q?"=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2"?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 04 Jan 2009 11:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1467 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1467-submit@emacsbugs.donarmstrong.com id=B1467.123106669932662 (code B ref 1467); Sun, 04 Jan 2009 11:05:05 +0000 Received: (at 1467) by emacsbugs.donarmstrong.com; 4 Jan 2009 10:58:19 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-bw0-f11.google.com (mail-bw0-f11.google.com [209.85.218.11]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n04AwGFw032656 for <1467@emacsbugs.donarmstrong.com>; Sun, 4 Jan 2009 02:58:17 -0800 Received: by bwz4 with SMTP id 4so18912194bwz.1 for <1467@emacsbugs.donarmstrong.com>; Sun, 04 Jan 2009 02:58:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=85ySjCRJ3SLg8kqn0pFW5BUCvK7M5bEnAnuXle0x4NY=; b=Qb1LGa7zPn6x673kVb2EwRicxJJ7H7K6mdaX/wQ/gZVqThSugHOfEpx0i3XtW9LAuq o8Bb7gSNU48PQt6n3FB2dWuWGJ2SW0Ex0nSL2jbvkvQWFzkoP/LMsjsIDr8Hi7xSC6Rc 2tKDeMRk5cQrUbztfVy3TQ/Hnka31m3jQVQhM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=wO/n1gBvfcGMxJVqxh/8L6Xu4Z9y4zz1Ca24kATpChGNIGzHHZL8RWTFaDhoJkYAk1 9fzxifaDaXnqqC6eO2p5qNug8Yj/wkFHaUWZC2YaCqGCA0rmCLkKut8b8jOF9i2d9edT PufWIT5+/VpkltnuxKQ+PeOWtg+0ycc3p2IaI= Received: by 10.223.105.139 with SMTP id t11mr2442887fao.11.1231066690113; Sun, 04 Jan 2009 02:58:10 -0800 (PST) Received: by 10.223.126.80 with HTTP; Sun, 4 Jan 2009 02:58:10 -0800 (PST) Message-ID: <5f0660120901040258p5672a80fycb9a76f437f7942a@mail.gmail.com> Date: Sun, 4 Jan 2009 13:58:10 +0300 From: =?UTF-8?Q?"=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2"?= To: 1467@debbugs.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Happy New Year! I've just checked the problem with the latest snapshot and it's still here. Please tell me what kind of debug info I should try to acquire, Andrey From unknown Sat Aug 09 15:53:55 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1467: 23.0.60; Cannot "emacsclient -c" to daemon started from tty1 Reply-To: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= , 1467@debbugs.gnu.org Resent-From: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 16 Feb 2009 18:55:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1467 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1467-submit@emacsbugs.donarmstrong.com id=B1467.123481012418321 (code B ref 1467); Mon, 16 Feb 2009 18:55:03 +0000 Received: (at 1467) by emacsbugs.donarmstrong.com; 16 Feb 2009 18:48:44 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1GImfn0018315 for <1467@emacsbugs.donarmstrong.com>; Mon, 16 Feb 2009 10:48:42 -0800 Received: by ewy3 with SMTP id 3so2139329ewy.1 for <1467@emacsbugs.donarmstrong.com>; Mon, 16 Feb 2009 10:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=46+ORSMWFxXShUoqHjrA12oPX7dvSPSSJFAlUUCKVLQ=; b=bpI9q91nOPfP3MrWu6WSKe7BbtPo0ISIDctQtWAU6rrVFAdiXIPA31A4yG2oItKXij /Mqe+TMsQedpjL3UwKPjfY1PMaUHV+w1Mjjfr9EPZVD0Xa8vRJEfzO6LY50divndpkN5 Gi/ikuhtGqCEO5gosVoxTEmkideoD5rYI+oKg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=cpAcU0pCxP7yYNeDwccNzNzEgTCwK+s5T3n8Z4BX5rEUKzWd2paXl54b1Ca3e5DUJ1 TjzVpjTIXSRd9qubN4Y3SqqncQ2AqtIF+tq00KzvqEnaPMzie2iJBksYbVXG7oDITVMj kT60yalD5AKUchAy841Gss7Md6hsQrOLhSSBw= MIME-Version: 1.0 Received: by 10.210.91.17 with SMTP id o17mr4602861ebb.28.1234810115421; Mon, 16 Feb 2009 10:48:35 -0800 (PST) Date: Mon, 16 Feb 2009 21:48:35 +0300 Message-ID: <5f0660120902161048y7831e757n404538c9d5ed711a@mail.gmail.com> From: =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= To: 1467@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hello maintainers! I'm still experiencing the problem, even with latest snapshots. But today, instead of killing emacs daemon which didn't respond, I've tried (with almost no hope) to "wake it up" via SIGHUP... and it worked! After that I managed to connect to the running daemon. It's worth noting that the trick works only if SIGHUP is sent from under the same X session I'd later be connecting from with emacsclient. As I told in the first message, I'm using Debian emacs-snapshot package. Chong Yidong claims he cannot reproduce the problem. Do you think the problem may be connected with the Debian packaging and not Emacs itself? If so, what additional info should I provide? Andrey From unknown Sat Aug 09 15:53:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: pent Subject: bug#1467 closed by =?UTF-8?Q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9_?= =?UTF-8?Q?=D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2?= (Re: Bug#539809: emacs23-gtk: emacsclient cannot connect to daemon run from tty1) Message-ID: References: <5f0660120908041242g19a26159n6a5bb2b3dd7584d7@mail.gmail.com> X-Emacs-PR-Message: they-closed 1467 X-Emacs-PR-Package: emacs Reply-To: 1467@debbugs.gnu.org Date: Wed, 05 Aug 2009 00:55:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1249433707-7232-1" This is a multi-part message in MIME format... ------------=_1249433707-7232-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #1467: 23.0.60; Cannot "emacsclient -c" to daemon started from tt1 It has been closed by =D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9 =D0=9F=D0=B0=D1= =80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2 . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact =D0=90=D0=BD=D0=B4=D1= =80=D0=B5=D0=B9 =D0=9F=D0=B0=D1=80=D0=B0=D0=BC=D0=BE=D0=BD=D0=BE=D0=B2 by replying to this email. --=20 1467: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D1467 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1249433707-7232-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 1467-done) by emacsbugs.donarmstrong.com; 5 Aug 2009 00:47:52 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.9 required=4.0 tests=FOURLA,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from soy.cyber.com.au (soy.cyber.com.au [203.7.155.19]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n750ll0t006776 for <1467-done@emacsbugs.donarmstrong.com>; Tue, 4 Aug 2009 17:47:48 -0700 Received: from soy.cyber.com.au (localhost.localdomain [127.0.0.1]) by sagator.soy.office.cyber.com.au (Postfix) with ESMTP id E182B5AC074 for <1467-done@emacsbugs.donarmstrong.com>; Wed, 5 Aug 2009 10:47:44 +1000 (EST) X-Sagator-Scanner: 0.8.0-1 at soy.office.cyber.com.au; log(status(quarantine(drop(buffer2mbox(libclam())))), status(quarantine(drop(SpamAssassinD())))) X-Sagator-ID: 20090805-104744-0001-11034-hlEPH4@soy.office.cyber.com.au Received: from localhost (unknown [192.168.155.193]) by soy.cyber.com.au (Postfix) with ESMTP id D20245AC06E for <1467-done@emacsbugs.donarmstrong.com>; Wed, 5 Aug 2009 10:47:44 +1000 (EST) Resent-From: "Trent W. Buck" Resent-Date: Wed, 5 Aug 2009 10:48:00 +1000 Resent-Message-ID: <20090805004800.GB2349@Clio> Resent-To: 1467-done@debbugs.gnu.org Received: by 10.100.172.15 with SMTP id u15cs254218ane; Tue, 4 Aug 2009 12:42:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.36.84 with SMTP id v62mr1543395wea.128.1249414950177; Tue, 04 Aug 2009 12:42:30 -0700 (PDT) In-Reply-To: <20090804025735.GA6876@Clio> References: <20090804025735.GA6876@Clio> Date: Tue, 4 Aug 2009 23:42:30 +0400 Message-ID: <5f0660120908041242g19a26159n6a5bb2b3dd7584d7@mail.gmail.com> Subject: Re: Bug#539809: emacs23-gtk: emacsclient cannot connect to daemon run from tty1 From: =?UTF-8?B?0JDQvdC00YDQtdC5INCf0LDRgNCw0LzQvtC90L7Qsg==?= To: "Trent W. Buck" Cc: 539809@bugs.debian.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2009/8/4 Trent W. Buck : > Is the XAUTHORITY environment variable defined within your X session? > > If so, the reason the Emacs daemon can't connect to your X server is > because it is trying to use ~/.Xauthority, but the file is in some > other place. > > GDM puts the .Xauthority file in a different place when $HOME is on a > root-squashed NFS filesystem, because when the file is created GDM > runs as root, and can't write the file to ~/.Xauthority as normal. =C2=A0= It > sets the XAUTHORITY environment variable to the other place (in > /tmp/), so all the child processes know to look there. > > But emacs --daemon was started outside of the GDM process tree, so it > doesn't "see" the XAUTHORITY environment variable. > > When I ran into this problem (using screen, not emacs --daemon), I > worked around it with the following code in my .xsession file: > > =C2=A0 =C2=A0## Dance so screen subprocesses can talk to GDM-spawned X se= rvers. > =C2=A0 =C2=A0if test -n "$XAUTHORITY" > =C2=A0 =C2=A0then > =C2=A0 =C2=A0 =C2=A0 =C2=A0xauth extract - $DISPLAY | > =C2=A0 =C2=A0 =C2=A0 =C2=A0xauth -f ~/.Xauthority merge - > =C2=A0 =C2=A0 =C2=A0 =C2=A0unset XAUTHORITY > =C2=A0 =C2=A0fi > > Note that depending on your DM, .xsession may be called .xinitrc or > .Xclients. =C2=A0Typically you also have to choose "default X session" or > similar, rather than "GNOME" or whatever. > Thank you for a very helpful response! I don't use NFS, but the problem was indeed in my ~/.Xauthority (it was owned by root and 600 for some reason). I've removed my ~/.Xauthority and restarted X, and now my Emacs can survive X crash :-) Andrey ------------=_1249433707-7232-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From pent@aparamon.msk.ru Mon Dec 1 12:03:46 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.4 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 1 Dec 2008 20:03:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mB1K3fQ4006117 for ; Mon, 1 Dec 2008 12:03:44 -0800 Received: from mx10.gnu.org ([199.232.76.166]:48969) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1L7EzE-0004d8-Mv for emacs-pretest-bug@gnu.org; Mon, 01 Dec 2008 15:03:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1L7Eza-0000Ve-4A for emacs-pretest-bug@gnu.org; Mon, 01 Dec 2008 15:03:39 -0500 Received: from aparamon.dialup.corbina.ru ([89.179.245.94]:43184 helo=neo.paramonovs) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7EzZ-0000Uu-FH for emacs-pretest-bug@gnu.org; Mon, 01 Dec 2008 15:03:37 -0500 Received: from pent by neo.paramonovs with local (Exim 4.69) (envelope-from ) id 1L7EzR-0000YO-Mq; Mon, 01 Dec 2008 23:03:29 +0300 To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org Subject: 23.0.60; Cannot "emacsclient -c" to daemon started from tt1 Message-Id: From: pent Date: Mon, 01 Dec 2008 23:03:29 +0300 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 0) Start X session. 1) Switch to tty1 or any other console terminal and run $ emacs --daemon Emacs server loads (correct). 2) Make sure you can connect to it by running $ emacsclient -t This should work from both tty and X sessions (correct). 3) Switch to X session and run $ emacsclient -c This fails with message Waiting for Emacs... *ERROR*: Display :0.0 can't be opened I think it would be really nice if Emacs could easily survive X crash. I'm ready to provide any additional info, Andrey In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-30 on elegiac, modified by Debian (emacs-snapshot package, version 1:20081129-1) Windowing system distributor `The X.Org Foundation', version 11.0.10402000 configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ru_RU.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Info Minor modes in effect: delete-selection-mode: t pc-selection-mode: t shell-dirtrack-mode: t tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t ------------=_1249433707-7232-1--