From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: invalid fontset in face_for_char
Date: Fri, 15 Feb 2008 08:45:57 -0500 [thread overview]
Message-ID: <jwvlk5mmj7d.fsf-monnier+emacs@gnu.org> (raw)
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 <redisplay_window_0>, 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 <redisplay_window_error>)
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 <command_loop_1>,
handlers=
{i = 680915304, s = {val = 144044392, type = Lisp_Symbol}, u = {val = 144044392, type = Lisp_Symbol}}, hfun=0x82763a3 <cmd_error>) 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 <command_loop_2>, 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)
reply other threads:[~2008-02-15 13:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=jwvlk5mmj7d.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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.