I have a similar enough to make me think it's the same bug, but not
quite identical, problem. In my case also the default font is shown as
blocks. I get the warnings

Warning: Cannot convert string 
"-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
Warning: Cannot convert string 
"-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct

when starting emacs. The problem appeared after upgrading X.org 6.9 to
7.0. In all other applications fonts work nicely, so I guess it
shouldn't be a font path issue or anything like that.

Similar to the original report choosing Options->Mule->Set
Font/Fontset causes a segmentation fault.

emacs-snapshot also shows boxes with the default fonts, but it does
not crash when I choose Set Font/Fontset.

I took the time to tweak the emacs21 package to compile with no
optimizations and debug info (and no stripping; of course it would
have been nice if it honored the DEB_BUILD_OPTIONS flags :) and
obtained a backtrace (attached) of the crash.

If you think it would be helpful, I can also send a `bt full'
backtrace (with all values of variables). Or if there's anything else
I can do to produce useful debug information, just ask.

        Sami


Program received signal SIGSEGV, Segmentation fault.
0x000000000049d702 in x_set_cursor_gc (s=0x7fffff9478b0) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:2692
2692          xgcv.font = s->font->fid;
(gdb) bt
#0  0x000000000049d702 in x_set_cursor_gc (s=0x7fffff9478b0) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:2692
#1  0x00000000004a382b in x_set_glyph_string_gc (s=0x7fffff9478b0) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:2795
#2  0x00000000004a2fcd in x_draw_glyph_string (s=0x7fffff9478b0) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:4467
#3  0x00000000004a873b in x_draw_glyphs (w=0xc4d640, x=295, row=0xdb4280, 
area=TEXT_AREA, start=0, end=1, hl=DRAW_CURSOR, overlaps_p=0)
    at /home/sliedes/t/emacs21-21.4a/src/xterm.c:5224
#4  0x00000000004b8739 in x_draw_phys_cursor_glyph (w=0xc4d640, row=0xdb4280, 
hl=DRAW_CURSOR)
    at /home/sliedes/t/emacs21-21.4a/src/xterm.c:11297
#5  0x00000000004b9623 in x_display_and_set_cursor (w=0xc4d640, on=1, hpos=0, 
vpos=0, x=0, y=0)
    at /home/sliedes/t/emacs21-21.4a/src/xterm.c:11569
#6  0x00000000004b98b7 in x_update_window_cursor (w=0xc4d640, on=1) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:11660
#7  0x00000000004ad480 in expose_window (w=0xc4d640, fr=0x7fffff948310) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:6159
#8  0x00000000004ac829 in expose_window_tree (w=0xc4d640, r=0x7fffff948310) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:5934
#9  0x00000000004ac67c in expose_frame (f=0xb858a0, x=98, y=0, w=479, h=234) at 
/home/sliedes/t/emacs21-21.4a/src/xterm.c:5877
#10 0x00000000004b5477 in XTread_socket (sd=-7046992, bufp=0x7fffff949a70, 
numchars=4096, expected=1)
    at /home/sliedes/t/emacs21-21.4a/src/xterm.c:10243
#11 0x00000000004f2166 in read_avail_input (expected=1) at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:6169
#12 0x00000000004f2492 in input_available_signal (signo=29) at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:6327
#13 <signal handler called>
#14 0x0000000000550882 in re_match_2_internal (bufp=0x8b1708, string1=0x0, 
size1=0,
    string2=0x8c1240 "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default", size2=40, 
pos=0, regs=0x0, stop=40)
    at /home/sliedes/t/emacs21-21.4a/src/regex.c:4709
#15 0x000000000054f219 in re_search_2 (bufp=0x8b1708, str1=0x0, size1=0, 
str2=0x8c1240 "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default", size2=40,
    startpos=0, range=40, regs=0x0, stop=40) at 
/home/sliedes/t/emacs21-21.4a/src/regex.c:4000
#16 0x000000000054e56d in re_search (bufp=0x8b1708, string=0x8c1240 
"-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default", size=40, startpos=0, range=40,
    regs=0x0) at /home/sliedes/t/emacs21-21.4a/src/regex.c:3805
#17 0x000000000053ba65 in fast_c_string_match_ignore_case 
(regexp=3458764513830111256,
    string=0x8c1240 "-*-*-*-*-*-*-*-*-*-*-*-*-fontset-default") at 
/home/sliedes/t/emacs21-21.4a/src/search.c:491
#18 0x00000000004e18f5 in fs_query_fontset (name=3458764513830111256, 
regexpp=1) at /home/sliedes/t/emacs21-21.4a/src/fontset.c:796
#19 0x00000000004e19e0 in Fquery_fontset (pattern=3458764513830088776, 
regexpp=1152921504615990296)
    at /home/sliedes/t/emacs21-21.4a/src/fontset.c:824
#20 0x000000000057b7f6 in Ffuncall (nargs=2, args=0x7fffff9945b0) at 
/home/sliedes/t/emacs21-21.4a/src/eval.c:2662
#21 0x00000000005c2472 in Fbyte_code (bytestr=3458764513832581720, 
vector=4611686018439431216, maxdepth=8)
    at /home/sliedes/t/emacs21-21.4a/src/bytecode.c:716
#22 0x000000000057c279 in funcall_lambda (fun=4611686018439431616, nargs=1, 
arg_vector=0x7fffff994a38)
    at /home/sliedes/t/emacs21-21.4a/src/eval.c:2851
#23 0x000000000057bab2 in Ffuncall (nargs=2, args=0x7fffff994a30) at 
/home/sliedes/t/emacs21-21.4a/src/eval.c:2707
#24 0x00000000005c2472 in Fbyte_code (bytestr=3458764513832581528, 
vector=4611686018439503824, maxdepth=4)
    at /home/sliedes/t/emacs21-21.4a/src/bytecode.c:716
#25 0x000000000057c279 in funcall_lambda (fun=4611686018439503984, nargs=0, 
arg_vector=0x7fffff994eb8)
    at /home/sliedes/t/emacs21-21.4a/src/eval.c:2851
#26 0x000000000057bab2 in Ffuncall (nargs=1, args=0x7fffff994eb0) at 
/home/sliedes/t/emacs21-21.4a/src/eval.c:2707
#27 0x00000000005c2472 in Fbyte_code (bytestr=3458764513829331120, 
vector=4611686018436178160, maxdepth=5)
    at /home/sliedes/t/emacs21-21.4a/src/bytecode.c:716
#28 0x000000000057a21b in Feval (form=5764607523043025040) at 
/home/sliedes/t/emacs21-21.4a/src/eval.c:2019
#29 0x0000000000574561 in Fcall_interactively (function=1152921504616858056, 
record_flag=1152921504615990296, keys=4611686018436617824)
    at /home/sliedes/t/emacs21-21.4a/src/callint.c:310
#30 0x00000000004f9869 in Fcommand_execute (cmd=1152921504616858056, 
record_flag=1152921504615990296, keys=1152921504615990296,
    special=1152921504615990296) at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:9262
#31 0x00000000004e905f in command_loop_1 () at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:1661
#32 0x00000000005786eb in internal_condition_case (bfun=0x4e7a92 
<command_loop_1>, handlers=1152921504616152696, hfun=0x4e75ac <cmd_error>)
    at /home/sliedes/t/emacs21-21.4a/src/eval.c:1267
#33 0x00000000004e7950 in command_loop_2 () at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:1245
#34 0x0000000000578108 in internal_catch (tag=1152921504616144440, 
func=0x4e7936 <command_loop_2>, arg=1152921504615990296)
    at /home/sliedes/t/emacs21-21.4a/src/eval.c:1030
#35 0x00000000004e790a in command_loop () at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:1224
#36 0x00000000004e72bf in recursive_edit_1 () at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:950
#37 0x00000000004e7423 in Frecursive_edit () at 
/home/sliedes/t/emacs21-21.4a/src/keyboard.c:1006
#38 0x00000000004e5b2c in main (argc=1, argv=0x7fffff9961a8, 
envp=0x7fffff9961b8) at /home/sliedes/t/emacs21-21.4a/src/emacs.c:1547

Attachment: signature.asc
Description: Digital signature

Reply via email to