"Stephen J. Turnbull" <stephen(a)xemacs.org> writes:
Can you give me a C backtrace? All the Lisp backtrace tells me is
that some fontconfig code is being called, but I don't see anything
wrong with the code just looking at it.
You should reenable the Xft debugging output, set debug_xft=1 in
gdb. If you do that, make sure you add the patch above which adds
printout of the truename of the font we're initializing.
I've now done both. New crash output, along with GDB backtrace,
follows.
$ ./xemacs -xrm 'XEmacs.defaults.attributeFont: Bitstream Vera Mono-12:dpi=75'
initialized metrics ascent 12 descent 3 width 8 height 14
initialized font -b&h-lucidatypewriter-bold-r-normal-sans-0-130-*-*-*-*-iso8859-*
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
Your version of XEmacs was distributed with a PROBLEMS file that may describe
your crash, and with luck a workaround. Please check it first, but do report
the crash anyway.
Please report this bug by invoking M-x report-emacs-bug, or by selecting
`Send Bug Report' from the Help menu. If that won't work, send ordinary
email to `crashes(a)xemacs.org'. *MAKE SURE* to include this entire output
from this crash, especially including the Lisp backtrace, as well as the
XEmacs configuration from M-x describe-installation (or equivalently, the
file `Installation' in the top of the build tree).
*Please* try *hard* to obtain a C stack backtrace; without it, we are unlikely
to be able to analyze the problem. Locate the core file produced as a result
of this crash (often called `core' or `core.<process-id>', and located in
the directory in which you started XEmacs or your home directory), and type
gdb /home/hniksic/work/xemacs/src/xemacs core
then type `where' at the debugger prompt. No GDB on your system? You may
have DBX, or XDB, or SDB. (Ask your system administrator if you need help.)
If no core file was produced, enable them (often with `ulimit -c unlimited')
in case of future recurrance of the crash.
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
fc-font-real-pattern("monospace-12" #<x-device on ":0.0"
0x5fd>)
# bind (device font)
x-make-font-bold-xft("monospace-12" #<x-device on ":0.0"
0x5fd>)
# bind (device font)
x-make-font-bold("monospace-12" #<x-device on ":0.0" 0x5fd>)
# bind (mapper G15042 G15041 devtype tag-set x G15040 ffpdev devtype-spec prop inst-list
locale)
frob-face-inst-list(global (((default x) .
"-b&h-lucidatypewriter-medium-r-normal-sans-0-130-*-*-*-*-iso8859-*")
((default tty) . "normal") ((default x) . "monospace-12") ((default x)
. "Sazanami Mincho-12")) font window-system)
# bind (thunk inst-list locale sp)
frob-locale(#<font-specifier global=(((default x) .
"-b&h-lucidatypewriter-medium-r-normal-sans-0-130-*-*-*-*-iso8859-*")
((default tty) . "normal") ((default x) . "monospace-12") ((default x)
. "Sazanami Mincho-12")) fallback=#<font-specifier global=((x) .
"-b&h-lucidatypewriter-medium-r-normal-sans-0-130-*-*-*-*-iso8859-*")
fallback=(((tty) . "normal") ((x) . "monospace-12") ((x) .
"Sazanami Mincho-12")) 0x1c4> 0x8a4> global (((default x) .
"-b&h-lucidatypewriter-medium-r-normal-sans-0-130-*-*-*-*-iso8859-*")
((default tty) . "normal") ((default x) . "monospace-12") ((default x)
. "Sazanami Mincho-12")) (font . window-system))
# bind (ms-this-spec ms-specs ms-result ms-exact-p ms-tag-set ms-maparg ms-locale
ms-funcms-specifier)
map-specifier(#<font-specifier global=(((default x) .
"-b&h-lucidatypewriter-medium-r-normal-sans-0-130-*-*-*-*-iso8859-*")
((default tty) . "normal") ((default x) . "monospace-12")((default x)
. "Sazanami Mincho-12")) fallback=#<font-specifier global=((x) .
"-b&h-lucidatypewriter-medium-r-normal-sans-0-130-*-*-*-*-iso8859-*")
fallback=(((tty) . "normal") ((x) ."monospace-12") ((x) .
"Sazanami Mincho-12")) 0x1c4> 0x8a4> frob-locale global (font .
window-system) nil nil)
# bind (locale)
map-over-locales(global)
# bind (do-something orig-instance check-differences domain do-later-stages ffpdev)
# (unwind-protect ...)
# bind (--letf-save--15037 --letf-bound--15038)
# (unwind-protect ...)
# bind (--letf-save--15033 --letf-bound--15034)
# (unwind-protect ...)
# bind (--letf-save--15029 --letf-bound--15030)
# (unwind-protect ...)
# bind (--letf-save--15025 --letf-bound--15026)
# (unwind-protect ...)
# bind (--letf-save--15021 --letf-bound--15022 standard-face-mapping frob-mapping
tty-props win-prop frobbed-face unfrobbed-face exact-p tag-set locale face)
Face-frob-property(bold global nil nil default bold font (highlight) (tty (lambda (x) t)
x x-make-font-bold gtk gtk-make-font-bold mswindows mswindows-make-font-bold msprinter
mswindows-make-font-bold) (([default] . [bold]) ([bold] . t) ([italic] . [bold-italic])
([bold-italic] . t)))
# bind (exact-p tags locale face)
make-face-bold(bold global)
# bind (Face-frob-property-device-considered-current device)
init-global-faces(#<x-device on ":0.0" 0x5fd>)
# (unwind-protect ...)
# (unwind-protect ...)
# bind (inhibit-quit)
# (unwind-protect ...)
# (unwind-protect ...)
make-device(x nil)
# bind (display)
make-x-device(nil)
init-x-win()
# bind (debugger debug-on-error command-line-args-left)
command-line()
# (condition-case ... . ((t (byte-code " Â" [error-data data nil] 1))))
# bind (error-data)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
zsh: segmentation fault (core dumped) ./xemacs -xrm 'XEmacs.defaults.attributeFont:
Bitstream Vera Mono-12:dpi=75'
$ gdb xemacs core
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".
Core was generated by `./xemacs -xrm XEmacs.defaults.attributeFont: Bitstream Vera
Mono-12:dpi=75'.
Program terminated with signal 11, Segmentation fault.
warning: current_sos: Can't read pathname for load map: Input/output error
Reading symbols from /usr/lib/libaudio.so.2...done.
Loaded symbols for /usr/lib/libaudio.so.2
Reading symbols from /usr/lib/libtiff.so.4...done.
Loaded symbols for /usr/lib/libtiff.so.4
Reading symbols from /usr/lib/libpng12.so.0...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/X11R6/lib/libXpm.so.4...done.
Loaded symbols for /usr/X11R6/lib/libXpm.so.4
Reading symbols from /usr/lib/libXft.so.2...done.
Loaded symbols for /usr/lib/libXft.so.2
Reading symbols from /usr/lib/libfontconfig.so.1...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libXrender.so.1...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/X11R6/lib/libXmu.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXmu.so.6
Reading symbols from /usr/X11R6/lib/libXt.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXt.so.6
Reading symbols from /usr/X11R6/lib/libXext.so.6...done.
Loaded symbols for /usr/X11R6/lib/libXext.so.6
Reading symbols from /usr/X11R6/lib/libX11.so.6...done.
Loaded symbols for /usr/X11R6/lib/libX11.so.6
Reading symbols from /usr/X11R6/lib/libSM.so.6...done.
Loaded symbols for /usr/X11R6/lib/libSM.so.6
Reading symbols from /usr/X11R6/lib/libICE.so.6...done.
Loaded symbols for /usr/X11R6/lib/libICE.so.6
Reading symbols from /usr/lib/libdb3.so.3...done.
Loaded symbols for /usr/lib/libdb3.so.3
Reading symbols from /lib/libncurses.so.5...done.
Loaded symbols for /lib/libncurses.so.5
Reading symbols from /lib/tls/libm.so.6...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/tls/libutil.so.1...done.
Loaded symbols for /lib/tls/libutil.so.1
Reading symbols from /lib/tls/libc.so.6...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/tls/libdl.so.2...done.
Loaded symbols for /lib/tls/libdl.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libfreetype.so.6...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libexpat.so.1...done.
Loaded symbols for /usr/lib/libexpat.so.1
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/tls/libnss_files.so.2...done.
Loaded symbols for /lib/tls/libnss_files.so.2
Reading symbols from /lib/tls/libnss_compat.so.2...done.
Loaded symbols for /lib/tls/libnss_compat.so.2
Reading symbols from /lib/tls/libnsl.so.1...done.
Loaded symbols for /lib/tls/libnsl.so.1
Reading symbols from /lib/tls/libnss_nis.so.2...done.
Loaded symbols for /lib/tls/libnss_nis.so.2
Reading symbols from /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2...done.
Loaded symbols for /usr/X11R6/lib/X11/locale/lib/common/xlcDef.so.2
#0 0x403b2ab1 in kill () from /lib/tls/libc.so.6
(gdb) where
#0 0x403b2ab1 in kill () from /lib/tls/libc.so.6
#1 0x080c6149 in fatal_error_signal (sig=11) at emacs.c:3676
#2 <signal handler called>
#3 0x081e3a30 in new_dfc_convert_size (srctext=0x8259120 "LISP_TO_VOID (str)",
src=0x8383778, src_size=-1, type=DFC_LISP_STRING, codesys={...}) at text.c:4598
#4 0x0821391a in extract_fcapi_string (str={...}) at xft-fonts.c:1024
#5 0x08213500 in Ffc_font_real_pattern (fontname={...}, xdevice={...}) at
xft-fonts.c:843
#6 0x080cf4fd in Ffuncall (nargs=3, args=0xbfffd5e4) at eval.c:3840
#7 0x08098330 in execute_optimized_program (
program=0x8663430 "Æ\016\023\n®\003Ç
\"\211\033|\vÈ\036\022\033É\vÊ\016\022#*Ë\v\016\024C\"\034\031Ì\f\b\"\210Ì\f\016\025\"\210\fYÍ\f!\035Î\r\b\016\026#\210Ï\r\n\"\vÎ\r\016\021\t#\210Ð\r!)®;Í\f!\035Î\r\b\016\027#\210Ï\r\n\"\vÎ\r\016\021\t#\210Ð\r!)®\035Í\f!\035Î\r\b\016\030#\210Ï\r\n\"\vÎ\r\016\021\t#\210Ð\r!)*)\207",
stack_depth=5,
constants_data=0x8326ac0) at bytecode.c:823
#8 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=2, args=0xbfffd808)
at eval.c:3450
#9 0x080cf7ba in Ffuncall (nargs=3, args=0xbfffd804) at eval.c:3879
#10 0x08098330 in execute_optimized_program (
program=0x85c7b88
"ÂÃ!«\020Ä\t!«\006Å\t\b\"\207Æ\t\b\"\207Å\t\b\"\207",
stack_depth=3,
constants_data=0x8326bbc) at bytecode.c:823
#11 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=2, args=0xbfffda18)
at eval.c:3450
#12 0x080cf7ba in Ffuncall (nargs=3, args=0xbfffda14) at eval.c:3879
#13 0x08098330 in execute_optimized_program (
program=0x86593f0
"\016$\030\016%\032Æ\211\035\034Æ\211\036\031\031Æ\036\032\n:\203Ó",
stack_depth=7, constants_data=0x8320e24) at bytecode.c:823
---Type <return> to continue, or q <return> to quit---
#14 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=4, args=0xbfffdc38)
at eval.c:3450
#15 0x080cf7ba in Ffuncall (nargs=5, args=0xbfffdc34) at eval.c:3879
#16 0x08098330 in execute_optimized_program (
program=0x86593c0
"Æ\r\t\f@\fA$\033Ç\n\r\b\016\n$\210È\n\r\vBC\"\210)É\207\021\001",
stack_depth=5, constants_data=0x8320b14) at bytecode.c:823
#17 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=4, args=0xbfffde58)
at eval.c:3450
#18 0x080cf7ba in Ffuncall (nargs=5, args=0xbfffde54) at eval.c:3879
#19 0x08098330 in execute_optimized_program (
program=0x8646338
"Æ\n\t\b\016\b$Ç\034\035\r«\030\f¬\025\r@\033\016\t\n\v@\vA\016\n$\024\rA\025)ªç\f*\207",
stack_depth=5, constants_data=0x8320a74) at bytecode.c:823
#20 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=6, args=0xbfffe078)
at eval.c:3450
#21 0x080cf7ba in Ffuncall (nargs=7, args=0xbfffe074) at eval.c:3879
#22 0x08098330 in execute_optimized_program (
program=0x86462d0
"Æ\v\nNÇ\t\nÈB\b\016\v&\006\210\016\f\035É\034\r:«\031\r@\024Æ\v\fNÇ\t\fÊB\b\016\v&\006\210\rA\211\025ªæ*É\207",
stack_depth=8, constants_data=0x8320ab0)
at bytecode.c:823
#23 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=1, args=0xbfffe2a8)
at eval.c:3450
#24 0x080cf7ba in Ffuncall (nargs=2, args=0xbfffe2a4) at eval.c:3879
#25 0x08098330 in execute_optimized_program (
program=0x8646060
"ÆÇ!\211\0368\003ÇK\0369È\216ÇÉM\210ÆÊ!\211\036:\003ÊK\036;Ë\216ÊÌM\210ÆÍ!\211\036<\003ÍK\036=Î\216ÍÏM\210ÆÐ!\211\036>\003ÐK\036?Ñ\216ÐÒM\210ÆÓ!\211\036@\003ÓK\036AÔ\216ÓÕM\210\016B\036/Ê\r!®\tÖ\r!®\004×\r!\211\0363\aØ\rÙ\016/#\031\0164\016\0165\---Type
<return> to continue, or q <return> to quit---
n\t\aÚ\f!Ûs?\211\0366\006Ü\f\v\t#\0360Ý\f!\024Ó\r!\210\0163\205Ç", stack_depth=11,
constants_data=0x8320f6c) at bytecode.c:823
#26 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=10, args=0xbfffe4d8)
at eval.c:3450
#27 0x080cf7ba in Ffuncall (nargs=11, args=0xbfffe4d4) at eval.c:3879
#28 0x08098330 in execute_optimized_program (program=0x8646008
"Ä\v\n\t\bÅÆÇÈÉÊ&\n\207",
stack_depth=11, constants_data=0x83185c0) at bytecode.c:823
#29 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=2, args=0xbfffe708)
at eval.c:3450
#30 0x080cf7ba in Ffuncall (nargs=3, args=0xbfffe704) at eval.c:3879
#31 0x08098330 in execute_optimized_program (
program=0x8643d20 "\t\030Ä
\033Å\032\v:«\017\v@\022Æ\nÇ\"\210\vA\211\023ªð*ÈÉ!«\004Ê \210ÈË!«\004Ì \210ÈÍ!«\004Î
\210ÏÐÇ\"¬\006ÑÐÇ\"\210ÏÒÇ\"¬\006ÓÒÇ\"\210ÏÔÇ\"¬\025ÕÔÇ\"\210ÏÔÇ\"¬\nÖÐÔ\"\210ÓÔ!\210×ÐÔ\t#\tÖÒÔ\"\210ÑÔ!)\207",
stack_depth=4, constants_data=0x8312410)
at bytecode.c:823
#32 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=1, args=0xbfffe968)
at eval.c:3450
#33 0x080cf7ba in Ffuncall (nargs=2, args=0xbfffe964) at eval.c:3879
#34 0x080cba6e in Fcall_with_condition_handler (nargs=3, args=0xbfffe960) at eval.c:2094
#35 0x080b45ab in call_critical_lisp_code (d=0x862a880, function={...}, object={...})
at device.c:1372
#36 0x08100453 in init_global_faces (d=0x862a880) at faces.c:887
#37 0x080b1013 in init_global_resources (d=0x862a880) at device.c:396
#38 0x080b1922 in Fmake_device (type={...}, connection={...}, props={...}) at
device.c:683
#39 0x080cf523 in Ffuncall (nargs=3, args=0xbfffeb34) at eval.c:3840
#40 0x08098330 in execute_optimized_program (program=0x862a3e0
"ÁÂ\b\"\207",
---Type <return> to continue, or q <return> to quit---
stack_depth=3, constants_data=0x8315490) at bytecode.c:823
#41 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=1, args=0xbfffed48)
at eval.c:3450
#42 0x080cf7ba in Ffuncall (nargs=2, args=0xbfffed44) at eval.c:3879
#43 0x08098330 in execute_optimized_program (
program=0x862a378 "\f?'Å \210ÆÇ!«\004È
\210\b@\vB\022ÉÁ!«\b\t¬\005ÊË!\021ÌÍ!\210\nA\023Î\211\024\207", stack_depth=2,
constants_data=0x83154ac) at bytecode.c:823
#44 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=0, args=0xbfffef58)
at eval.c:3450
#45 0x080cf7ba in Ffuncall (nargs=1, args=0xbfffef54) at eval.c:3879
#46 0x08098330 in execute_optimized_program (
program=0x85c8850 "\vA\035ÆÇ\032\031È\r!\025\bÉa«\004Ê \210ËÌ!«\004Í
\210ËÌ!«\017ËÎ!«\aÏÐ!\210ª\004Ñ \210\f«\017\016%¬\vÒÓÔ\f!ÕQ! \210Ö \210*× \210ËØ!«\004Ù
\210ËÚ!«\004Û \210Ü \210rÝÞ!q\210ß \210àá!\210\016)âa«\005\016* \210)ã äa«\bå ¬\004æ \210ç
\210á\026+å \004èÇ!)\207", stack_depth=4, constants_data=0x8329204) at
bytecode.c:823
#47 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=0, args=0xbffff0d0)
at eval.c:3450
#48 0x080ce954 in Feval (form={...}) at eval.c:3661
#49 0x080cb3a8 in condition_case_1 (handlers={...}, bfun=0x80cdbb2 <Feval>,
barg={...},
hfun=0x80cb4c9 <run_condition_case_handlers>, harg={...}) at eval.c:1917
#50 0x080cb8ca in condition_case_3 (bodyform={...}, var={...}, handlers={...})
at eval.c:1999
#51 0x0809977e in execute_rare_opcode (stack_ptr=0xbffff414,
unused_program_ptr=0x85ba4f0 "\210Ð\r!\025\t«\rÝÞß\tà á
$!\026*âã!\210\b«\005âÀ!\210Õ\020ä
\210\016%«\005âå!\210Õ\026%\v«\bæ\v@\vA\"\210)\016+\003ç \207",
opcode=Bcondition_case)
at bytecode.c:1399
---Type <return> to continue, or q <return> to quit---
#52 0x08098029 in execute_optimized_program (
program=0x85ba490 "\n«\005ÆÇ!\207È\022ÉÊ!«\tËÌÉÊ!!!\210Í
\211\034«\025\fG\rGW«\016Î\r!Î\f!k«\005Ï\f!\025)Ð\r!\025Ñ \210Ò
\210Ó\016(«\004Ȫ\006\016)\002ÔÕ\"\210Ö \210× \210Õ\033Ø «\006Ù
\210ª\006ÚÛÜ\217\210Ð\r!\025\t«\rÝÞß\tà á $!\026*âã!\210\b«\005âÀ!\210Õ\020ä
\210\016%«\005âå!\210Õ\026%\v«\bæ\v@\vA\"\210)\016+\003ç \207", stack_depth=7,
constants_data=0x8329a5c) at bytecode.c:715
#53 0x080cf0eb in funcall_compiled_function (fun={...}, nargs=0, args=0xbffff590)
at eval.c:3450
#54 0x080ce954 in Feval (form={...}) at eval.c:3661
#55 0x080cb3a8 in condition_case_1 (handlers={...}, bfun=0x80cdbb2 <Feval>,
barg={...},
hfun=0x80a3e5f <cmd_error>, harg={...}) at eval.c:1917
#56 0x080a3f06 in top_level_1 (unused_dummy={...}) at cmdloop.c:223
#57 0x080cae70 in internal_catch (tag={...}, func=0x80a3eca <top_level_1>,
arg={...},
threw=0x0, thrown_tag=0x0) at eval.c:1526
#58 0x080a4010 in initial_command_loop (load_me={...}) at cmdloop.c:293
#59 0x080c509c in xemacs_21_5_b18_i686_pc_linux (argc=3, argv=0xbffffa94,
unused_envp=0x0,
restart=0) at emacs.c:2568
#60 0x080c59d0 in main (argc=3, argv=0xbffffa94, unused_envp=0xbffffaa4) at emacs.c:3008
(gdb)