Subject: make-terminal-frame causes assertion failure on Windows

From: "Juanma Barranquero" <[email-masked]>
Date: Mon, 10 Nov 2008 16:38:35 +0100

Package: emacs,w32
Version: 23.0.60

 Emacs -Q
 M-: (make-terminal-frame '((tty-type . ""))) <RETURN>

Partially discussed (briefly) in this thread:

  http://lists.gnu.org/archive/html/emacs-devel/2008-11/msg00004.html

Juanma

font.c:2602: Emacs fatal error: assertion failed: CONSP((val))

Breakpoint 1, w32_abort () at w32fns.c:7279
7279      button = MessageBox (NULL,
(gdb) bt
#0  w32_abort () at w32fns.c:7279
#1  0x0101d5eb in die (msg=0x147ccec "assertion failed: CONSP((val))",
file=0x147c340 "font.c", line=2602)
    at alloc.c:6216
#2  0x011a4532 in font_get_cache (f=<value optimized out>,
driver=<value optimized out>) at font.c:2602
#3  0x011b18c4 in font_list_entities (frame=48521732, spec=48969860)
at font.c:2753
#4  0x011b24e0 in font_find_for_lface (f=0x2e46200, attrs=0x82e9c4,
spec=48970116, c=-1) at font.c:3241
#5  0x011b4ccc in font_load_for_lface (f=0x2e46200, attrs=0x82e9c4,
spec=48970116) at font.c:3357
#6  0x011ea2a6 in realize_face (cache=0x32602c0, attrs=0x82e9c4,
former_face_id=<value optimized out>)
    at xfaces.c:5888
#7  0x011ee31a in realize_named_face (f=<value optimized out>,
symbol=47949665, id=2) at xfaces.c:5750
#8  0x011ee6f1 in realize_basic_faces (f=0x2e46200) at xfaces.c:5562
#9  0x011ef3d6 in recompute_basic_faces (f=0x2e46200) at xfaces.c:916
#10 0x0103aae9 in init_iterator (it=0x82eb74, w=0x3bb9c00, charpos=-1,
bytepos=-1, row=0x0,
    base_face_id=DEFAULT_FACE_ID) at xdisp.c:2599
#11 0x0103f4d5 in x_consider_frame_title (frame=<value optimized out>)
at xdisp.c:9435
#12 0x0103f928 in prepare_menu_bars () at xdisp.c:9519
#13 0x01048200 in redisplay_internal (preserve_echo_area=<value
optimized out>) at xdisp.c:11426
#14 0x0108e7fa in read_char (commandflag=1, nmaps=2, maps=0x82fb60,
prev_event=47912961, used_mouse_menu=0x82fc24,
    end_time=0x0) at keyboard.c:2649
#15 0x01092e94 in read_key_sequence (keybuf=0x82fcc4, bufsize=30,
prompt=47912961, dont_downcase_last=0,
    can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9344
#16 0x01095fed in command_loop_1 () at keyboard.c:1621
#17 0x01019316 in internal_condition_case (bfun=0x1095d5f
<command_loop_1>, handlers=47976713,
    hfun=0x108cf97 <cmd_error>) at eval.c:1511
#18 0x0108c42b in command_loop_2 () at keyboard.c:1338
#19 0x010193c0 in internal_catch (tag=47972785, func=0x108c408
<command_loop_2>, arg=47912961) at eval.c:1247
#20 0x0108cde2 in command_loop () at keyboard.c:1317
#21 0x0108d130 in recursive_edit_1 () at keyboard.c:942
#22 0x0108d29b in Frecursive_edit () at keyboard.c:1004
#23 0x01002fb1 in main (argc=2, argv=0xa94218) at emacs.c:1777