From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoffrey Alan Washburn Newsgroups: gmane.emacs.devel Subject: Re: unicode-2 branch segfaulting on MacOS X? Date: Fri, 27 Oct 2006 06:05:49 -0400 Message-ID: <4541D9FD.6030707@cis.upenn.edu> References: <453C1834.6040909@cis.upenn.edu> <453C37D6.9090206@cis.upenn.edu> <453C92AF.7060100@cis.upenn.edu> <453CBBD5.9010900@cis.upenn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1161929311 20124 80.91.229.2 (27 Oct 2006 06:08:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 27 Oct 2006 06:08:31 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 27 08:08:30 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GdKtA-0002Ha-89 for ged-emacs-devel@m.gmane.org; Fri, 27 Oct 2006 08:08:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdKt9-0007D6-N3 for ged-emacs-devel@m.gmane.org; Fri, 27 Oct 2006 02:08:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GdKsw-0007Ct-5c for emacs-devel@gnu.org; Fri, 27 Oct 2006 02:08:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GdKsu-0007Cd-CT for emacs-devel@gnu.org; Fri, 27 Oct 2006 02:08:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GdKsu-0007Ca-4d for emacs-devel@gnu.org; Fri, 27 Oct 2006 02:08:04 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GdKst-0003JI-DM for emacs-devel@gnu.org; Fri, 27 Oct 2006 02:08:04 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GdKsj-0002CS-Fi for emacs-devel@gnu.org; Fri, 27 Oct 2006 08:07:53 +0200 Original-Received: from c-68-39-209-108.hsd1.pa.comcast.net ([68.39.209.108]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Oct 2006 08:07:53 +0200 Original-Received: from geoffw by c-68-39-209-108.hsd1.pa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Oct 2006 08:07:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 554 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: c-68-39-209-108.hsd1.pa.comcast.net User-Agent: Thunderbird 2.0b1pre (X11/20061026) In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61218 Archived-At: Kenichi Handa wrote: > In article <453CBBD5.9010900@cis.upenn.edu>, Geoffrey Alan Washburn 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)