all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Geoffrey Alan Washburn <geoffw@cis.upenn.edu>
Subject: Re: unicode-2 branch segfaulting on MacOS X?
Date: Fri, 27 Oct 2006 06:05:49 -0400	[thread overview]
Message-ID: <4541D9FD.6030707@cis.upenn.edu> (raw)
In-Reply-To: <E1GdJ9V-00034m-00@etlken>

Kenichi Handa wrote:
> In article <453CBBD5.9010900@cis.upenn.edu>, Geoffrey Alan Washburn <geoffw@cis.upenn.edu> writes:
> 
>> Kenichi Handa wrote:
>>> Thank you.  I think I found what was wrong.  As I've just
>>> installed a fix, please try the latest code.
> 
>> 	Thanks, that seems to have solved the problem in font_unparse_fcname, 
>> but now it seems to be segfaulting in gtk_default_draw_check ()
> 
> 
>> Starting program: /local/bin/emacs --enable-font-backend --font 
>> "Bitstream Vera Sans Mono-16"
>> Breakpoint 3 at 0x9ca20: file xterm.c, line 8053.
> 
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>> Reason: KERN_PROTECTION_FAILURE at address: 0x00000004
>> 0x0018f358 in gtk_default_draw_check () at font.c:1328
>> 1328	      p += sprintf (p, ":%s=%s", style_names[i],
>> (gdb) p styles[i]
>> Cannot access memory at address 0xca87dc74
> 
> It seems that the stack (or the symbol table is) is
> completely broken.  Please rebuild emacs with this:
> % make CFLAGS=-g clean all
> and check if Emacs segfaults at the same place or not.
> 


	Thanks.  Same place, but slightly different results.


GNU gdb 6.3.50-20050815 (Apple version gdb-563) (Wed Jul 19 05:17:43 GMT 
2006)
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 "powerpc-apple-darwin"...Reading symbols for 
shared
libraries ............................. done

DISPLAY = :0.0
TERM = rxvt
Breakpoint 1 at 0x9012dbd0
Breakpoint 2 at 0x17ef34: file sysdep.c, line 1383.
(gdb) run  --enable-font-backend --font "Bitstream Vera Sans Mono-16"
Starting program: /local/bin/emacs --enable-font-backend --font 
"Bitstream Vera Sans
Mono-16"
Reading symbols for shared libraries
...+.....++++....+...............................................+++++..............+..+.++++ 

done
Breakpoint 3 at 0x10838c: file xterm.c, line 8053.

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000004
0x002b5a9c in font_unparse_fcname (font=43808468, pixel_size=17, 
name=0x2b20de0
"bitstream vera sans mono:pixelsize=17:weight=medium:slant=r", 
nbytes=96) at
font.c:1328
1328	      p += sprintf (p, ":%s=%s", style_names[i],
(gdb) print i
$1 = 2
(gdb) print style_names
$2 = {0x2dd54c "weight", 0x2dd554 "slant", 0x2c8fa8 "width"}
(gdb) print style_names[2]
$3 = 0x2c8fa8 "width"
(gdb) p styles
$4 = {66909105, 66836681, 58898315}
(gdb) p styles[i]
$5 = 58898315
(gdb) xtype
Lisp_String
(gdb) pp styles[i]
""
(gdb) bt full
#0  0x002b5a9c in font_unparse_fcname (font=43808468, pixel_size=17, 
name=0x2b20de0
"bitstream vera sans mono:pixelsize=17:weight=medium:slant=r", 
nbytes=96) at
font.c:1328
	val = 76618018
	point_size = -1
	dpi = -1
	spacing = -1
	scalable = -1
	i = 2
	len = 68
	p = 0x2b20e1b ""
	styles = {66909105, 66836681, 58898315}
	style_names = {0x2dd54c "weight", 0x2dd554 "slant", 0x2c8fa8 "width"}
#1  0x002c5444 in xftfont_open (f=0x29c6490, entity=43808468, 
pixel_size=17) at
xftfont.c:267
	dpyinfo = (Display_Info *) 0x29281d0
	display = (struct _XDisplay *) 0x58fe200
	val = 76618018
	pattern = (struct _FcPattern *) 0x2b1aac0
	pat = (struct _FcPattern *) 0x2b0b4a0
	file = (FcChar8 *) 0x29c7740 "/usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf"
	xftfont_info = (struct xftfont_info *) 0x2b20bb0
	xfont = (XFontStruct *) 0x2b20d90
	font = (struct font *) 0x2b20bb0
	size = 17
	xftfont = (XftFont *) 0x5955c00
	spacing = 8
	name = 0x2b20de0 "bitstream vera sans
