GNU bug report logs - #5837
23.1.95; Nextstep emacs -nw segfaults on startup in ns_set_doc_edited

Previous Next

Package: emacs;

Reported by: Steve Revilak <steve <at> srevilak.net>

Date: Mon, 5 Apr 2010 13:49:02 UTC

Severity: normal

Done: Steve Revilak <steve <at> srevilak.net>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 5837 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Steve Revilak <steve <at> srevilak.net>
Cc: 5837 <at> debbugs.gnu.org
Subject: Re: 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
Steve Revilak <steve <at> srevilak.net> 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





This bug report was last modified 15 years and 76 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.