From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Mattie Newsgroups: gmane.emacs.devel Subject: Re: Possible bug when running with --daemon on 24.3.92.3? Date: Thu, 10 Jul 2014 13:59:28 -0700 Message-ID: <1588337.dQk0M1Rs28@khan> References: <87bnt0qovn.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2313776.E3lYK4DhFB"; micalg="pgp-sha1"; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1405026048 5782 80.91.229.3 (10 Jul 2014 21:00:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jul 2014 21:00:48 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 10 23:00:41 2014 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 1X5LSL-00041h-Fw for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 23:00:41 +0200 Original-Received: from localhost ([::1]:40199 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5LSK-0004EF-TL for ged-emacs-devel@m.gmane.org; Thu, 10 Jul 2014 17:00:40 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5LS6-0004Bj-VL for emacs-devel@gnu.org; Thu, 10 Jul 2014 17:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5LRy-0000NZ-4o for emacs-devel@gnu.org; Thu, 10 Jul 2014 17:00:26 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:59655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5LRx-0000Mr-TZ for emacs-devel@gnu.org; Thu, 10 Jul 2014 17:00:18 -0400 Original-Received: from [10.9.9.206] (helo=mailfront02.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1X5LRv-0003Kv-L7 for emacs-devel@gnu.org; Thu, 10 Jul 2014 23:00:15 +0200 Original-Received: from c-50-135-50-173.hsd1.wa.comcast.net ([50.135.50.173] helo=khan.localnet) by mailfront02.runbox.com with esmtpsa (uid:809090 ) (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) id 1X5LRe-0001oz-4N for emacs-devel@gnu.org; Thu, 10 Jul 2014 22:59:58 +0200 User-Agent: KMail/4.13.2 (Linux/3.15.5+; KDE/4.13.2; x86_64; ; ) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 91.220.196.211 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:172945 Archived-At: --nextPart2313776.E3lYK4DhFB Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Wednesday, July 09, 2014 09:23:10 Peder O. Klingenberg wrote: > On Tue, Jul 08 2014 at 09:30, Alexis wrote: > > Summary of steps to reproduce: > > > > 1. emacs -q --daemon > > 2. emacsclient -c > > 3. C-x C-c > > 4. The `emacs --daemon` process is no longer running. > > The symptoms seem similar to something I saw a couple of months back. > Reported as bug #17125. That apparently had something to do with my > fonts. > > Try attaching gdb to the emacs process before starting the emacsclient, > and see if you catch a signal as you exit emacsclient? > > I haven't had time to pursue that bug any further. Dmitry Antipov > provided a patch that worked for me, but apparently had some > deficiencies. > > ...Peder... I can't speak to resolve the issue proper, but I have run into many issues with emacs in --daemon mode dissappearing when trying to open a X frame as seems to be occuring here. I resolved them permanently by taking all the stuff that was X specific in the init such as font and color and ran the .el file off a before-make-frame hook. I set a simple binary sentinal to make sure that it only ran once. Never had a problem since. In my thoughts if --daemon has not gathered any information on the X environment which makes sense then deferring execution of configuring X stuff seems to be the only way out for now. Here is the relevant part of my config in gitweb. Ignore my grail decorations, the control block is quite simple and explanatory. http://lispblivet.sx/git/?p=emacs.git;a=blob;f=emacs/grail.el;h=85e7adb6495d04a50ab6d1cd0661cd7c93e572af;hb=HEAD#l320 It might be useful in that if the workaround succeeds for the initial poster it could narrow down the specific bits of information that emacs lacks in --daemon mode. How to solve it correctly is a bit beyond me, I just have a work-around to what I think is the problem. Mike Mattie --nextPart2313776.E3lYK4DhFB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABAgAGBQJTvv7LAAoJEHAMypQulOPK1qAH/34+fx6r9pqkhuy8C4fMIh7B xOYNFO7/ia6pdwy7NgtudIJbPRMsNnIA20EcJdpCyfBXCMu3jUdXbw10bKwNANzX 5OOeH39W0WwKlhZXHUW9kZzUJBCeCzBVcCTzh2FsQZFE7plaZy6EPcbXDqSpMNGv Lnis8S6VlJ/kdlID0wloKxY/zln123VfdlxVgwufSqd4pY99uRUkpgKySppSbcyO doQfkV4AulLRn03HPkbkyZsoONvqTC9Kvyfsu2L3BliQwGvLLypx+zfbDNSD653K NcTA4s3Q1B5MCQ1dFUJWN0S/9GLrtA8z618LuSKkfm9j2TvB1bhZ1wHrVf0Hnj8= =32Cc -----END PGP SIGNATURE----- --nextPart2313776.E3lYK4DhFB--