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: Thu, 28 May 2009 09:14:06 -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 1243517371 15838 80.91.229.12 (28 May 2009 13:29:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 May 2009 13:29:31 +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 Thu May 28 15:29:27 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 1M9ffi-0003m2-MM for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 15:29:26 +0200 Original-Received: from localhost ([127.0.0.1]:38360 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9ffh-0005og-La for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 May 2009 09:29:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9ffc-0005ns-3Y for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 09:29:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9ffX-0005mh-LK for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 09:29:19 -0400 Original-Received: from [199.232.76.173] (port=39700 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9ffX-0005ma-DF for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 09:29:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42248) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9ffW-0003eL-UO for bug-gnu-emacs@gnu.org; Thu, 28 May 2009 09:29:15 -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 n4SDTCMD016639; Thu, 28 May 2009 06:29:12 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4SDK4OC015319; Thu, 28 May 2009 06:20: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: Thu, 28 May 2009 13:20: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.124351645714587 (code B ref 3399); Thu, 28 May 2009 13:20:04 +0000 Original-Received: (at 3399) by emacsbugs.donarmstrong.com; 28 May 2009 13:14:17 +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 n4SDECAH014575 for <3399@emacsbugs.donarmstrong.com>; Thu, 28 May 2009 06:14:14 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjkFALwqHkrO+JxR/2dsb2JhbACBT80JhA0FhgGCPA X-IronPort-AV: E=Sophos;i="4.41,265,1241409600"; d="scan'208";a="39218603" Original-Received: from 206-248-156-81.dsl.teksavvy.com (HELO pastel.home) ([206.248.156.81]) by ironport2-out.teksavvy.com with ESMTP; 28 May 2009 09:14:06 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 9B22084BF; Thu, 28 May 2009 09:14:06 -0400 (EDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Thu, 28 May 2009 09:47:32 +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, 3) Resent-Date: Thu, 28 May 2009 09:29:19 -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:28259 Archived-At: > 1. Older libX11 that doesn't care about XlibDisplayDfltRMDB at all. > 2. Newer libX11, when the first XGetDefault call sets dpy->db to a > non-NULL value. > 3. Newer libX11, when the first XGetDefault call sets dpy->db to NULL. > Case 3 corresponds to the problematic scenario I mentioned in my > previous mail and the other cases should work fine currently. Undoing > my recent change means that we don't destroy the database ourselves, > and it leaks memory in Case 2 and 3. What if (as asked) we don't just undo your change, but additionally return to freeing the DB (so we'll get a crash in case 1)? Will we then also get a crash in case 2 or 3? Stefan