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#5837: 23.1.95; Nextstep emacs -nw segfaults on startup in ns_set_doc_edited Date: Mon, 05 Apr 2010 10:06:19 -0400 Message-ID: <87hbnqhu3o.fsf@stupidchicken.com> References: <20100405134816.GA28589@srevilak.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1270477614 31101 80.91.229.12 (5 Apr 2010 14:26:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 5 Apr 2010 14:26:54 +0000 (UTC) Cc: 5837@debbugs.gnu.org To: Steve Revilak Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 05 16:26:50 2010 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.69) (envelope-from ) id 1NynGL-0002w6-8i for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Apr 2010 16:26:49 +0200 Original-Received: from localhost ([127.0.0.1]:41766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NynGK-0002i1-HP for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Apr 2010 10:26:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NynFd-0002Uc-PK for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2010 10:26:05 -0400 Original-Received: from [140.186.70.92] (port=38672 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NynFc-0002Ta-1u for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2010 10:26:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NynFY-00026C-8t for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2010 10:26:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50216) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NynFY-000267-7A for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2010 10:26:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NymxB-0008TM-OI; Mon, 05 Apr 2010 10:07:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Apr 2010 14:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 5837 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 5837-submit@debbugs.gnu.org id=B5837.127047638832560 (code B ref 5837); Mon, 05 Apr 2010 14:07:01 +0000 Original-Received: (at 5837) by debbugs.gnu.org; 5 Apr 2010 14:06:28 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nymwe-0008T7-H7 for submit@debbugs.gnu.org; Mon, 05 Apr 2010 10:06:28 -0400 Original-Received: from pantheon-po35.its.yale.edu ([130.132.50.83]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nymwc-0008T0-DJ for 5837@debbugs.gnu.org; Mon, 05 Apr 2010 10:06:26 -0400 Original-Received: from furry (dhcp128036014175.central.yale.edu [128.36.14.175]) (authenticated bits=0) by pantheon-po35.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o35E6KlH021159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 5 Apr 2010 10:06:21 -0400 Original-Received: by furry (Postfix, from userid 1000) id 0A75CC055; Mon, 5 Apr 2010 10:06:19 -0400 (EDT) In-Reply-To: <20100405134816.GA28589@srevilak.net> (Steve Revilak's message of "Mon, 5 Apr 2010 09:48:31 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.95 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 05 Apr 2010 10:07:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:35948 Archived-At: Steve Revilak writes: > I've just built emacs 23.1.95 on two Mac OS X systems; one Mac OS > 10.6.2 (x86_64), and one Mac OS 10.4.11 (PPC G5). On both systems > "emacs -nw" segfaults on startup. The segfault happens so early that > I cannot use M-x report-emacs-bug on the affected systems. > > When I run emacs as a windowed application (without "-nw"), then there > is no segfault. Thanks for the bug report. Does the following patch fix the problem? === modified file 'src/xdisp.c' *** src/xdisp.c 2010-03-30 17:26:58 +0000 --- src/xdisp.c 2010-04-05 14:05:48 +0000 *************** *** 9570,9576 **** update_tool_bar (f, 0); #endif #ifdef HAVE_NS ! if (windows_or_buffers_changed) ns_set_doc_edited (f, Fbuffer_modified_p (XWINDOW (f->selected_window)->buffer)); #endif --- 9570,9577 ---- update_tool_bar (f, 0); #endif #ifdef HAVE_NS ! if (windows_or_buffers_changed ! && FRAME_NS_P (f)) ns_set_doc_edited (f, Fbuffer_modified_p (XWINDOW (f->selected_window)->buffer)); #endif