From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#4765: 23.1; set-frame-name makes emacs -nw crash on mac Date: Fri, 23 Oct 2009 12:59:57 -0400 Message-ID: <87k4ym82r6.fsf@stupidchicken.com> References: <878wf2un8p.fsf@stupidchicken.com> <647005F2-143F-488D-9986-5011ACDDC2DF@gmail.com> Reply-To: Chong Yidong , 4765@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 1256317779 14307 80.91.229.12 (23 Oct 2009 17:09:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 17:09:39 +0000 (UTC) Cc: robert , 4765@emacsbugs.donarmstrong.com To: Adrian Robert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 19:09:31 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 1N1Ndn-0000DH-EP for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 19:09:27 +0200 Original-Received: from localhost ([127.0.0.1]:60676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1Ndm-0007ee-Ns for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 13:09:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1Nbk-0006jj-Hh for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 13:07:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1Nbf-0006gh-VC for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 13:07:20 -0400 Original-Received: from [199.232.76.173] (port=38800 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1Nbf-0006gd-P4 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 13:07:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:59836) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N1Nbf-0008Lw-7v for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 13:07: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 n9NH7Dr1028616; Fri, 23 Oct 2009 10:07:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9NH55vd027646; Fri, 23 Oct 2009 10:05:05 -0700 Resent-Date: Fri, 23 Oct 2009 10:05:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Chong Yidong Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 23 Oct 2009 17:05:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4765 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4765-submit@emacsbugs.donarmstrong.com id=B4765.125631720426634 (code B ref 4765); Fri, 23 Oct 2009 17:05:05 +0000 Original-Received: (at 4765) by emacsbugs.donarmstrong.com; 23 Oct 2009 17:00:04 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from pantheon-po39.its.yale.edu (pantheon-po39.its.yale.edu [130.132.50.100]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9NH02oN026562 for <4765@emacsbugs.donarmstrong.com>; Fri, 23 Oct 2009 10:00:03 -0700 Original-Received: from furry (dhcp128036014244.central.yale.edu [128.36.14.244]) (authenticated bits=0) by pantheon-po39.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n9NGxvoA013738 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 23 Oct 2009 12:59:57 -0400 Original-Received: by furry (Postfix, from userid 1000) id 1D745C070; Fri, 23 Oct 2009 12:59:57 -0400 (EDT) In-Reply-To: <647005F2-143F-488D-9986-5011ACDDC2DF@gmail.com> (Adrian Robert's message of "Fri, 23 Oct 2009 12:24:30 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 23 Oct 2009 13:07:20 -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:32190 Archived-At: Adrian Robert writes: > On Oct 23, 2009, at 11:46 AM, Chong Yidong wrote: > >> Hi Adrian, can you reproduce this problem? > > I can on Snow Leopard and Tiger but this is in -nw mode and the stack > trace (below) shows nothing involved from NS side. Does it appear > under other OS's? The stack trace below shows it resulting from > ns_set_name() called from x_implicitly_set_name. ns_set_name does not > check if it is an ns frame, but the X equivalent doesn't either. It > seems like something is going wrong earlier if x_implicitly_set_name > is being called for a non-GUI frame. No crash for me on GNU/Linux. The x_implicity_set_name function *is* called, but because `f->explicit_name' is non-zero (it's 1), that function returns. I think the problem is that ns_set_name should defer calling FRAME_NS_VIEW until after line 542. Maybe that fixes the bug; could you check?