mono:pixelsize=17:weight=medium:slant=r"
	len = 96
#2  0x002b8a14 in font_open_entity (f=0x29c6490, entity=43808468, 
pixel_size=17) at
font.c:2457
	driver_list = (struct font_driver_list *) 0x29c5550
	objlist = 58721289
	size = 0
	val = 58900241
	font = (struct font *) 0x59346e3
#3  0x002b9d8c in font_open_by_name (f=0x29c6490, name=0x4962b90 
"Bitstream Vera
Sans Mono-16") at font.c:2778
	args = {58812241, 93538019}
	spec = 43805732
	prefer = 68185644
	size = 136
	entity = 43808468
	entity_list = 41355997
	frame = 43803796
	i = 8
	pixel_size = 17
#4  0x0001cf38 in x_set_font (f=0x29c6490, arg=77084827, 
oldval=58721289) at
frame.c:3114
	fontset = -1
	font_object = 58864001
	result = 11
	fontset_name = 41356205
	frame = 58721313
	old_fontset = -1
#5  0x0001bb40 in x_set_frame_parameters (f=0x29c6490, alist=58721289) at
frame.c:2767
	param_index = 56
	old_value = 58721289
	count = 7
	prop = 58865185
	val = 77084827
	tail = 58721289
	width = 10
	height = 10
	left = 58721313
	top = 58721313
	icon_left = 58721313
	icon_top = 58721313
	parms = (Lisp_Object *) 0xbfff9f40
	values = (Lisp_Object *) 0xbfff9f20
	i = 1
	p = 0
	left_no_change = 0
	top_no_change = 0
	icon_left_no_change = 0
	icon_top_no_change = 0
	fullscreen_is_being_set = 0
	gcpro1 = {
   next = 0x498389b,
   var = 0xbfffa020,
   nvars = 1
}
	gcpro2 = {
   next = 0xbfff9fd0,
   var = 0x1f010,
   nvars = 1
}
#6  0x0004962b in redisplay_window (window=300580, 
just_this_one_p=1140850689) at
xdisp.c:13533
	w = (struct window *) 0xff000000
	f = (struct frame *) 0xbffffff
	buffer = (struct buffer *) 0x0
	old = (struct buffer *) 0x58f02
	lpoint = {
   charpos = 300587,
   bytepos = -2147483648
}
	opoint = {
   charpos = 570425343,
   bytepos = -16777216
}
	startp = {
   charpos = 300425,
   bytepos = 1811939328
}
	update_mode_line = -16777216
	tem = 251658239
	it = {
   window = 100663295,
   w = 0xff000000,
   f = 0x4962b,
   method = 1946157056,
   stop_charpos = 251658239,
   end_charpos = -16777216,
   s = 0x58f01 "_",
   string_nchars = -335544320,
   region_beg_charpos = 285212671,
   region_end_charpos = -16777216,
   redisplay_end_trigger_charpos = 300587,
   multibyte_p = 0,
   header_line_p = 1,
   string_from_display_prop_p = 0,
   ellipsis_p = 1,
   dp = 0x1ffffff,
   dpvec = 0xff000000,
   dpend = 0x4962b,
   dpvec_char_len = 1409286144,
   dpvec_face_id = 83886079,
   saved_face_id = -16777216,
   ctl_chars = {300587, 1207959552, 100663295, -16777216, 300587, 
1006632960,
167772159, -16777216, 300587, 738197504, 184549375, -16777216, 300587, 
469762048,
251658239, -16777216},
   start = {
     pos = {
       charpos = 300587,
       bytepos = 134217728
     },
     overlay_string_index = 150994943,
     string_pos = {
       charpos = -16777216,
       bytepos = 300586
     },
     dpvec_index = -133916614
   },
   current = {
     pos = {
       charpos = 134217728,
       bytepos = 3
     },
     overlay_string_index = -201326592,
     string_pos = {
       charpos = 0,
       bytepos = 1140850687
     },
     dpvec_index = -16777216
   },
   overlay_strings = {300586, -1342177280, 134217727, -16777216, 300586, 
-1543503872,
134217727, -16777216, 300425, -1811939328, 150994943, -16777216, 300586,
-1811939328, 251658239, -16777216},
   n_overlay_strings = 300586,
   string = -2147483648,
   stack = {{
       string = 268435455,
       string_nchars = -16777216,
       end_charpos = 300586,
       stop_charpos = 1811939328,
       face_id = 184549375,
       u = {
         image = {
           object = -16777216,
           slice = {
             x = 300586,
             y = 1543503872,
             width = 905969663,
             height = -16777216
           },
           image_id = 300586
         },
         comp = {
           object = -16777216,
           c = 300586,
           len = 1543503872,
           cmp_id = 905969663,
           cmp_len = -16777216
         },
         stretch = {
           object = -16777216
         }
       },
       position = {
         charpos = 536870912,
         bytepos = 788529151
       },
       current = {
         pos = {
           charpos = -16777216,
           bytepos = 300585
         },
         overlay_string_index = -335544320,
         string_pos = {
           charpos = 805306367,
           bytepos = -16777216
         },
         dpvec_index = 300585
       },
       area = 3087007744,
       method = 637534207,
       multibyte_p = 1,
       string_from_display_prop_p = 1,
       display_ellipsis_p = 1,
       space_width = 300585,
       font_height = -1946157056,
       voffset = 15871
     }, {
       string = -16777216,
       string_nchars = 300585,
       end_charpos = 1207959552,
       stop_charpos = 83886079,
       face_id = -16777216,
       u = {
         image = {
           object = 300425,
           slice = {
             x = -1610612736,
             y = 922746879,
             width = -16777216,
             height = 300585
           },
           image_id = 201326592
         },
         comp = {
           object = 300425,
           c = -1610612736,
           len = 922746879,
           cmp_id = -16777216,
           cmp_len = 300585
         },
         stretch = {
           object = 300425
         }
       },
       position = {
         charpos = 738197503,
         bytepos = -16777216
       },
       current = {
         pos = {
           charpos = 300433,
           bytepos = 536870912
         },
         overlay_string_index = 301989887,
         string_pos = {
           charpos = -16777216,
           bytepos = 300433
         },
         dpvec_index = 134217728
       },
       area = 905969663,
       method = 4278190080,
       multibyte_p = 0,
       string_from_display_prop_p = 0,
       display_ellipsis_p = 0,
       space_width = -805306368,
       font_height = 721420287,
       voffset = -256
     }, {
       string = 300432,
       string_nchars = -671088640,
       end_charpos = 218103807,
       stop_charpos = -16777216,
       face_id = 300432,
       u = {
         image = {
           object = -1006632960,
           slice = {
             x = 520093695,
             y = -16777216,
             width = 300584,
             height = -1409286144
           },
           image_id = 704643071
         },
         comp = {
           object = -1006632960,
           c = 520093695,
           len = -16777216,
           cmp_id = 300584,
           cmp_len = -1409286144
         },
         stretch = {
           object = -1006632960
         }
       },
       position = {
         charpos = -16777216,
         bytepos = 300432
       },
       current = {
         pos = {
           charpos = -1811939328,
           bytepos = 301989887
         },
         overlay_string_index = -16777216,
         string_pos = {
           charpos = 300432,
           bytepos = 2080374784
         },
         dpvec_index = 671088639
       },
       area = 4278190080,
       method = 300432,
       multibyte_p = 0,
       string_from_display_prop_p = 1,
       display_ellipsis_p = 0,
       space_width = 251658239,
       font_height = -16777216,
       voffset = 4
     }, {
       string = 1006632960,
       string_nchars = 503316479,
       end_charpos = -16777216,
       stop_charpos = 300432,
       face_id = 402653184,
       u = {
         image = {
           object = 218103807,
           slice = {
             x = -16777216,
             y = 364291,
             width = 671088640,
             height = 520093695
           },
           image_id = -16777216
         },
         comp = {
           object = 218103807,
           c = -16777216,
           len = 364291,
           cmp_id = 671088640,
           cmp_len = 520093695
         },
         stretch = {
           object = 218103807
         }
       },
       position = {
         charpos = 300584,
         bytepos = -2013265920
       },
       current = {
         pos = {
           charpos = 100663295,
           bytepos = -16777216
         },
         overlay_string_index = 300432,
         string_pos = {
           charpos = 201326592,
           bytepos = 218103807
         },
         dpvec_index = -16777216
       },
       area = 364291,
       method = 335544320,
       multibyte_p = 0,
       string_from_display_prop_p = 0,
       display_ellipsis_p = 0,
       space_width = 352321536,
       font_height = 300584,
       voffset = 27648
     }},
   sp = 234881023,
   selective_display_ellipsis_p = 1,
   ctl_arrow_p = 1,
   selective = 364291,
   what = IT_CHARACTER,
   face_id = 234881023,
   face_box_p = 1,
   start_of_box_run_p = 1,
   end_of_box_run_p = 1,
   overlay_strings_at_end_processed_p = 1,
   ignore_overlay_strings_at_pos_p = 1,
   glyph_not_available_p = 1,
   starts_in_middle_of_char_p = 1,
   face_before_selective_p = 1,
   constrain_row_ascent_descent_p = 0,
   base_face_id = 364290,
   c = -335544320,
   len = 318767103,
   cmp_id = -16777216,
   cmp_len = 300584,
   char_to_display = 1409286144,
   image_id = 1325400063,
   slice = {
     x = -16777216,
     y = 300584,
     width = 0,
     height = 150994943
   },
   space_width = -16777216,
   voffset = 4,
   font_height = -1409286144,
   object = 234881023,
   position = {
     charpos = -16777216,
     bytepos = 300425
   },
   truncate_lines_p = 1,
   tab_width = 0,
   truncation_pixel_width = 3839,
   continuation_pixel_width = -1,
   first_visible_x = -16777216,
   last_visible_x = 300425,
   last_visible_y = -805306368,
   extra_line_spacing = 117440511,
   max_extra_line_spacing = -16777216,
   override_ascent = 300425,
   override_descent = -469762048,
   override_boff = 150994943,
   glyph_row = 0xff000000,
   area = 300425,
   nglyphs = -268435456,
   pixel_width = 100663295,
   ascent = -16777216,
   descent = 300426,
   max_ascent = 0,
   max_descent = 150994943,
   phys_ascent = -16777216,
   phys_descent = 300426,
   max_phys_ascent = 201326592,
   max_phys_descent = 100663295,
   current_x = -16777216,
   continuation_lines_width = 300426,
   current_y = 469762053,
   first_vpos = 83886079,
   vpos = -16777216,
   hpos = 360528,
   left_user_fringe_bitmap = 3072,
   right_user_fringe_bitmap = 1,
   left_user_fringe_face_id = 1630207,
   right_user_fringe_face_id = 2088960
}
	current_matrix_up_to_date_p = 335544320
	used_current_matrix_p = 364290
	buffer_unchanged_p = -16777216
	temp_scroll_step = 300582
	count = 167772159
	rc = 603979776
	centering_position = 364290
	last_line_misfit = -16777216
