From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#3399: Crash in multi-TTY mode Date: Mon, 01 Jun 2009 10:37:52 -0400 Message-ID: References: <8369-76746@sneakemail.com> Reply-To: Stefan Monnier , 3399@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243868262 32102 80.91.229.12 (1 Jun 2009 14:57:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Jun 2009 14:57:42 +0000 (UTC) Cc: 3399@emacsbugs.donarmstrong.com, Shannon Jones To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 01 16:57:35 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 1MB8x9-0007bz-QO for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jun 2009 16:57:32 +0200 Original-Received: from localhost ([127.0.0.1]:40665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MB8x9-0001TH-9y for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Jun 2009 10:57:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MB8x4-0001Sz-Dj for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2009 10:57:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MB8wz-0001Qk-Uv for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2009 10:57:25 -0400 Original-Received: from [199.232.76.173] (port=57026 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MB8wz-0001QV-Hs for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2009 10:57:21 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:41490) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MB8wy-0003RD-Lk for bug-gnu-emacs@gnu.org; Mon, 01 Jun 2009 10:57:21 -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 n51EvINh025887; Mon, 1 Jun 2009 07:57:18 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n51Ej4PB023839; Mon, 1 Jun 2009 07:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 01 Jun 2009 14:45:04 +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.124386708422921 (code B ref 3399); Mon, 01 Jun 2009 14:45:04 +0000 Original-Received: (at 3399) by emacsbugs.donarmstrong.com; 1 Jun 2009 14:38:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n51EbwbA022914 for <3399@emacsbugs.donarmstrong.com>; Mon, 1 Jun 2009 07:38:00 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ah8FAKeEI0pFpZIv/2dsb2JhbACBT7xMCI1xgjEfCIE0BYhF X-IronPort-AV: E=Sophos;i="4.41,284,1241409600"; d="scan'208";a="39402251" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 01 Jun 2009 10:37:53 -0400 Original-Received: from pastel.home ([69.165.146.47]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id IUP29610; Mon, 01 Jun 2009 10:40:10 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id C72177FB6; Mon, 1 Jun 2009 10:37:52 -0400 (EDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Sun, 31 May 2009 16:05:57 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 01 Jun 2009 10:57: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:28414 Archived-At: >>> 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. Yes, maybe the leak is the least-bad of the options we have, as you said. >>> 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. OK, thanks for reporting it, Stefan