emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Emacs 23.0.50.1 dies with a Bus Error on Mac OS X 10.4.10


From: Patrick Mahan
Subject: Emacs 23.0.50.1 dies with a Bus Error on Mac OS X 10.4.10
Date: Wed, 03 Oct 2007 09:33:23 -0700
User-agent: Thunderbird 2.0.0.6 (Macintosh/20070728)


I downloaded the sources for Emacs 23.0.50.1 via CVS onto my PowerBook
G4 running OS X 10.4.10 (gcc 4.0) using '--enable-carbon-app' switch
to 'configure'.  When I launched Emacs (either from Finder or the
shell) it would die when ever the mouse pointer would move over the
menu bar.

I traced it down to the function 'x_create_tip_frame()' in the
file 'src/macfns.c'.  It seems that after it created a frame
object, the code neglected to set the 'terminal' pointer in the
newly created frame object with the 'terminal' pointer from
the passed in display object.  This was based upon 1) looking
at the 'x_create_tip_frame()' function in both 'src/xfns.c'
and 'src/w32fns.c' and also 2) looking at the failure point in
'src/frame.c' where the macro FRAME_RIF was being used.  This
macro assumeds that the 'terminal' pointer has been set in
the frame object.

My diffs for a fix to this problem are below.  Perhaps you should
also fix the macro FRAME_RIF to validate the 'terminal' pointer?

Diffs:

Index: emacs/src/macfns.c
===================================================================
RCS file: /sources/emacs/emacs/src/macfns.c,v
retrieving revision 1.111
diff -r1.111 macfns.c
3853a3854,3856
  f->terminal = dpyinfo->terminal;
  f->terminal->reference_count++;


In GNU Emacs 23.0.50.1 (powerpc-apple-darwin8.10.0, Carbon Version 1.6.0)
 of 2007-10-02 on widowmaker.local
Windowing system distributor `Apple Inc.', version 10.4.10
configured using `configure '--enable-carbon-app' '--with-carbon' '--without-x''





reply via email to

[Prev in Thread] Current Thread [Next in Thread]