Cannot access memory at address 0x1bffffff
Previous frame inner to this frame (corrupt stack?)

Lisp Backtrace:
"x-create-frame" (0x2770c85)
"x-create-frame-with-faces" (0x2770c95)
"make-frame" (0x2770c95)
"frame-initialize" (0x48f1d89)
"command-line" (0x4983bdb)
"normal-top-level" (0xbfffb410)
(gdb)

  reply	other threads:[~2006-10-27 10:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-22 15:36 unicode-2 branch segfaulting on MacOS X? Geoffrey Alan Washburn
2006-10-23  1:04 ` Kenichi Handa
2006-10-23  1:17   ` Geoffrey Alan Washburn
2006-10-23  2:45     ` Kenichi Handa
2006-10-23  3:32       ` Geoffrey Alan Washburn
2006-10-23  5:59         ` Kenichi Handa
2006-10-23 10:00           ` Geoffrey Alan Washburn
2006-10-23 11:26             ` Kenichi Handa
2006-10-23 12:55               ` Geoffrey Alan Washburn
2006-10-27  4:17                 ` Kenichi Handa
2006-10-27 10:05                   ` Geoffrey Alan Washburn [this message]
2006-10-27  7:38                     ` Kenichi Handa
2006-10-27 13:36                       ` Geoffrey Alan Washburn
2006-10-28  0:41                       ` Giorgos Keramidas
2006-10-28  0:43                         ` Giorgos Keramidas
2006-10-28 17:39                           ` Geoffrey Alan Washburn
2006-11-03 16:43                             ` Geoffrey Alan Washburn
2006-11-08 11:55                             ` Kenichi Handa
2006-11-08 19:23                               ` Geoffrey Alan Washburn
2006-11-09  3:20                                 ` stephen
2006-11-09 11:41                                 ` Kenichi Handa
2006-11-12  2:59                                   ` Geoffrey Alan Washburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4541D9FD.6030707@cis.upenn.edu \
    --to=geoffw@cis.upenn.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.