From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Espen Wiborg" Newsgroups: gmane.emacs.bugs Subject: bug#1310: 23.0.60; Emacs daemon behaves strangely if client loses X connection Date: Mon, 10 Nov 2008 20:48:33 +0100 (CET) Message-ID: <51066.84.209.20.118.1226346513.squirrel@www.chrissearle.org> Reply-To: Espen Wiborg , 1310@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1226348042 17855 80.91.229.12 (10 Nov 2008 20:14:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Nov 2008 20:14:02 +0000 (UTC) Cc: 1310@emacsbugs.donarmstrong.com To: "Dan Nicolaescu" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 10 21:15:03 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kzd9x-00082J-LA for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Nov 2008 21:14:53 +0100 Original-Received: from localhost ([127.0.0.1]:56883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kzd8p-0007Rg-S5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Nov 2008 15:13:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kzd5R-0005Vs-OA for bug-gnu-emacs@gnu.org; Mon, 10 Nov 2008 15:10:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kzd5O-0005V2-Vj for bug-gnu-emacs@gnu.org; Mon, 10 Nov 2008 15:10:13 -0500 Original-Received: from [199.232.76.173] (port=35544 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kzd5O-0005Ut-PG for bug-gnu-emacs@gnu.org; Mon, 10 Nov 2008 15:10:10 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:51799) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kzd5N-0007Kh-Sr for bug-gnu-emacs@gnu.org; Mon, 10 Nov 2008 15:10:10 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAAKA6Pa015003; Mon, 10 Nov 2008 12:10:07 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAAJt4f0010576; Mon, 10 Nov 2008 11:55:04 -0800 X-Loop: don@donarmstrong.com Resent-From: "Espen Wiborg" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 10 Nov 2008 19:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1310 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1310-submit@emacsbugs.donarmstrong.com id=B1310.12263465199247 (code B ref 1310); Mon, 10 Nov 2008 19:55:04 +0000 Original-Received: (at 1310) by emacsbugs.donarmstrong.com; 10 Nov 2008 19:48:39 +0000 Original-Received: from bryanek.chrissearle.org (friends.chrissearle.org [78.47.168.123]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAAJmZxm009241 for <1310@emacsbugs.donarmstrong.com>; Mon, 10 Nov 2008 11:48:37 -0800 Original-Received: from [127.0.0.1] (helo=www.chrissearle.org) by bryanek.chrissearle.org with esmtp (Exim 4.63) (envelope-from ) id 1KzckT-00051D-RC; Mon, 10 Nov 2008 20:48:33 +0100 Original-Received: from 84.209.20.118 (SquirrelMail authenticated user espenhw) by www.chrissearle.org with HTTP; Mon, 10 Nov 2008 20:48:33 +0100 (CET) User-Agent: SquirrelMail/1.4.9a X-Priority: 3 (Normal) Importance: Normal X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: espenhw@grumblesmurf.org X-SA-Exim-Scanned: No (on bryanek.chrissearle.org); SAEximRunCond expanded to false X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Mon, 10 Nov 2008 15:10:13 -0500 X-Mailman-Approved-At: Mon, 10 Nov 2008 15:13:40 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22270 Archived-At: On Mon, November 10, 2008 09:29, Dan Nicolaescu wrote: > "Espen Wiborg" writes: > > With the patch the behavior is less deterministic: > > > > Emacs usually survives the first X crash, and will at this point happily serve > > clients and create frames. > > > > The second crash usually calls abort() with the following backtrace: > > Unfortunately, I am still not able to play with killing X, so I can only > offer guesses, but no real debugging... I test by starting the daemon under a different name (./emacs -Q --daemon=testing) and then run a secondary X server serving just the client with startx `which emacsclient` -c -s /tmp/emacs`id -u`/testing -- :1 I can then zap the secondary X, e.g. with C-M-Backspace, without affecting my real session. This trick is also useful to test strange resolutions, color depths etc. > Does the problem happen if you configure emacs without Gtk (i.e. > --with-x-toolkit=lucid)? No, it doesn't. Or at least it happens much less frequently; in 35-40 tries I could only provoke something once, but that seems to have been a clean shutdown (which is infinitely preferable to the hang I get with Gtk enabled). > Also, can you try if the problem happens if you do: > in a text console: emacs -Q -f server-start > now start X, and run emacsclient -c to connect to the server > and kill X > (this is to verify if the problem is related to --daemon, I am guessing > it should not be, and similar problems were fixed long time ago...) Interesting. With the Gtk-enabled Emacs, I get the same behavior as with --daemon, but when I try to open a new frame after killing X, my console is spammed with (emacs:6078): GLib-WARNING **: g_main_context_prepare() called recursively from within a source's check() or prepare() member. ad infinitum. So it definitely looks as if Gtk is the culprit (or at least part of the problem). I'm running this on Ubuntu 8.10, Intrepid Ibex; I appeare to have Gtk 2.14.4-0ubuntu1 installed. -- Espen Wiborg - Veritas vos liberabit A twisted mind is a joy forever.