From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#1696: 23.0.60; Crash in XFreeColors Date: Thu, 07 May 2009 19:28:54 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: Reply-To: YAMAMOTO Mitsuharu , 1696@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1241693637 10512 80.91.229.12 (7 May 2009 10:53:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 10:53:57 +0000 (UTC) To: Markus Triska , 1696@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 07 12:53:46 2009 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 1M21EY-0005jc-0A for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 12:53:46 +0200 Original-Received: from localhost ([127.0.0.1]:34921 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M21EX-0006z4-Ij for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 May 2009 06:53:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M21Cq-0005z0-Po for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 06:52:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M21Cm-0005xQ-Qn for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 06:52:00 -0400 Original-Received: from [199.232.76.173] (port=34086 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M21Cm-0005xK-Lc for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 06:51:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33729) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M21Cm-0007EN-60 for bug-gnu-emacs@gnu.org; Thu, 07 May 2009 06:51:56 -0400 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 n47Apr4H010631; Thu, 7 May 2009 03:51:54 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n47AZ3Yo005198; Thu, 7 May 2009 03:35:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 May 2009 10:35:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 1696 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1696-submit@emacsbugs.donarmstrong.com id=B1696.12416921403660 (code B ref 1696); Thu, 07 May 2009 10:35:03 +0000 Original-Received: (at 1696) by emacsbugs.donarmstrong.com; 7 May 2009 10:29:00 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mathmail.math.s.chiba-u.ac.jp (ntp.math.s.chiba-u.ac.jp [133.82.132.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n47AStKT003652 for <1696@emacsbugs.donarmstrong.com>; Thu, 7 May 2009 03:28:57 -0700 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 4DBCF2C40; Thu, 7 May 2009 19:28:54 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 07 May 2009 06:52:00 -0400 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:27764 Archived-At: >>>>> On Wed, 08 Apr 2009 19:38:33 +0200, Markus Triska said: >> I haven't been able to reproduce this at all, using a GTK build >> (which I assume is what you are using). Do you still see the >> problem occurring? > Yes, the problem only occurs with GTK, and I still see it with the > latest Emacs CVS version (both locally and via SSH), on Ubuntu > jaunty. Sometimes Emacs loops (as described in etc/PROBLEMS) if I > try to reproduce it, but at other times it still crashes. I will set > up an SSH account for you if you want to reproduce it yourself on > this machine. Could you try adding the following lines just before the call to XftFontMatch in xftfont.c? This is not intended as a final solution, but just to see if my conjecture is correct. { int event_base, error_base; XRenderQueryExtension (display, &event_base, &error_base); } If this works, then the cause of the problem is the order of adding X11 extensions by libXft and libXrender (indeed nothing to do with GTK+). They both set hooks to XCloseDisplay via XESetCloseDisplay. These hooks are called in LIFO way with respect to the addition of the extensions. If the extension for libXft is added before the one for libXrender, then that leads to a problematic situation that libXft's CloseDisplay hook is called later and it adds libXrender's hook again and causes inconsistency in its internal states. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp