From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ulrich Mueller Newsgroups: gmane.emacs.devel Subject: emacs --daemon and GDK default display Date: Tue, 17 Mar 2009 12:14:44 +0100 Message-ID: <18879.34340.349741.391197@a1ihome1.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1237288511 10045 80.91.229.12 (17 Mar 2009 11:15:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Mar 2009 11:15:11 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 17 12:16:28 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LjXHW-0006Pl-H4 for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2009 12:16:26 +0100 Original-Received: from localhost ([127.0.0.1]:56357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjXGA-0001gE-4H for ged-emacs-devel@m.gmane.org; Tue, 17 Mar 2009 07:15:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LjXG4-0001g0-Ek for emacs-devel@gnu.org; Tue, 17 Mar 2009 07:14:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LjXG0-0001ea-TG for emacs-devel@gnu.org; Tue, 17 Mar 2009 07:14:56 -0400 Original-Received: from [199.232.76.173] (port=36021 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LjXG0-0001eX-Nh for emacs-devel@gnu.org; Tue, 17 Mar 2009 07:14:52 -0400 Original-Received: from a1iwww1.kph.uni-mainz.de ([134.93.134.1]:57729) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LjXG0-00044s-Ar for emacs-devel@gnu.org; Tue, 17 Mar 2009 07:14:52 -0400 Original-Received: from a1ihome1.kph.uni-mainz.de (a1ihome1.kph.uni-mainz.de [134.93.134.75]) by a1iwww1.kph.uni-mainz.de (8.14.0/8.13.4) with ESMTP id n2HBEinF008019 for ; Tue, 17 Mar 2009 12:14:44 +0100 Original-Received: from a1ihome1.kph.uni-mainz.de (localhost [127.0.0.1]) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.1) with ESMTP id n2HBEiFh022481; Tue, 17 Mar 2009 12:14:44 +0100 Original-Received: (from ulm@localhost) by a1ihome1.kph.uni-mainz.de (8.14.0/8.14.0/Submit) id n2HBEiHg022475; Tue, 17 Mar 2009 12:14:44 +0100 X-Mailer: VM 8.0.2-487 under Emacs 22.2.1 (i686-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:109667 Archived-At: Hi, at Gentoo we've got a report on a segmentation fault with 23.0.91: 1. install libcanberra and emacs (--with-x-toolkit=gtk) 2. run "emacs -Q --daemon" 3. under GNOME, run "emacsclient -c" (exit with C-x 5 0) 4. run "emacsclient -c" again, and emacs will segfault It happens because there is no GDK default display when the display for the second client frame is opened (xg_display_open), and libcanberra fails to check for that case. While I think that the blame is with libcanberra, I'm confused about the fact that the segfault only happens during the second request from a client. Does it mean that there is a GDK default display at the time of the first request, but not for the second one? Why? Could somebody shed some light on the issue? Ulrich