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#3399: Crash in multi-TTY mode Date: Sun, 31 May 2009 16:05:57 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <8369-76746@sneakemail.com> Reply-To: YAMAMOTO Mitsuharu , 3399@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 1243754260 4871 80.91.229.12 (31 May 2009 07:17:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 31 May 2009 07:17:40 +0000 (UTC) Cc: 3399@emacsbugs.donarmstrong.com, Shannon Jones To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 31 09:17:36 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 1MAfIQ-0000Da-F3 for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 May 2009 09:17:30 +0200 Original-Received: from localhost ([127.0.0.1]:56354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAfIP-0000jf-Kv for geb-bug-gnu-emacs@m.gmane.org; Sun, 31 May 2009 03:17:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MAfIM-0000jS-SA for bug-gnu-emacs@gnu.org; Sun, 31 May 2009 03:17:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MAfIH-0000j0-CE for bug-gnu-emacs@gnu.org; Sun, 31 May 2009 03:17:25 -0400 Original-Received: from [199.232.76.173] (port=54051 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MAfIH-0000ix-6j for bug-gnu-emacs@gnu.org; Sun, 31 May 2009 03:17:21 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:34026) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MAfIG-0001uP-Iq for bug-gnu-emacs@gnu.org; Sun, 31 May 2009 03:17:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MAfIF-0006La-Hf for bug-gnu-emacs@gnu.org; Sun, 31 May 2009 03:17:19 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n4V7HHDg027983; Sun, 31 May 2009 00:17:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4V7A76Q026524; Sun, 31 May 2009 00:10:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 31 May 2009 07:10:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3399 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3399-submit@emacsbugs.donarmstrong.com id=B3399.124375356425950 (code B ref 3399); Sun, 31 May 2009 07:10:07 +0000 Original-Received: (at 3399) by emacsbugs.donarmstrong.com; 31 May 2009 07:06:04 +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.14.3/8.14.3/Debian-5) with ESMTP id n4V75w6m025934 for <3399@emacsbugs.donarmstrong.com>; Sun, 31 May 2009 00:06:00 -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 897862C40; Sun, 31 May 2009 16:05:57 +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 mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Resent-Date: Sun, 31 May 2009 03:17:25 -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:28348 Archived-At: >>>>> On Sat, 30 May 2009 16:37:02 -0400, Stefan Monnier said: >> I'd prefer the conservative "maybe leaking" one at this stage as I >> said first in >> http://lists.gnu.org/archive/html/emacs-devel/2009-05/msg00263.html. > The main problem with this is that the "maybe" is "in 99% of the > cases", since only ancient versions of libX11 free the database. But even with the newer libX11, we can't avoid both memory leaks (Case 2) and crash (Case 3) without a "hideous" workaround or a nontrivial change in the display initialization. Also, the situation before my recent change was also "maybe leaking" for GTK+. I think this is acceptable enough for Emacs 23.1. >> The third non-crashing non-hideous way would be to associate the >> created database before any call to XGetDefault so it may not set >> the XlibDisplayDfltRMDB flag. That will require reordering in the >> display initialization and we can try it after the release. > BTW, is there any hope that the bug in libX11 will be fixed any time > soon (not that it will save us, but at least I'd like to make sure > that we're not stuck with such painful workarounds indefinitely). There's no response so far, and I'm not sure how bug reports are usually dealt with in X.org. Actually, I created my bugzilla account in freedesktop.org for this bug. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp