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: Mon, 23 Oct 2006 08:55:49 -0400 Message-ID: <453CBBD5.9010900@cis.upenn.edu> References: <453C1834.6040909@cis.upenn.edu> <453C37D6.9090206@cis.upenn.edu> <453C92AF.7060100@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 1161608230 797 80.91.229.2 (23 Oct 2006 12:57:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Oct 2006 12:57:10 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 23 14:57:07 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 1GbzMK-0000Y3-9j for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 14:56:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbzMJ-0007vR-Eg for ged-emacs-devel@m.gmane.org; Mon, 23 Oct 2006 08:56:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GbzLu-0007s6-59 for emacs-devel@gnu.org; Mon, 23 Oct 2006 08:56:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GbzLq-0007ml-Uq for emacs-devel@gnu.org; Mon, 23 Oct 2006 08:56:25 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GbzLq-0007mR-Ki for emacs-devel@gnu.org; Mon, 23 Oct 2006 08:56:22 -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 1GbzLp-0000pP-PK for emacs-devel@gnu.org; Mon, 23 Oct 2006 08:56:22 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GbzLc-0000MZ-Eq for emacs-devel@gnu.org; Mon, 23 Oct 2006 14:56:08 +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 ; Mon, 23 Oct 2006 14:56:08 +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 ; Mon, 23 Oct 2006 14:56:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 453 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 1.5.0.7 (X11/20060909) 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:61042 Archived-At: 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 (gdb) p style_names $1 = {0x1b0c94 "weight", 0x1b0c9c "slant", 0x19c614 "width"} (gdb) p style_names[i] Cannot access memory at address 0xca87dc80 (gdb) p i $2 = 44174683 (gdb) p styles $3 = {66908081, 66836681, 58898315} (gdb) xtype Argument to arithmetic operation not a number or boolean. (gdb) p styles[i] Cannot access memory at address 0xca87dc74 (gdb) xtype Argument to arithmetic operation not a number or boolean. (gdb) bt full #0 0x0018f358 in gtk_default_draw_check () at font.c:1328 val = 44174683 point_size = -1 dpi = -1 spacing = -1 scalable = -1 i = 44174683 len = 1765024 p = 0x2a20d5b "" styles = {66908081, 66836681, 58898315} style_names = {0x1b0c94 "weight", 0x1b0c9c "slant", 0x19c614 "width"} #1 0x001999e8 in xftfont_open (f=0x28c63d0, entity=42759700, pixel_size=17) at xftfont.c:267 dpyinfo = (Display_Info *) 0x2828110 display = (struct _XDisplay *) 0x58fe200 val = 58898312 pat = (struct _FcPattern *) 0x2a20af0 file = (FcChar8 *) 0x28c7680 "/usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf" xftfont_info = (struct xftfont_info *) 0x2a20af0 xfont = (XFontStruct *) 0x2a20cd0 font = (struct font *) 0x2a20af0 size = 17 xftfont = (XftFont *) 0x5955c00 spacing = 44153396 name = 0x2a20d20 "bitstream vera sans mono:pixelsize=17:weight=medium:slant=r" len = 96 #2 0x00190624 in font_open_entity (f=0x2, entity=1772740, pixel_size=1689108) at font.c:2457 driver_list = (struct font_driver_list *) 0xfffffff8 objlist = -8 size = 58721289 val = 77021020 #3 0x00195038 in gtk_default_draw_handle () at font.c:2778 args = {58812241, 93538019} spec = 42756964 prefer = 114 size = -8 entity = 42759700 entity_list = 44174683 frame = 42755028 i = 2 pixel_size = 17 #4 0x00012f98 in dyld_stub_g_signal_connect_data () at tif_getimage.c:1071 _x = 114 bw = (uint32 *) 0xfffffff8 PALmap = (uint32 **) 0x19c614 pp = (unsigned char *) 0x2200226c
#5 0x00011004 in lenfix.3241 () at tif_fax3.c:786 span = 2 bp = (unsigned char *) 0x382b788 "" a0 = 77098747 a1 = 4294967295 b1 = 1912604732 a2 = 3221203424 b2 = 58721289 #6 0x00014468 in __PRETTY_FUNCTION__.10657 () at tif_getimage.c:1377 _x = 58721289 samplesperpixel = 44174682 pp = (unsigned char *) 0x19c614 "width" #7 0x000a33f0 in gtk_expander_get_property () at xfns.c:3210 f = (struct frame *) 0xbfffa9e0 frame = 3174676 tem = 58898312 name = -1 minibuffer_only = 3173972 width = 1689108 height = 1772740 count = 3174560 display = -1073763872 dpyinfo = (struct x_display_info *) 0xbfffaa00 parent = 2961200 kb = (struct kboard *) 0x2d0d54 #8 0x0013ddcc in gtk_notebook_get_menu_label_text () at eval.c:2997 fun = 44174683 original_fun = -1073763204 funcar = 58898312 numargs = 1 val = 44174683 backtrace = { next = 0xbfffadc8, function = 0xbfffac78, args = 0xbfffac7c, nargs = 1, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0xbfffac7c i = 44174683 #9 0x0016fd0c in _gtk_scale_get_value_size () at bytecode.c:679 count = 6 op = 58721289 vectorp = (Lisp_Object *) 0x1f18b8 stack = { pc = 0x2ccbf0 "e", top = 0x2ccbf0, bottom = 0x3800409, byte_string = 41276429, byte_string_start = 0x38342f1 "", constants = 41276421, next = 0x275d415 } result = 44174683 #10 0x0013d86c in gtk_notebook_page_select () at eval.c:3184 val = 1772740 syms_left = 58721289 next = 58721289 count = 5 i = 1 optional = 1 rest = 0 #11 0x0013df7c in gtk_notebook_query_tab_label_packing () at eval.c:3054 fun = 44174683 original_fun = 66940657 funcar = 58898312 numargs = 1 val = 44174683 backtrace = { next = 0xbfffafa8, function = 0xbfffae60, args = 0xbfffae64, nargs = 1, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x3fd6ef1 i = 44174683 #12 0x0016fd0c in _gtk_scale_get_value_size () at bytecode.c:679 count = 5 op = 58721289 vectorp = (Lisp_Object *) 0x2276b8 stack = { pc = 0xbfffae60 "\003\375n\361\002u\324\025", top = 0x13cbf0, bottom = 0x3fd6ef1, byte_string = 41276437, byte_string_start = 0x13cec0 "\2016t|\210\036", constants = 2939432, next = 0xbfffaee0 } result = 44174683 #13 0x0013d86c in gtk_notebook_page_select () at eval.c:3184 val = 1772740 syms_left = 58721289 next = 58721289 count = 4 i = 1 optional = 1 rest = 0 #14 0x0013df7c in gtk_notebook_query_tab_label_packing () at eval.c:3054 fun = 44174683 original_fun = 66875977 funcar = 58898312 numargs = 1 val = 44174683 backtrace = { next = 0xbfffb188, function = 0xbfffb040, args = 0xbfffb044, nargs = 1, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x3fc7249 i = 44174683 #15 0x0016fd0c in _gtk_scale_get_value_size () at bytecode.c:679 count = 4 op = 58721289 vectorp = (Lisp_Object *) 0x226ec8 stack = { pc = 0xdd45 "\021\243\255|d\033x\200[O$\177\303\363x\200\242", top = 0x275dd3d, bottom = 0x3fc7249, byte_string = 41276437, byte_string_start = 0x2758a4d "s\n%\003P\026|\003\200\004\t\005\217S\003\002u\322\205\002u\212]\003\200\004\t\004\200\275i\002u\212\255", constants = 58721289, next = 0x275dd15 } result = 44174683 #16 0x0013d86c in gtk_notebook_page_select () at eval.c:3184 val = 1772740 syms_left = 58721289 next = 58721289 count = 4 i = 0 optional = 2977280 rest = 0 #17 0x0013df7c in gtk_notebook_query_tab_label_packing () at eval.c:3054 fun = 44174683 original_fun = 76561801 funcar = 58898312 numargs = 0 val = 44174683 backtrace = { next = 0xbfffb378, function = 0xbfffb220, args = 0xbfffb224, nargs = 0, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x4903d89 i = 44174683 #18 0x0016fd0c in _gtk_scale_get_value_size () at bytecode.c:679 count = 4 op = 58721289 vectorp = (Lisp_Object *) 0x242e18 stack = { pc = 0x271edbd "q\355\305", top = 0x271ed55, bottom = 0x4903d89, byte_string = 76561801, byte_string_start = 0x275f5c5 "p\367\225\002\214W\364\003\200\004\t\003\201G\231\002u\365\365\002u\365\355\003\200\004\t\003\203\371\373", constants = 2372571, next = 0x257919d } result = 44174683 #19 0x0013d86c in gtk_notebook_page_select () at eval.c:3184 val = 1772740 syms_left = 58721289 next = 58721289 count = 4 i = 0 optional = 2977280 rest = 0 #20 0x0013df7c in gtk_notebook_query_tab_label_packing () at eval.c:3054 fun = 44174683 original_fun = 77104689 funcar = 58898312 numargs = 0 val = 44174683 backtrace = { next = 0xbfffb5f0, function = 0xbfffb410, args = 0xbfffb414, nargs = 0, evalargs = 0 '\0', debug_on_exit = 0 '\0' } internal_args = (Lisp_Object *) 0x4988631 i = 44174683 #21 0x0016fd0c in _gtk_scale_get_value_size () at bytecode.c:679 count = 2 op = 58721289 vectorp = (Lisp_Object *) 0x242220 stack = { pc = 0x229973 "\006\377\377\377\377", top = 0x30adac, bottom = 0x4988631, byte_string = 76944459, byte_string_start = 0x383c0bb "\026", constants = 2368283, next = 0x3800439 } result = 44174683 #22 0x0013d86c in gtk_notebook_page_select () at eval.c:3184 val = 1772740 syms_left = 58721289 next = 58721289 count = 2 i = 0 optional = 2977280 rest = 0 #23 0x0013d9a4 in apply_lambda (fun=2367988, args=3186988, eval_flag=1) at eval.c:3108 args_left = 3186988 i = 0 tem = 1 #24 0x0013d234 in gtk_notebook_menu_detacher () at eval.c:2388 fun = 44174683 val = 44174683 original_fun = 77102545 original_args = 58721289 funcar = 58898312 backtrace = { next = 0x0, function = 0xbfffb5e8, args = 0xbfffb570, nargs = 0, evalargs = 0 '\0', debug_on_exit = 0 '\0' } #25 0x0013b938 in internal_condition_case (bfun=0xc87e0 , handlers=58756753, hfun=0xcf650 ) at eval.c:1481 val = 44174683 c = { tag = 58721289, val = 58721289, next = 0xbfffba78, gcpro = 0x0, jmp = {-1073760672, 3196460, 0, 0, 2977280, 2977280, 2977280, 1732096, 0, -1073758424, 4, -1073758436, 1, 3173992, 3187032, 58721289, 0, 0, 0, 2983948, 1292252, 1292480, 570425938, 41950496, -1073760292, -1073758424, -524288, -2113798144, 0, -1073760580, -1610571796, 92274688, 0, -1610578580, -1610578580, 41953104, -1610571796, 501, -1610571796, 501, 0, 41953200, 41953216, 9, -1878847540, -1073760320, -1610601584, -1878952668, 1, 2977280, 4, 22, 22, -1073760144, 3156176, 77083544, 1190096, 2977280, -1073760152, 5384814, 5282136, -1073760224, 17825888, -1880771240, -1881079824, -1073760208, 1140851224, -1881078948, -1610571796, -1073760160, -1610571796, -1610591712, 0, 1, 1, 41953312, 3173972, 41952928, 22, 22, 1, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, 1089879574, -420334947, 1052826816, 0, 1089879574, 1777096616, 0, 0, 1085022207, -6003808, 1104236260, 93528789, 0, 17825888, 102, -1881123212, -1073760000, 41953312, -1881123028, 1253948, -1073759984, 1140851202, 1191176, 1, 3173992, 2968464, -1880771240, 2968464, 17825888, 5358963, 5040, -1881078012, -1073759920, 4, -1881077612, 3173972, 400, 2958940, 3198812, 1255004, -1073759856, 41953312, -1881058248, 1253948, -1073759856, 4, 17829856, 3173972, 400, -1073759288, 5, 1255004, -1073759856, 1207960580, 4096, -1880795532, 0, 17825888, 102, -1881123212, -1073759824, 4, -1881123028, 6, 1, -1073759392, 5, 5, 2977280, 4, -1073758084, 3173972, 400, 2958940, 3198812, 1255004, -1073758496, 3187032, 58721289, 0, 0, 0, 3186788, 1291100, -1073759680, 58746417, -1881058248}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0 } h = { handler = 58756753, var = 58721289, chosen_clause = -1610578580, tag = 0xbfffb6ac, next = 0x0 } #26 0x000c8858 in gtk_fixed_new () at keyboard.c:1343 No locals. #27 0x0013b450 in gtk_notebook_unrealize () at eval.c:1222 c = { tag = 58753033, val = 58721289, next = 0x0, gcpro = 0x0, jmp = {-1073759680, 38, 0, 0, 2977280, 2977280, 2977280, 1732096, 0, -1073758424, 4, -1073758436, 1, 3173992, 3187032, 58721289, 0, 0, 0, 3186788, 1291100, 1291320, -2113928622, -1073758764, 1503712, 41952288, -524288, -2113798144, 0, -1073759608, -1073759376, 671228450, 536088, -1880795532, -1073759392, 17825888, 77023957, 569872, -1073759376, 58746417, 553720, 1186032, -1073759360, 58746417, -3, 0, 26161, 58746417, 58746417, 58746417, 58746417, 58746417, 58746417, 41952288, -3, 689663, 41952288, 569872, -1073759280, -1073759008, 553840, 569872, -1073759280, 58746729, 554124, 546752, -1073759232, 603996738, 548200, -1073759040, 2931824, 0, 11, 58746753, 56218168, 0, -1073759080, 56218168, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, -1035222635, -2021289069, 1089879574, -420334947, 1052826816, 0, 1089879574, 1777096616, 0, 0, 1085022207, -6003808, 1104236260, 93528789, 56218168, 58721289, 55580280, 58747913, 58747912, 58744984, 58744986, 1218456, -1073759008, 17825888, 1219376, -1881079824, -1073759008, 1140851272, -1881078948, 1, -1073758992, 4, 58721625, 77085643, 58745865, 8, 58745865, 58745865, -1073758424, 58721289, 2932640, 58721289, 2932640, 2932640, 1147236983, 1768824907, 1701998181, 1814058597, 1920166255, 1847605294, 942551098, 541487721, 542336368, 538982432, 825702961, 943338807, 542131284, 540160048, 909844594, 1869575226, 2020504877, 926495278, 825372214, 779051626, 2117152594, 1162626369, -1073758864, 1346568196, -1073758436, 1, 2931824, 0, 56218168, 0, -1073758424, 4, -1073758436, 0, -1073758424, 4, -1073758436, 172, -1073758784, 4, 92274688, 1337184, -1073758784, -1610601584, 1337284, -1879037040, -1073758736, 603980930}, backlist = 0x0, handlerlist = 0x0, lisp_eval_depth = 0, pdlcount = 2, poll_suppress_count = 1, interrupt_input_blocked = 0, byte_stack = 0x0 } #28 0x000c8490 in gtk_fixed_size_allocate () at keyboard.c:1300 No locals. #29 0x000c85d8 in gtk_fixed_remove () at keyboard.c:1003 count = 1 val = 2983500 #30 0x000c8740 in gtk_fixed_get_child_property () at keyboard.c:1064 count = 0 buffer = 44174683 #31 0x000c7f7c in do_files_removed () at emacs.c:1814 dummy = 0 stack_bottom_variable = -113 '\217' do_initial_setlocale = 1 skip_args = 1 rlim = { rlim_cur = 8388608, rlim_max = 67108864 } no_loadup = 0 junk = 0x0 Lisp Backtrace: "x-create-frame" (0x275d405) "x-create-frame-with-faces" (0x275d415) "make-frame" (0x275d415) "frame-initialize" (0x4903d89) "command-line" (0x496144b) "normal-top-level" (0xbfffb650) (gdb)