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: Fri, 29 May 2009 10:30:09 -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 1243609033 9292 80.91.229.12 (29 May 2009 14:57:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 May 2009 14:57:13 +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 Fri May 29 16:57:09 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 1MA3W8-0006W2-BD for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 16:57:09 +0200 Original-Received: from localhost ([127.0.0.1]:38796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA3W7-0000ia-LV for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 May 2009 10:57:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MA3D8-0000Sc-CP for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:37:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MA3D2-0000Q8-Ai for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:37:29 -0400 Original-Received: from [199.232.76.173] (port=40532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MA3D1-0000PI-NE for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:37:23 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52266) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MA3D0-0007IP-Vz for bug-gnu-emacs@gnu.org; Fri, 29 May 2009 10:37:23 -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 n4TEbHcp003657; Fri, 29 May 2009 07:37:18 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n4TEZ4lW003587; Fri, 29 May 2009 07:35: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: Fri, 29 May 2009 14:35: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.12436074212925 (code B ref 3399); Fri, 29 May 2009 14:35:04 +0000 Original-Received: (at 3399) by emacsbugs.donarmstrong.com; 29 May 2009 14:30:21 +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 n4TEUFth002814 for <3399@emacsbugs.donarmstrong.com>; Fri, 29 May 2009 07:30:16 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvAFANKNH0pFpZIv/2dsb2JhbACBT898hAwFiEQ X-IronPort-AV: E=Sophos;i="4.41,271,1241409600"; d="scan'208";a="39292009" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 29 May 2009 10:30:09 -0400 Original-Received: from ceviche.home ([69.165.146.47]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id KTJ62525; Fri, 29 May 2009 10:32:25 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 274B9B4261; Fri, 29 May 2009 10:30:09 -0400 (EDT) In-Reply-To: (YAMAMOTO Mitsuharu's message of "Fri, 29 May 2009 12:58:20 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.93 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 29 May 2009 10:37:28 -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:28286 Archived-At: >> 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? > It will crash in Case 3 as well as 1. XCloseDisplay destroys the > associated database because XlibDisplayDfltRMDB is set, although the > database was not actually what's allocated by some XGetDefault call. > That's why I consider this is a bug in libX11. Thanks, so yes, that sounds like a plain bug in libX11. Now I'm not sure if I prefer the crash or the hideous workaround. At the very least, the hideous workaround should be wrapped in "#ifdef HIDEOUS_WORKAROUND" (or some more descriptive name). Ideally, we could then use an autoconf macro to only activate the workaround when needed. Stefan