I just updated my Ubunut 12 system to Ubuntu 14 and xemacs is now
crashing consistently. I tried updating xemacs to the latest code and
the crash is still happening.
Here is the recipe, running src/xemacs -vanilla. In the *scratch*
buffer enter
(let ((face 'default)
(default-font "Courier-10:lang=en"))
(set-specifier
(face-font face)
(cons '(x)
(fc-name-unparse
(fc-font-match (selected-device)
(fc-name-parse default-font))))))
This crashes immediately. Here is the backtrace:
#0 0x00007ffff756c040 in ?? ()
from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#1 0x00007ffff756c799 in ?? ()
from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#2 0x00007ffff756bb96 in ?? ()
from /usr/lib/x86_64-linux-gnu/libfontconfig.so.1
#3 0x00000000006acd5c in xft_find_charset_font (font=18594264,
charset=13908456, stage=STAGE_INITIAL)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/fontcolor-xlike-inc.c:473
#4 0x00000000006ae822 in x_find_charset_font (device=23188912,
font=18594264, charset=13908456, stage=STAGE_INITIAL)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/fontcolor-xlike-inc.c:715
#5 0x00000000005c3c62 in font_instantiate (unused_specifier=14322200,
matchspec=19597904, domain=23634096, instantiator=18594264, depth=3,
no_fallback=-20952)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/fontcolor.c:962
#6 0x00000000004c712d in va_call_trapping_problems_1 (
ai_mi_madre=0x7fffffffafc0)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:6173
#7 0x00000000004c6816 in call_trapping_problems_2 (opaque=21031456)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:5821
---Type <return> to continue, or q <return> to quit---
#8 0x00000000004bdc28 in call_with_condition_handler (
handler=0x4c6733 <flagged_a_squirmer>, handler_arg=21031456,
fun=0x4c67d7 <call_trapping_problems_2>, arg=21031456)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:2389
#9 0x00000000004c6841 in call_trapping_problems_1 (opaque=21031456)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:5827
#10 0x00000000004bcce5 in internal_catch (tag=14232008,
func=0x4c6818 <call_trapping_problems_1>, arg=21031456,
threw=0x7fffffffae10, thrown_tag=0x7fffffffae20,
backtrace_before_throw=0x7fffffffae28)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:1756
#11 0x00000000004c6d2b in call_trapping_problems (warning_class=10651336,
warning_string=0x0, flags=98315, problem=0x0,
fun=0x4c6ffc <va_call_trapping_problems_1>, arg=0x7fffffffafc0)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:6100
#12 0x00000000004c7993 in call_with_suspended_errors (
fun=0x5c38d5 <font_instantiate>, retval=10070952, class_=10651336,
errb=..., nargs=5)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:6265
#13 0x00000000006595aa in specifier_instance_from_inst_list (
specifier=14322200, matchspec=19597904, domain=23634096,
inst_list=19596944, errb=..., no_quit=1, depth=3, instantiator=0x0,
no_fallback=0)
---Type <return> to continue, or q <return> to quit---
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/specifier.c:2875
#14 0x0000000000659c0b in specifier_instance_1 (specifier=14322200,
matchspec=19597904, domain=23634096, errb=..., no_quit=1, no_fallback=0,
depth=3, instantiator=0x0)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/specifier.c:2998
#15 0x0000000000659dc4 in specifier_instance_no_quit (specifier=14322200,
matchspec=19597904, domain=23634096, errb=..., no_fallback=0, depth=1)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/specifier.c:3040
#16 0x000000000050626c in face_property_matching_instance (face=14329880,
property=10629640, charset=13908456, domain=23634096, errb=...,
no_fallback=0, depth=1, stage=STAGE_INITIAL)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/faces.c:628
#17 0x00000000006a1c14 in x_update_frame_external_traits (frm=0x168a0b0,
name=10629640)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/frame-x.c:2701
#18 0x000000000050b50f in update_EmacsFrame (frame=23634096, name=10629640)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/faces.c:1926
#19 0x000000000050b6ae in update_EmacsFrames (locale=10571752, name=10629640)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/faces.c:1948
#20 0x000000000050b810 in face_property_was_changed (face=14329880,
property=10629640, locale=10571752)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/faces.c:1974
#21 0x00000000005c3fb8 in font_after_change (specifier=14322200,
---Type <return> to continue, or q <return> to quit---
locale=10571752)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/fontcolor.c:1039
#22 0x0000000000657a5c in specifier_add_spec (specifier=14322200,
locale=10571752, inst_list=19601160, add_meth=SPEC_PREPEND)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/specifier.c:2068
#23 0x00000000006582f8 in Fadd_spec_list_to_specifier (specifier=14322200,
spec_list=19596464, how_to_add=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/specifier.c:2309
#24 0x00000000004c2834 in Ffuncall (nargs=4, args=0x7fffffffb8b8)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:4165
#25 0x00000000004702ad in execute_optimized_program (
program=0xd96420 <dumped_data+4197888>
"\n\254\n\v\306s\253\005\v\022\307\023\310\b\311\t!\"\b\035\211\036\021\254\022\312\r!\253\r\313\r\t\v\f\307\n&\006\210\252\064\f\253\037\f<\254\004\fC\024\314\f!\024\016\021\254\f\r:\253\b\315\316\r\"\025\252\005\f\rB\025\v\253\005\v\rB\025\317\t\320\r\311\t!\"\n#\210*\b\207\031\200\005",
program_length=96, stack_depth=8,
constants_data=0xc136e0 <dumped_data+2613440>)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/bytecode.c:972
#26 0x00000000004c0cc8 in funcall_compiled_function (fun=13816408, nargs=2,
args=0x7fffffffbcb0)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3746
#27 0x00000000004c1f1b in Feval (form=19620944)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3972
---Type <return> to continue, or q <return> to quit---
#28 0x00000000004bb113 in Fprogn (args=19617448)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:1024
#29 0x00000000004bbc17 in Flet (args=19621976)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:1202
#30 0x00000000004c1564 in Feval (form=19625424)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3882
#31 0x00000000004c27c3 in Ffuncall (nargs=2, args=0x7fffffffc350)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:4165
#32 0x00000000004702ad in execute_optimized_program (
program=0x137a968
"\n\242\303a\253#\nG\304V\253\035\305\t\262\306\307\nAB!\263\022\b\253\r\310\311!\210\312\313!\210\310\314!\210\n\207\n\242\315a\253\070\nG\304V\253\062\316\nA@!\253+\317\n\320\"\256\002\321\nA@\306\304\n8!\"\210\305\t\262\306\n!\263\022\b\253\r\310\322!\210\312\313!\210\310\314!\210\n\207\305\t\262\306\n!\263\207",
program_length=109, stack_depth=6,
constants_data=0xc03390 <dumped_data+2547056>)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/bytecode.c:972
#33 0x00000000004c0cc8 in funcall_compiled_function (fun=13779448, nargs=1,
args=0x7fffffffc838)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3746
#34 0x00000000004c2c82 in Ffuncall (nargs=2, args=0x7fffffffc830)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:4214
#35 0x00000000004702ad in execute_optimized_program (
program=0x16e23b8 "\n\253\004p\252\002\306`\307\035\033\031\310\311\312 \0---Type
<return> to continue, or q <return> to quit---
30ˎ\314\016\027!\210\212\307f\315a\256\006`Sf\315a\025\316\317!\210\r\253\n\307f\320a\253\004\307u\210\214e\v}\210\321p!\211\034\242\322a\253\f\323\324\325\f\326BBBD\252\002\f-!!+\207",
program_length=85, stack_depth=8,
constants_data=0xbee4f8 <dumped_data+2461400>)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/bytecode.c:972
#36 0x00000000004c0cc8 in funcall_compiled_function (fun=13725608, nargs=1,
args=0x7fffffffcd30)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3746
#37 0x00000000004c2c82 in Ffuncall (nargs=2, args=0x7fffffffcd28)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:4214
#38 0x00000000004702ad in execute_optimized_program (
program=0x15d3eb8 "p\030\301 \210\302\303!\210\301 )\207",
program_length=13, stack_depth=2,
constants_data=0xbedad0 <dumped_data+2458800>)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/bytecode.c:972
#39 0x00000000004c0cc8 in funcall_compiled_function (fun=13724968, nargs=0,
args=0x7fffffffd200)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3746
#40 0x00000000004c2c82 in Ffuncall (nargs=1, args=0x7fffffffd1f8)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:4214
#41 0x00000000004c5981 in apply1 (fn=13724968, arg=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:5402
#42 0x000000000047c331 in Fcall_interactively (function=10410088,
---Type <return> to continue, or q <return> to quit---
record_flag=10652968, keys=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/callint.c:438
#43 0x00000000004bfc49 in Fcommand_execute (cmd=10410088,
record_flag=10652968, keys=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:3369
#44 0x00000000004de567 in execute_command_event (command_builder=0x161a530,
event=24534208)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/event-stream.c:4283
#45 0x00000000004df126 in Fdispatch_event (event=24534208)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/event-stream.c:4619
#46 0x00000000004868d9 in Fcommand_loop_1 ()
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/cmdloop.c:623
#47 0x0000000000486695 in command_loop_1 (unused_dummy=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/cmdloop.c:528
#48 0x00000000004bd468 in condition_case_1 (handlers=10650952,
bfun=0x486660 <command_loop_1>, barg=10652968,
hfun=0x48623b <cmd_error>, harg=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:2176
#49 0x0000000000486369 in command_loop_3 ()
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/cmdloop.c:285
#50 0x0000000000486390 in command_loop_2 (unused_dummy=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/cmdloop.c:298
#51 0x00000000004bcce5 in internal_catch (tag=10122952,
---Type <return> to continue, or q <return> to quit---
func=0x48637f <command_loop_2>, arg=10652968, threw=0x0, thrown_tag=0x0,
backtrace_before_throw=0x0)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/eval.c:1756
#52 0x00000000004864a6 in initial_command_loop (load_me=10652968)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/cmdloop.c:336
#53 0x00000000004b58a9 in xemacs_21_5_b34_x86_64_unknown_linux (argc=2,
argv=0x7fffffffdc48, unused_envp=0x0, restart=0)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/emacs.c:2742
#54 0x00000000004b6359 in main (argc=2, argv=0x7fffffffdc48,
unused_envp=0x7fffffffdc60)
at /usr/local/google/home/rtoy/src/XEmacs/xemacs/src/emacs.c:3190
(gdb)
From #3, I can see that p is 0, which means FcNameParse returned 0.
I don't know what this all means, but I can help debug this with some
guidance.
Because this crashes, my selected fonts are all kind of messed up now.
--
Ray
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta