From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: invalid fontset in face_for_char Date: Fri, 15 Feb 2008 08:45:57 -0500 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203083182 18309 80.91.229.12 (15 Feb 2008 13:46:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 13:46:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 14:46:46 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JQ0ti-0004WW-QR for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 14:46:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQ0tE-00032l-J1 for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 08:46:08 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JQ0tA-00032b-AW for emacs-devel@gnu.org; Fri, 15 Feb 2008 08:46:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JQ0t6-000326-G5 for emacs-devel@gnu.org; Fri, 15 Feb 2008 08:46:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JQ0t6-00031x-9J for emacs-devel@gnu.org; Fri, 15 Feb 2008 08:46:00 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JQ0t5-00023P-MR for emacs-devel@gnu.org; Fri, 15 Feb 2008 08:46:00 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CAO8ltUdMCpRc/2dsb2JhbACSIZxPgQI X-IronPort-AV: E=Sophos;i="4.25,358,1199682000"; d="scan'208";a="14527787" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 15 Feb 2008 08:45:57 -0500 Original-Received: from pastel.home ([76.10.148.92]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id VPI68457; Fri, 15 Feb 2008 08:45:57 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0B618849F; Fri, 15 Feb 2008 08:45:57 -0500 (EST) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:89158 Archived-At: I get an xassert failure in face_for_char (fontset.c:983) here using my MPC.el frontend to the MusicPD daemon. I haven't done much debugging here because I don't know enough of what is supposed to happen to go much further. If someone could give me some hints at what I should look that would be great, Note that this face seems to be `variable-pitch' or related (the "family" is set to "helv"). And indeed the `variable-pitch' face (and those that inherit from it) are shown with a square box. Stefan Starting program: /home/monnier/src/emacs/trunk/src/emacs -f mpc Breakpoint 1 at 0x8271834: file emacs.c, line 429. Breakpoint 2 at 0x82b69f3: file sysdep.c, line 1317. [Thread debugging using libthread_db enabled] [New Thread 0xb73898c0 (LWP 12855)] [Switching to Thread 0xb73898c0 (LWP 12855)] Breakpoint 1, abort () at emacs.c:429 (gdb) up #1 0x0823e621 in face_for_char (f=0x91d7740, face=0x93b8578, c=8230, pos=5, object= {i = 1765678560, s = {val = 155065824, type = Lisp_String}, u = {val = 155065824, type = Lisp_String}}) at fontset.c:983 (gdb) bt #0 abort () at emacs.c:429 #1 0x0823e621 in face_for_char (f=0x91d7740, face=0x93b8578, c=8230, pos=5, object= {i = 1765678560, s = {val = 155065824, type = Lisp_String}, u = {val = 155065824, type = Lisp_String}}) at fontset.c:983 #2 0x0809ac2f in get_next_display_element (it=0xbfed2120) at xdisp.c:5998 #3 0x080c9a59 in display_string (string=0x0, lisp_string= {i = 1765678560, s = {val = 155065824, type = Lisp_String}, u = {val = 155065824, type = Lisp_String}}, face_string= {i = 680872136, s = {val = 144001224, type = Lisp_Symbol}, u = {val = 144001224, type = Lisp_Symbol}}, face_string_pos=0, start=0, it=0xbfed2120, field_width=0, precision=-1, max_x=372, multibyte=1) at xdisp.c:18546 #4 0x080c5cef in display_mode_element (it=0xbfed2120, depth=3, field_width=-1, precision=-1, elt= {i = 1765678560, s = {val = 155065824, type = Lisp_String}, u = {val = 155065824, type = Lisp_String}}, props= {i = 680872136, s = {val = 144001224, type = Lisp_Symbol}, u = {val = 144001224, type = Lisp_Symbol}}, risky=0) at xdisp.c:17140 #5 0x080c6e78 in display_mode_element (it=0xbfed2120, depth=1, field_width=0, precision=0, elt= {i = 2839470144, s = {val = 155115584, type = Lisp_Cons}, u = {val = 155115584, type = Lisp_Cons}}, props= {i = 680872136, s = {val = 144001224, type = Lisp_Symbol}, u = {val = 144001224, type = Lisp_Symbol}}, risky=0) at xdisp.c:17435 #6 0x080c506d in display_mode_line (w=0x93e9318, face_id=HEADER_LINE_FACE_ID, format= {i = 2839470152, s = {val = 155115592, type = Lisp_Cons}, u = {val = 155115592, type = Lisp_Cons}}) at xdisp.c:16946 #7 0x080c4f1a in display_mode_lines (w=0x93e9318) at xdisp.c:16898 #8 0x080b86af in redisplay_window (window= {i = 2302579480, s = {val = 155095832, type = Lisp_Vectorlike}, u = {val = 155095832, type = Lisp_Vectorlike}}, just_this_one_p=0) at xdisp.c:13678 #9 0x080b0f3e in redisplay_window_0 (window= {i = 2302579480, s = {val = 155095832, type = Lisp_Vectorlike}, u = {val = 155095832, type = Lisp_Vectorlike}}) at xdisp.c:12042 #10 0x08387645 in internal_condition_case_1 ( bfun=0x80b0f0b , arg= {i = 2302579480, s = {val = 155095832, type = Lisp_Vectorlike}, u = {val = 155095832, type = Lisp_Vectorlike}}, handlers= {i = 2828342608, s = {val = 143988048, type = Lisp_Cons}, u = {val = 143988048, type = Lisp_Cons}}, hfun=0x80b0ee1 ) at eval.c:1542 #11 0x080b0ec3 in redisplay_windows (window= {i = 2302579480, s = {val = 155095832, type = Lisp_Vectorlike}, u = {val = 155095832, type = Lisp_Vectorlike}}) at xdisp.c:12021 #12 0x080b0de2 in redisplay_windows (window= {i = 2302687128, s = {val = 155203480, type = Lisp_Vectorlike}, u = {val = 155203480, type = Lisp_Vectorlike}}) at xdisp.c:12013 #13 0x080b0e04 in redisplay_windows (window= {i = 2302615896, s = {val = 155132248, type = Lisp_Vectorlike}, u = {val = 155132248, type = Lisp_Vectorlike}}) at xdisp.c:12015 #14 0x080ae88c in redisplay_internal (preserve_echo_area=0) at xdisp.c:11589 #15 0x080aaa26 in redisplay () at xdisp.c:10796 #16 0x0827d991 in read_char (commandflag=1, nmaps=3, maps=0xbfed3850, prev_event= {i = 680872136, s = {val = 144001224, type = Lisp_Symbol}, u = {val = 144001224, type = Lisp_Symbol}}, used_mouse_menu=0xbfed3a38, end_time=0x0) at keyboard.c:2724 #17 0x0829536a in read_key_sequence (keybuf=0xbfed3dd8, bufsize=30, prompt= {i = 680872136, s = {val = 144001224, type = Lisp_Symbol}, u = {val = 144001224, type = Lisp_Symbol}}, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9460 #18 0x08277740 in command_loop_1 () at keyboard.c:1655 #19 0x08387510 in internal_condition_case (bfun=0x8276dd7 , handlers= {i = 680915304, s = {val = 144044392, type = Lisp_Symbol}, u = {val = 144044392, type = Lisp_Symbol}}, hfun=0x82763a3 ) at eval.c:1494 #20 0x0827692b in command_loop_2 () at keyboard.c:1370 #21 0x08386da6 in internal_catch (tag= {i = 680911208, s = {val = 144040296, type = Lisp_Symbol}, u = {val = 144040296, type = Lisp_Symbol}}, func=0x8276901 , arg= {i = 680872136, s = {val = 144001224, type = Lisp_Symbol}, u = {val = 144001224, type = Lisp_Symbol}}) at eval.c:1230 #22 0x082768cb in command_loop () at keyboard.c:1349 #23 0x08275a05 in recursive_edit_1 () at keyboard.c:958 #24 0x08275f7a in Frecursive_edit () at keyboard.c:1020 #25 0x08273acb in main (argc=3, argv=0xbfed45b4) at emacs.c:1786 (gdb) p *face $11 = { id = 5, gc = 0x93f32f8, font = 0x0, stipple = 0, foreground = 0, background = 15066597, underline_color = 0, overline_color = 0, strike_through_color = 0, box_color = 12566463, font_name = 0x0, font_info_id = -1, font_info = 0x0, fontset = -1, pixmap_w = 0, pixmap_h = 0, box_line_width = 1, box = FACE_RAISED_BOX, use_box_color_for_shadows_p = 1, lface = {{ i = 680872472, s = { val = 144001560, type = Lisp_Symbol }, u = { val = 144001560, type = Lisp_Symbol } }, { i = 1756577824, s = { val = 145965088, type = Lisp_String }, u = { val = 145965088, type = Lisp_String } }, { i = 680898912, s = { val = 144028000, type = Lisp_Symbol }, u = { val = 144028000, type = Lisp_Symbol } }, { i = 91, s = { val = 91, type = Lisp_Int }, u = { val = 91, type = Lisp_Int } }, { i = 680898528, s = { val = 144027616, type = Lisp_Symbol }, u = { val = 144027616, type = Lisp_Symbol } }, { i = 680898528, s = { val = 144027616, type = Lisp_Symbol }, u = { val = 144027616, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 1760011424, s = { val = 149398688, type = Lisp_String }, u = { val = 149398688, type = Lisp_String } }, { i = 1759015016, s = { val = 148402280, type = Lisp_String }, u = { val = 148402280, type = Lisp_String } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 2839004112, s = { val = 154649552, type = Lisp_Cons }, u = { val = 154649552, type = Lisp_Cons } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 6, s = { val = 6, type = Lisp_Int }, u = { val = 6, type = Lisp_Int } }, { i = 1760361592, s = { val = 149748856, type = Lisp_String }, u = { val = 149748856, type = Lisp_String } }}, hash = 680900319, underline_p = 0, overline_p = 0, strike_through_p = 0, foreground_defaulted_p = 0, background_defaulted_p = 0, underline_defaulted_p = 0, overline_color_defaulted_p = 0, strike_through_color_defaulted_p = 0, box_color_defaulted_p = 1, tty_bold_p = 0, tty_dim_p = 0, tty_underline_p = 0, tty_alt_charset_p = 0, tty_reverse_p = 0, tty_blinking_p = 0, colors_copied_bitwise_p = 0, overstrike = 0, next = 0x0, prev = 0x0, ascii_face = 0x93b8578, extra = 0x0 } (gdb) p face->lface $12 = {{ i = 680872472, s = { val = 144001560, type = Lisp_Symbol }, u = { val = 144001560, type = Lisp_Symbol } }, { i = 1756577824, s = { val = 145965088, type = Lisp_String }, u = { val = 145965088, type = Lisp_String } }, { i = 680898912, s = { val = 144028000, type = Lisp_Symbol }, u = { val = 144028000, type = Lisp_Symbol } }, { i = 91, s = { val = 91, type = Lisp_Int }, u = { val = 91, type = Lisp_Int } }, { i = 680898528, s = { val = 144027616, type = Lisp_Symbol }, u = { val = 144027616, type = Lisp_Symbol } }, { i = 680898528, s = { val = 144027616, type = Lisp_Symbol }, u = { val = 144027616, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 1760011424, s = { val = 149398688, type = Lisp_String }, u = { val = 149398688, type = Lisp_String } }, { i = 1759015016, s = { val = 148402280, type = Lisp_String }, u = { val = 148402280, type = Lisp_String } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 2839004112, s = { val = 154649552, type = Lisp_Cons }, u = { val = 154649552, type = Lisp_Cons } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 680872136, s = { val = 144001224, type = Lisp_Symbol }, u = { val = 144001224, type = Lisp_Symbol } }, { i = 6, s = { val = 6, type = Lisp_Int }, u = { val = 6, type = Lisp_Int } }, { i = 1760361592, s = { val = 149748856, type = Lisp_String }, u = { val = 149748856, type = Lisp_String } }} (gdb) p face->lface[0] $13 = { i = 680872472, s = { val = 144001560, type = Lisp_Symbol }, u = { val = 144001560, type = Lisp_Symbol } } (gdb) pr face (gdb) p face->lface[1] $14 = { i = 1756577824, s = { val = 145965088, type = Lisp_String }, u = { val = 145965088, type = Lisp_String } } (gdb) pr "helv" (gdb)