Subject: Emacs.app crash

From: "Gilbert Harman" <[email-masked]>
Date: Tue, 22 Jul 2008 12:30:30 -0400

Using the CVS version from about 7 am today on a Mac iMac running OS
10.5.4 to produce Emacs.app.
I opened my .emacs file and used control-n to move down several lines
at which point emacs froze.
What follows is the backtrace from gdb followed by the contents of the
file I was editing.

  Gil

> gdb /Applications/Emacs.app/Contents/MacOS/Emacs
GNU gdb 6.3.50-20050815 (Apple version gdb-960) (Sun May 18 18:38:33 UTC 2008)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin"...Reading symbols for
shared libraries ........... done

DISPLAY = /tmp/launch-oGN0RS/:0
TERM = xterm-color
Breakpoint 1 at 0x5bba43a
Breakpoint 2 at 0xaa0cf: file sysdep.c, line 1245.
(gdb) run
Starting program: /Applications/Emacs.app/Contents/MacOS/Emacs

Reading symbols for shared libraries
++++++++++.................................................................
done
Breakpoint 1 at 0x971ed43a
qd smoothing: 25165881 (1, 0)
Reading symbols for shared libraries .. done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xc0000003
0x95c0a6e4 in objc_msgSend ()
(gdb) bt
#0  0x95c0a6e4 in objc_msgSend ()
#1  0x0016d5de in ns_draw_glyph_string (s=0xbfffe5a0) at nsterm.m:2921
#2  0x0003c1b5 in draw_glyphs (w=0x8ac100, x=378, row=0x339a050,
area=TEXT_AREA, start=0, end=39, hl=DRAW_NORMAL_TEXT, overlaps=0) at
xdisp.c:20482
#3  0x0003da96 in x_write_glyphs (start=0x339d800, len=39) at xdisp.c:21826
#4  0x000074be in update_window_line (w=0x0, vpos=14,
mouse_face_overwritten_p=0xbfffea4c) at dispnew.c:4588
#5  0x00007bd0 in update_window (w=0x8ac100, force_p=0) at dispnew.c:4313
#6  0x00009323 in update_window_tree (w=0x8ac100, force_p=0) at dispnew.c:4006
#7  0x0000a582 in update_frame (f=0x8abf80, force_p=0,
inhibit_hairy_id_p=0) at dispnew.c:3934
#8  0x00035b5b in redisplay_internal (preserve_echo_area=<value
temporarily unavailable, due to optimizations>) at xdisp.c:11930
#9  0x0009b47c in read_char (commandflag=1, nmaps=3, maps=0xbffff1a0,
prev_event=25165833, used_mouse_menu=0xbffff298, end_time=0x0) at
keyboard.c:2687
#10 0x0009debb in read_key_sequence (keybuf=0xbffff358, bufsize=30,
prompt=25165833, dont_downcase_last=0, can_return_switch_frame=1,
fix_current_buffer=1) at keyboard.c:9431
#11 0x000a03aa in command_loop_1 () at keyboard.c:1653
#12 0x00101ded in internal_condition_case (bfun=0xa0170
<command_loop_1>, handlers=25205473, hfun=0x96bf0 <cmd_error>) at
eval.c:1511
#13 0x0008fee8 in command_loop_2 () at keyboard.c:1369
#14 0x00101ccc in internal_catch (tag=-1073741821, func=0x8fea0
<command_loop_2>, arg=25165833) at eval.c:1247
#15 0x0008fc3e in command_loop () at keyboard.c:1348
#16 0x0008fd02 in recursive_edit_1 () at keyboard.c:957
#17 0x0008fe81 in Frecursive_edit () at keyboard.c:1019
#18 0x0008eabb in main (argc=1, argv=0xbffff764) at emacs.c:1796

FILE:
;;;  Common to all my platforms

(setq white-background nil)
(setq mac-allow-anti-aliasing nil)

;; colors
;;
;; (add-to-list 'default-frame-alist '(background-color . "black"))
;; ;; (add-to-list 'default-frame-alist '(background-color . "gray16"))
(add-to-list 'default-frame-alist '(foreground-color . "lightyellow"))
(add-to-list 'default-frame-alist '(cursor-color . "Yellow3"))
;;(add-to-list 'default-frame-alist '(background-color . "DarkSlateGray"))

(add-to-list 'default-frame-alist
               '(background-color . "black"))

;; (if (equal emacs-build-system "petit.local")
;;     (add-to-list 'default-frame-alist
;;               '(background-color . "gray14"))
;;   (add-to-list 'default-frame-alist
;;             '(background-color . "black")))
;;
(if running-gnu (progn
(set-face-background 'region "rgb:8/6/5")
(set-face-foreground 'region "lightyellow")
(set-face-foreground 'modeline "lightgoldenrod")
(set-face-background 'modeline "gray21")
(set-face-foreground 'highlight "lightyellow")
(set-face-background 'highlight "yellow4")
(set-face-foreground 'bold "white")
(set-face-foreground 'italic "tan1")
;; (if (equal emacs-build-system "petit.local")
;;  (set-face-background 'fringe  "gray14"))
))

(load-file "~/Current/ademacs.el")

;; ==========================
;; Last edited: "March 25, 2008, 06:37 pm"