From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adrian Robert Newsgroups: gmane.emacs.bugs Subject: bug#4765: 23.1; set-frame-name makes emacs -nw crash on mac Date: Fri, 23 Oct 2009 16:10:10 -0400 Message-ID: References: <878wf2un8p.fsf@stupidchicken.com> <647005F2-143F-488D-9986-5011ACDDC2DF@gmail.com> <87k4ym82r6.fsf@stupidchicken.com> Reply-To: Adrian Robert , 4765@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1076) Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1256331908 26409 80.91.229.12 (23 Oct 2009 21:05:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Oct 2009 21:05:08 +0000 (UTC) Cc: robert , 4765@emacsbugs.donarmstrong.com To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 23 23:05:01 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 1N1RJk-0001FE-Kb for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 23:05:00 +0200 Original-Received: from localhost ([127.0.0.1]:43640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1RJk-0006ft-5N for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Oct 2009 17:05:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N1QjJ-0006Sg-EW for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 16:27:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N1QjD-0006R8-UQ for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 16:27:20 -0400 Original-Received: from [199.232.76.173] (port=43309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N1QjD-0006R5-R6 for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 16:27:15 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34045) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N1QjD-0003S3-BI for bug-gnu-emacs@gnu.org; Fri, 23 Oct 2009 16:27: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 n9NKRDBq024890; Fri, 23 Oct 2009 13:27:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9NKF5iQ023110; Fri, 23 Oct 2009 13:15:05 -0700 Resent-Date: Fri, 23 Oct 2009 13:15:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Adrian Robert Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Fri, 23 Oct 2009 20:15:04 +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.125632862422659 (code B ref 4765); Fri, 23 Oct 2009 20:15:04 +0000 Original-Received: (at 4765) by emacsbugs.donarmstrong.com; 23 Oct 2009 20:10:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mail-qy0-f197.google.com (mail-qy0-f197.google.com [209.85.221.197]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9NKALMt022568 for <4765@emacsbugs.donarmstrong.com>; Fri, 23 Oct 2009 13:10:23 -0700 Original-Received: by qyk35 with SMTP id 35so6235546qyk.19 for <4765@emacsbugs.donarmstrong.com>; Fri, 23 Oct 2009 13:10:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=g559lWWioW37hXpHULAy57niWFFJQJYBBmzByKtTwRM=; b=Bk6Se4j8ue39J+03O9BEd6wuDVnQ51EvDhGPkSc4grg/iIzgUDIHMPThzMjRRGqsN4 CwiEJod8ArF6TiekHm3ethSuco1caVxlA0njiTi1GbRdjMrIRZuQP7trWXoMZ01zX94/ /E61B6DATfYuru4GatKlbUrLa6GZaUkTh90Bc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=W5mvW+JZR6w0ldxfJFZ09qcho4VCAmIvLCQ3c3OHHVOZKksjHAIw4oMZgmB996Weuc Emli9hroE/sFPuTKkUyaPXZVBklLPk4TRuGMLWSqamXvJARgFP4iueckrI0zF5pePNE7 yEuSyMXFvSpbsd5ysY2mXcP2PTFlH6bjyPQ1k= Original-Received: by 10.224.35.71 with SMTP id o7mr5694606qad.331.1256328615919; Fri, 23 Oct 2009 13:10:15 -0700 (PDT) Original-Received: from anahata.mshome.net (251.sub-75-237-232.myvzw.com [75.237.232.251]) by mx.google.com with ESMTPS id 6sm8905457qwd.8.2009.10.23.13.10.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Oct 2009 13:10:14 -0700 (PDT) In-Reply-To: <87k4ym82r6.fsf@stupidchicken.com> X-Mailer: Apple Mail (2.1076) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Fri, 23 Oct 2009 16:27: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:32197 Archived-At: On Oct 23, 2009, at 12:59 PM, Chong Yidong wrote: > 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? It fixes the crash, but nothing gets changed in the display either. On emacs-22 it sets something just to the right of the left set of dashes. Could this be an additional bug in the NS code? -Adrian