* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
@ 2012-06-29 2:25 Left Right
2012-06-29 6:33 ` Eli Zaretskii
0 siblings, 1 reply; 13+ messages in thread
From: Left Right @ 2012-06-29 2:25 UTC (permalink / raw)
To: 11813
Hello,
I've built 24.1 release and the latest version from git repository.
Both exhibit same behavior:
wvxvw@wvxvw-desktop:~/projects/emacs-sources/emacs/src$ gdb ./emacs
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/wvxvw/projects/emacs-sources/emacs/src/emacs...done.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not
from terminal]
DISPLAY = :0.0
TERM = xterm
Breakpoint 1 at 0x4e1e40: file emacs.c, line 390.
Temporary breakpoint 2 at 0x500050: file sysdep.c, line 843.
(gdb) run -q
Starting program: /home/wvxvw/projects/emacs-sources/emacs/src/emacs -q
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
x_draw_glyph_string_background (s=0x7fffffffcb60, force_p=1) at xterm.c:1210
1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
(gdb) c
Continuing.
Fatal error (11)
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff548a497 in kill () from /lib/libc.so.6
(gdb) q
Things that might need clarification:
- I try to avoid AA fonts everywhere I can, so, every possible font
rendering setting I found is set so it shouldn't use AA. This is KDE
on Debian squeeze 64 bit. The default font used everywhere is Arial.
What I see when Emacs starts (and stops on the fault) - the display
area isn't fully initialized, the screen and the scrollbars aren't
drawn completely (scrollbars show blanks). The mouse pointer changes
shape to a bitmap image of an arrow (similar to the one used on Macs,
i.e. black arrow with white contour) while hovering over the menu
strip. The mouse pointer disappears when hovering over the text area.
The menu in Emacs doesn't use the system default font at the time it
crashes (it uses something that looks like narrow-ish Helvetica, but
cannot tell for sure, but it uses some sort of vector rendering, it's
not a bitmap font.)
I'll happily provide any additional info.
Best.
Oleg
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-06-29 2:25 bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background Left Right
@ 2012-06-29 6:33 ` Eli Zaretskii
[not found] ` <CAJQBtgkvLqF2bXfegG2bM9sBHsMEahSy69DTyPpNeJrsOgdV4g@mail.gmail.com>
0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2012-06-29 6:33 UTC (permalink / raw)
To: Left Right; +Cc: 11813
> Date: Fri, 29 Jun 2012 05:25:26 +0300
> From: Left Right <olegsivokon@gmail.com>
>
> Program received signal SIGSEGV, Segmentation fault.
> x_draw_glyph_string_background (s=0x7fffffffcb60, force_p=1) at xterm.c:1210
> 1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
Is the reason for SIGSEGV that s->font is a NULL pointer? If not,
what is the reason?
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
[not found] ` <CAJQBtgkvLqF2bXfegG2bM9sBHsMEahSy69DTyPpNeJrsOgdV4g@mail.gmail.com>
@ 2012-06-29 9:02 ` Eli Zaretskii
[not found] ` <CAJQBtgmajJx3f2EfJCLCP-vWJpHMc+SinyAEjOKhQiRyt7pGGg@mail.gmail.com>
0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2012-06-29 9:02 UTC (permalink / raw)
To: Left Right; +Cc: 11813
[Please keep the bug address on the CC list, so that this discussion
is archived with the bug report.]
> Date: Fri, 29 Jun 2012 10:22:20 +0300
> From: Left Right <olegsivokon@gmail.com>
>
> Program received signal SIGSEGV, Segmentation fault.
> x_draw_glyph_string_background (s=0x7fffffffcb60, force_p=1) at xterm.c:1210
> 1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
> (gdb) print s->font
> $1 = (struct font *) 0x0
> (gdb) print s->height
> $2 = 25
> (gdb) print box_line_width
> $3 = 0
> (gdb) print *s->font
> Cannot access memory at address 0x0
> (gdb) print s
> $4 = (struct glyph_string *) 0x7fffffffcb60
> (gdb) print *s
> $5 = {
> x = 82,
> y = 631,
> ybase = 649,
> width = 288,
> background_width = 288,
> height = 25,
> left_overhang = 0,
> right_overhang = 0,
> f = 0x1147010,
> w = 0x1148020,
> display = 0x12f5b70,
> window = 46137470,
> row = 0xbccc50,
> area = TEXT_AREA,
> char2b = 0x0,
> nchars = 12,
> hl = DRAW_NORMAL_TEXT,
> face = 0x1312850,
> font = 0x0,
> cmp = 0x0,
> cmp_id = 0,
> cmp_from = 0,
> cmp_to = 0,
> extends_to_end_of_line_p = 0,
> background_filled_p = 0,
> two_byte_p = 0,
> font_not_found_p = 0,
> stippled_p = 0,
> for_overlaps = 0,
> padding_p = 0,
> gc = 0x12e1660,
> first_glyph = 0xbf60b0,
> img = 0x0,
> slice = {
> x = 0,
> y = 0,
> width = 0,
> height = 0
> },
> clip_head = 0x0,
> clip_tail = 0x0,
> clip = {{
> x = 1,
> y = 631,
> width = 840,
> height = 25
> }, {
> x = 0,
> y = 0,
> width = 0,
> height = 0
> }},
> num_clips = 1,
> underline_position = 0,
> underline_thickness = 0,
> next = 0x7fffffffca60,
> prev = 0x7fffffffcd00
> }
>
> Hi, yes, it looks like it. Sorry, I'm neither very familiar with the
> code nor with gdb. The above is what I could get, but if it's not
> enough, please tell where to look.
Please type "bt full" at the GDB prompt when Emacs crashes, and post
here the results. (If you type "set logging on" before that, GDB will
output everything to a file named gdb.txt in the directory where you
run it, so you won't need to copy from the screen.)
Also, if you built Emacs with optimizations, please reconfigure and
rebuild like this:
CFLAGS='-O0 -ggdb -g3' ./configure --enable-checking --enable-asserts ...
make
(where "..." stands for any other options you use with configure).
This is because backtraces from optimized builds are deceptive and
make debugging hard. If you do make a new build without
optimizations, please make sure it crashes like the optimized one.
Thanks.
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Fwd: bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
[not found] ` <CAJQBtgmajJx3f2EfJCLCP-vWJpHMc+SinyAEjOKhQiRyt7pGGg@mail.gmail.com>
@ 2012-06-29 9:40 ` Left Right
2012-06-29 9:51 ` Eli Zaretskii
1 sibling, 0 replies; 13+ messages in thread
From: Left Right @ 2012-06-29 9:40 UTC (permalink / raw)
To: 11813
[-- Attachment #1: Type: text/plain, Size: 14612 bytes --]
Sorry, I replied to Eli Zaretskii forgetting to CC the list.
---------- Forwarded message ----------
From: Left Right <olegsivokon@gmail.com>
Date: Fri, Jun 29, 2012 at 12:30 PM
Subject: Re: bug#11813: Segmentation fault on launch related to
x_draw_glyph_string_background
To: Eli Zaretskii <eliz@gnu.org>
I've reset the flags to no optimization and recompiled, and I see the
same error. Below is the full log, I'll paste it here in case the list
doesn't accept attachments, sorry if it will come out crooked.
Starting program: /home/wvxvw/projects/emacs-sources/emacs/src/emacs -q
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000000056c02e in x_draw_glyph_string_background
(s=0x7fffffffba40, force_p=1) at xterm.c:1210
1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
#0 0x000000000056c02e in x_draw_glyph_string_background
(s=0x7fffffffba40, force_p=1) at xterm.c:1210
box_line_width = 0
#1 0x0000000000571508 in x_draw_glyph_string (s=0x7fffffffba40) at xterm.c:2814
relief_drawn_p = 0
#2 0x0000000000493044 in draw_glyphs (w=0x146bdc0, x=850,
row=0x16748e0, area=TEXT_AREA, start=0, end=68, hl=DRAW_NORMAL_TEXT,
overlaps=0) at xdisp.c:23404
head = 0x7fffffffbbe0
tail = 0x7fffffffb940
s = 0x7fffffffba40
clip_head = 0x0
clip_tail = 0x0
i = 68
j = 32
x_reached = 850
last_x = 841
area_left = 1
f = 0x146adb0
#3 0x000000000049a056 in x_write_glyphs (start=0xf20600, len=68) at
xdisp.c:25046
x = 0
hpos = 0
chpos = 0
#4 0x0000000000415c2c in update_text_area (w=0x146bdc0, vpos=37) at
dispnew.c:3773
current_row = 0xf23b90
desired_row = 0x16748e0
rif = 0xab19c0
changed_p = 0
#5 0x000000000041676d in update_window_line (w=0x146bdc0, vpos=37,
mouse_face_overwritten_p=0x7fffffffc16c) at dispnew.c:4014
current_row = 0xf23b90
desired_row = 0x16748e0
rif = 0xab19c0
changed_p = 0
#6 0x000000000041563e in update_window (w=0x146bdc0, force_p=1) at
dispnew.c:3575
end = 0x16748e0
mode_line_row = 0x16748e0
header_line_row = 0x0
changed_p = 0
mouse_face_overwritten_p = 0
row = 0x16723e0
yb = 612
n_updated = 0
desired_matrix = 0x11d6bb0
paused_p = 15208032
preempt_count = 9
rif = 0xab19c0
#7 0x0000000000414cbc in update_window_tree (w=0x146bdc0, force_p=1)
at dispnew.c:3340
paused_p = 0
#8 0x00000000004149a8 in update_frame (f=0x146adb0, force_p=1,
inhibit_hairy_id_p=1) at dispnew.c:3269
paused_p = 0
root_window = 0x146bdc0
#9 0x000000000045f36f in echo_area_display (update_frame_p=1) at xdisp.c:10752
n = 1
mini_window = 21417429
w = 0x146cdd0
f = 0x146adb0
window_height_changed_p = 0
sf = 0x146adb0
#10 0x000000000045ad75 in message3_nolog (m=23714017, nbytes=65,
multibyte=0) at xdisp.c:9628
mini_window = 21417429
frame = 21409205
f = 0x146adb0
sf = 0x146adb0
#11 0x000000000045a8cc in message3 (m=23714017, nbytes=65,
multibyte=0) at xdisp.c:9565
gcpro1 = {
next = 0x7fffffffc430,
var = 0x6a9c9b,
nvars = 0
}
#12 0x0000000000699686 in Fmessage (nargs=2, args=0x7fffffffc4f0) at
editfns.c:3436
val = 23714017
#13 0x00000000006a8de7 in Ffuncall (nargs=3, args=0x7fffffffc4e8) at eval.c:2802
fun = 14492773
original_fun = 15278610
funcar = 15361794
numargs = 2
lisp_numargs = 6827520
val = 11994129
backtrace = {
next = 0x7fffffffc940,
function = 0x7fffffffc4e8,
args = 0x7fffffffc4f0,
nargs = 2,
debug_on_exit = 0
}
internal_args = 0x7fffffffc9d8
i = 15279986
#14 0x0000000000718bbc in exec_byte_code (bytestr=11994369,
vector=11994557, maxdepth=24, args_template=0, nargs=0,
args=0x7fffffffc9d8) at bytecode.c:784
count = 4
op = 2
vectorp = 0xb705c8
stack = {
pc = 0xd9cad0 ")\207",
byte_string = 11994369,
byte_string_start = 0xd9ca97 "\305\030\t\206\071",
constants = 11994557,
next = 0x7fffffffcac0
}
top = 0x7fffffffc4e8
result = 15527856
#15 0x00000000006a9c9b in funcall_lambda (fun=11994317, nargs=0,
arg_vector=0x7fffffffc9d8) at eval.c:2986
val = 8589921008
syms_left = 0
next = 19143602
lexenv = 412
count = 4
i = 2
optional = -13792
rest = 32767
#16 0x00000000006a9529 in Ffuncall (nargs=1, args=0x7fffffffc9d0) at eval.c:2869
fun = 11994317
original_fun = 19439986
funcar = 100000000
numargs = 0
lisp_numargs = 23522358
val = 140737488347888
backtrace = {
next = 0x7fffffffcea0,
function = 0x7fffffffc9d0,
args = 0x7fffffffc9d8,
nargs = 0,
debug_on_exit = 0
}
internal_args = 0x7fffffffcf30
i = 0
#17 0x0000000000718bbc in exec_byte_code (bytestr=11996273,
vector=11997101, maxdepth=88, args_template=1028, nargs=1,
args=0x7fffffffcf38) at bytecode.c:784
count = 4
op = 0
vectorp = 0xb70fb8
stack = {
pc = 0xd9c51a "\210\b\203\021",
byte_string = 11996273,
byte_string_start = 0xd9c518 "\306 \210\b\203\021",
constants = 11997101,
next = 0x7fffffffd000
}
top = 0x7fffffffc9d0
result = 140737488341568
#18 0x00000000006a9c9b in funcall_lambda (fun=11996221, nargs=1,
arg_vector=0x7fffffffcf30) at eval.c:2986
val = 4310088018
syms_left = 1028
next = 15147520
lexenv = 14970704
count = 4
i = 140737488345264
optional = 22
rest = 0
#19 0x00000000006a9529 in Ffuncall (nargs=2, args=0x7fffffffcf28) at eval.c:2869
fun = 11996221
original_fun = 19437266
funcar = 15147520
numargs = 1
lisp_numargs = 6827520
val = 19597478
backtrace = {
next = 0x7fffffffd3e0,
function = 0x7fffffffcf28,
args = 0x7fffffffcf30,
nargs = 1,
debug_on_exit = 0
}
internal_args = 0x12b0896
i = 15279746
#20 0x0000000000718bbc in exec_byte_code (bytestr=11955625,
vector=11957277, maxdepth=72, args_template=0, nargs=0,
args=0x7fffffffd478) at bytecode.c:784
count = 4
op = 1
vectorp = 0xb67428
stack = {
pc = 0xd9f3d7 "\210\016H\203\214\005\201\300",
byte_string = 11955625,
byte_string_start = 0xd9ee57 "\306
\020\307\021\n\023\307\024\310\311!\211\307=\204\060",
constants = 11957277,
next = 0x7fffffffd4f0
}
top = 0x7fffffffcf28
result = 23097713
#21 0x00000000006a9c9b in funcall_lambda (fun=11955573, nargs=0,
arg_vector=0x7fffffffd478) at eval.c:2986
val = 140737488345264
syms_left = 0
next = 140737488343984
lexenv = 6786392
count = 4
i = 5
optional = -11112
rest = 32767
#22 0x00000000006a9529 in Ffuncall (nargs=1, args=0x7fffffffd470) at eval.c:2869
fun = 11955573
original_fun = 19238802
funcar = 15147520
numargs = 0
lisp_numargs = 6827520
val = 15120722
backtrace = {
next = 0x7fffffffda40,
function = 0x7fffffffd470,
args = 0x7fffffffd478,
nargs = 0,
debug_on_exit = 0
}
internal_args = 0x1607171
i = 22203478
#23 0x0000000000718bbc in exec_byte_code (bytestr=11951433,
vector=11951885, maxdepth=32, args_template=0, nargs=0,
args=0x7fffffffd8b0) at bytecode.c:784
count = 3
op = 0
vectorp = 0xb65f18
stack = {
pc = 0xd9f934
"\210)\210\351\352\353\"\210\354\321\355\"\211;\203\256",
byte_string = 11951433,
byte_string_start = 0xd9f89f "\b\203\b",
constants = 11951885,
next = 0x0
}
top = 0x7fffffffd470
result = 140737308851520
#24 0x00000000006a9c9b in funcall_lambda (fun=11951381, nargs=0,
arg_vector=0x7fffffffd8b0) at eval.c:2986
val = 140737353973760
syms_left = 0
next = 140737308427896
lexenv = 140737293415912
count = 3
i = 4294969316
optional = 33
rest = 0
#25 0x00000000006a98c5 in apply_lambda (fun=11951381, args=15120722)
at eval.c:2929
args_left = 15120722
i = 0
numargs = 0
arg_vector = 0x7fffffffd8b0
gcpro1 = {
next = 0x0,
var = 0x15f0778,
nvars = 0
}
gcpro2 = {
next = 0x100000000,
var = 0xffffffff,
nvars = 140737488345680
}
gcpro3 = {
next = 0x7fff00000001,
var = 0x0,
nvars = 140733193388033
}
tem = 2
sa_count = 3
sa_must_free = 0
#26 0x00000000006a7120 in eval_sub (form=15346758) at eval.c:2212
fun = 11951381
val = 140737353973760
original_fun = 19139458
original_args = 15120722
funcar = 15120722
backtrace = {
next = 0x0,
function = 0x7fffffffda70,
args = 0x7fffffffd8b0,
nargs = 0,
debug_on_exit = 0
}
gcpro1 = {
next = 0x7fffffffdaa0,
var = 0x683a75,
nvars = 2822930839
}
gcpro2 = {
next = 0x7ffff7fd66e0,
var = 0x7fffffffda90,
nvars = 276967387
}
gcpro3 = {
next = 0x7ffff4617000,
var = 0x7fffffffda70,
nvars = 1
}
#27 0x00000000006a6270 in Feval (form=15346758, lexical=15120722) at eval.c:2021
count = 2
#28 0x00000000005cc3bf in top_level_2 () at keyboard.c:1164
No locals.
#29 0x00000000006a446d in internal_condition_case (bfun=0x5cc3a2
<top_level_2>, handlers=15172450, hfun=0x5cbea5 <cmd_error>) at
eval.c:1333
val = 6079425
c = {
tag = 15120722,
val = 15120722,
next = 0x7fffffffdd00,
gcpro = 0x0,
jmp = {{
__jmpbuf = {2, -5741430973350281040, 4243568,
140737488347888, 0, 0, -5741430973453041488, 5741431852756107440},
__mask_was_saved = 0,
__saved_mask = {
__val = {4294967295, 0, 1, 11191568, 0, 0, 0, 0,
140737351960338, 1, 0, 1, 140737308399024, 1, 2, 140737488346656}
}
}},
backlist = 0x0,
handlerlist = 0x0,
lisp_eval_depth = 0,
pdlcount = 2,
poll_suppress_count = 1,
interrupt_input_blocked = 0,
byte_stack = 0x0
}
h = {
handler = 15172450,
var = 15120722,
chosen_clause = 140737488346080,
tag = 0x7fffffffdb90,
next = 0x0
}
#30 0x00000000005cc3f9 in top_level_1 (ignore=15120722) at keyboard.c:1172
No locals.
#31 0x00000000006a3cfd in internal_catch (tag=15168242, func=0x5cc3c1
<top_level_1>, arg=15120722) at eval.c:1090
c = {
tag = 15168242,
val = 15120722,
next = 0x0,
gcpro = 0x0,
jmp = {{
__jmpbuf = {2, -5741430973297852240, 4243568,
140737488347888, 0, 0, -5741430973339795280, 5741431850440851632},
__mask_was_saved = 0,
__saved_mask = {
__val = {15120722, 140737488346608, 6830709, 0,
4302523939, 140737311891096, 15120722, 15340368, 140737488346712, 14,
15147520, 14523360, 6827487, 140737488346672,
15120722, 4243568}
}
}},
backlist = 0x0,
handlerlist = 0x0,
lisp_eval_depth = 0,
pdlcount = 2,
poll_suppress_count = 1,
interrupt_input_blocked = 0,
byte_stack = 0x0
}
#32 0x00000000005cc31d in command_loop () at keyboard.c:1127
No locals.
#33 0x00000000005cb6f1 in recursive_edit_1 () at keyboard.c:754
count = 1
val = 6077156
#34 0x00000000005cbacc in Frecursive_edit () at keyboard.c:818
count = 0
buffer = 15120722
#35 0x00000000005c927c in main (argc=2, argv=0x7fffffffe2f8) at emacs.c:1693
dummy = 140737354131128
stack_bottom_variable = 0 '\000'
do_initial_setlocale = 1
skip_args = 0
rlim = {
rlim_cur = 8720000,
rlim_max = 18446744073709551615
}
no_loadup = 0
junk = 0x0
dname_arg = 0x0
ch_to_dir = 0x3d8f538 <Address 0x3d8f538 out of bounds>
Lisp Backtrace:
"message" (0xffffc4f0)
"display-startup-echo-area-message" (0xffffc9d8)
"command-line-1" (0xffffcf30)
"command-line" (0xffffd478)
"normal-top-level" (0xffffd8b0)
$1 = {
x = 82,
y = 631,
ybase = 649,
width = 288,
background_width = 288,
height = 25,
left_overhang = 0,
right_overhang = 0,
f = 0x146adb0,
w = 0x146bdc0,
display = 0x161a6b0,
window = 52428926,
row = 0x16748e0,
area = TEXT_AREA,
char2b = 0x0,
nchars = 12,
hl = DRAW_NORMAL_TEXT,
face = 0x16549c0,
font = 0x0,
cmp = 0x0,
cmp_id = 0,
cmp_from = 0,
cmp_to = 0,
extends_to_end_of_line_p = 0,
background_filled_p = 0,
two_byte_p = 0,
font_not_found_p = 0,
stippled_p = 0,
for_overlaps = 0,
padding_p = 0,
gc = 0xf64360,
first_glyph = 0xf20780,
img = 0x0,
slice = {
x = 0,
y = 0,
width = 0,
height = 0
},
clip_head = 0x0,
clip_tail = 0x0,
clip = {{
x = 1,
y = 631,
width = 840,
height = 25
}, {
x = 0,
y = 0,
width = 0,
height = 0
}},
num_clips = 1,
underline_position = 0,
underline_thickness = 0,
next = 0x7fffffffb940,
prev = 0x7fffffffbbe0
}
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff548a497 in kill () from /lib/libc.so.6
A debugging session is active.
Inferior 1 [process 27265] will be killed.
Quit anyway? (y or n)
As an aside, I also tried to compile it with no XFT support, with the
same result. When configuring for this compilation I didn't add any
more options, just the --enable-checking --enable-asserts.
Best.
Oleg
[-- Attachment #2: gdb.txt --]
[-- Type: text/plain, Size: 13889 bytes --]
Starting program: /home/wvxvw/projects/emacs-sources/emacs/src/emacs -q
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000000056c02e in x_draw_glyph_string_background (s=0x7fffffffba40, force_p=1) at xterm.c:1210
1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
#0 0x000000000056c02e in x_draw_glyph_string_background (s=0x7fffffffba40, force_p=1) at xterm.c:1210
box_line_width = 0
#1 0x0000000000571508 in x_draw_glyph_string (s=0x7fffffffba40) at xterm.c:2814
relief_drawn_p = 0
#2 0x0000000000493044 in draw_glyphs (w=0x146bdc0, x=850, row=0x16748e0, area=TEXT_AREA, start=0, end=68, hl=DRAW_NORMAL_TEXT, overlaps=0) at xdisp.c:23404
head = 0x7fffffffbbe0
tail = 0x7fffffffb940
s = 0x7fffffffba40
clip_head = 0x0
clip_tail = 0x0
i = 68
j = 32
x_reached = 850
last_x = 841
area_left = 1
f = 0x146adb0
#3 0x000000000049a056 in x_write_glyphs (start=0xf20600, len=68) at xdisp.c:25046
x = 0
hpos = 0
chpos = 0
#4 0x0000000000415c2c in update_text_area (w=0x146bdc0, vpos=37) at dispnew.c:3773
current_row = 0xf23b90
desired_row = 0x16748e0
rif = 0xab19c0
changed_p = 0
#5 0x000000000041676d in update_window_line (w=0x146bdc0, vpos=37, mouse_face_overwritten_p=0x7fffffffc16c) at dispnew.c:4014
current_row = 0xf23b90
desired_row = 0x16748e0
rif = 0xab19c0
changed_p = 0
#6 0x000000000041563e in update_window (w=0x146bdc0, force_p=1) at dispnew.c:3575
end = 0x16748e0
mode_line_row = 0x16748e0
header_line_row = 0x0
changed_p = 0
mouse_face_overwritten_p = 0
row = 0x16723e0
yb = 612
n_updated = 0
desired_matrix = 0x11d6bb0
paused_p = 15208032
preempt_count = 9
rif = 0xab19c0
#7 0x0000000000414cbc in update_window_tree (w=0x146bdc0, force_p=1) at dispnew.c:3340
paused_p = 0
#8 0x00000000004149a8 in update_frame (f=0x146adb0, force_p=1, inhibit_hairy_id_p=1) at dispnew.c:3269
paused_p = 0
root_window = 0x146bdc0
#9 0x000000000045f36f in echo_area_display (update_frame_p=1) at xdisp.c:10752
n = 1
mini_window = 21417429
w = 0x146cdd0
f = 0x146adb0
window_height_changed_p = 0
sf = 0x146adb0
#10 0x000000000045ad75 in message3_nolog (m=23714017, nbytes=65, multibyte=0) at xdisp.c:9628
mini_window = 21417429
frame = 21409205
f = 0x146adb0
sf = 0x146adb0
#11 0x000000000045a8cc in message3 (m=23714017, nbytes=65, multibyte=0) at xdisp.c:9565
gcpro1 = {
next = 0x7fffffffc430,
var = 0x6a9c9b,
nvars = 0
}
#12 0x0000000000699686 in Fmessage (nargs=2, args=0x7fffffffc4f0) at editfns.c:3436
val = 23714017
#13 0x00000000006a8de7 in Ffuncall (nargs=3, args=0x7fffffffc4e8) at eval.c:2802
fun = 14492773
original_fun = 15278610
funcar = 15361794
numargs = 2
lisp_numargs = 6827520
val = 11994129
backtrace = {
next = 0x7fffffffc940,
function = 0x7fffffffc4e8,
args = 0x7fffffffc4f0,
nargs = 2,
debug_on_exit = 0
}
internal_args = 0x7fffffffc9d8
i = 15279986
#14 0x0000000000718bbc in exec_byte_code (bytestr=11994369, vector=11994557, maxdepth=24, args_template=0, nargs=0, args=0x7fffffffc9d8) at bytecode.c:784
count = 4
op = 2
vectorp = 0xb705c8
stack = {
pc = 0xd9cad0 ")\207",
byte_string = 11994369,
byte_string_start = 0xd9ca97 "\305\030\t\206\071",
constants = 11994557,
next = 0x7fffffffcac0
}
top = 0x7fffffffc4e8
result = 15527856
#15 0x00000000006a9c9b in funcall_lambda (fun=11994317, nargs=0, arg_vector=0x7fffffffc9d8) at eval.c:2986
val = 8589921008
syms_left = 0
next = 19143602
lexenv = 412
count = 4
i = 2
optional = -13792
rest = 32767
#16 0x00000000006a9529 in Ffuncall (nargs=1, args=0x7fffffffc9d0) at eval.c:2869
fun = 11994317
original_fun = 19439986
funcar = 100000000
numargs = 0
lisp_numargs = 23522358
val = 140737488347888
backtrace = {
next = 0x7fffffffcea0,
function = 0x7fffffffc9d0,
args = 0x7fffffffc9d8,
nargs = 0,
debug_on_exit = 0
}
internal_args = 0x7fffffffcf30
i = 0
#17 0x0000000000718bbc in exec_byte_code (bytestr=11996273, vector=11997101, maxdepth=88, args_template=1028, nargs=1, args=0x7fffffffcf38) at bytecode.c:784
count = 4
op = 0
vectorp = 0xb70fb8
stack = {
pc = 0xd9c51a "\210\b\203\021",
byte_string = 11996273,
byte_string_start = 0xd9c518 "\306 \210\b\203\021",
constants = 11997101,
next = 0x7fffffffd000
}
top = 0x7fffffffc9d0
result = 140737488341568
#18 0x00000000006a9c9b in funcall_lambda (fun=11996221, nargs=1, arg_vector=0x7fffffffcf30) at eval.c:2986
val = 4310088018
syms_left = 1028
next = 15147520
lexenv = 14970704
count = 4
i = 140737488345264
optional = 22
rest = 0
#19 0x00000000006a9529 in Ffuncall (nargs=2, args=0x7fffffffcf28) at eval.c:2869
fun = 11996221
original_fun = 19437266
funcar = 15147520
numargs = 1
lisp_numargs = 6827520
val = 19597478
backtrace = {
next = 0x7fffffffd3e0,
function = 0x7fffffffcf28,
args = 0x7fffffffcf30,
nargs = 1,
debug_on_exit = 0
}
internal_args = 0x12b0896
i = 15279746
#20 0x0000000000718bbc in exec_byte_code (bytestr=11955625, vector=11957277, maxdepth=72, args_template=0, nargs=0, args=0x7fffffffd478) at bytecode.c:784
count = 4
op = 1
vectorp = 0xb67428
stack = {
pc = 0xd9f3d7 "\210\016H\203\214\005\201\300",
byte_string = 11955625,
byte_string_start = 0xd9ee57 "\306 \020\307\021\n\023\307\024\310\311!\211\307=\204\060",
constants = 11957277,
next = 0x7fffffffd4f0
}
top = 0x7fffffffcf28
result = 23097713
#21 0x00000000006a9c9b in funcall_lambda (fun=11955573, nargs=0, arg_vector=0x7fffffffd478) at eval.c:2986
val = 140737488345264
syms_left = 0
next = 140737488343984
lexenv = 6786392
count = 4
i = 5
optional = -11112
rest = 32767
#22 0x00000000006a9529 in Ffuncall (nargs=1, args=0x7fffffffd470) at eval.c:2869
fun = 11955573
original_fun = 19238802
funcar = 15147520
numargs = 0
lisp_numargs = 6827520
val = 15120722
backtrace = {
next = 0x7fffffffda40,
function = 0x7fffffffd470,
args = 0x7fffffffd478,
nargs = 0,
debug_on_exit = 0
}
internal_args = 0x1607171
i = 22203478
#23 0x0000000000718bbc in exec_byte_code (bytestr=11951433, vector=11951885, maxdepth=32, args_template=0, nargs=0, args=0x7fffffffd8b0) at bytecode.c:784
count = 3
op = 0
vectorp = 0xb65f18
stack = {
pc = 0xd9f934 "\210)\210\351\352\353\"\210\354\321\355\"\211;\203\256",
byte_string = 11951433,
byte_string_start = 0xd9f89f "\b\203\b",
constants = 11951885,
next = 0x0
}
top = 0x7fffffffd470
result = 140737308851520
#24 0x00000000006a9c9b in funcall_lambda (fun=11951381, nargs=0, arg_vector=0x7fffffffd8b0) at eval.c:2986
val = 140737353973760
syms_left = 0
next = 140737308427896
lexenv = 140737293415912
count = 3
i = 4294969316
optional = 33
rest = 0
#25 0x00000000006a98c5 in apply_lambda (fun=11951381, args=15120722) at eval.c:2929
args_left = 15120722
i = 0
numargs = 0
arg_vector = 0x7fffffffd8b0
gcpro1 = {
next = 0x0,
var = 0x15f0778,
nvars = 0
}
gcpro2 = {
next = 0x100000000,
var = 0xffffffff,
nvars = 140737488345680
}
gcpro3 = {
next = 0x7fff00000001,
var = 0x0,
nvars = 140733193388033
}
tem = 2
sa_count = 3
sa_must_free = 0
#26 0x00000000006a7120 in eval_sub (form=15346758) at eval.c:2212
fun = 11951381
val = 140737353973760
original_fun = 19139458
original_args = 15120722
funcar = 15120722
backtrace = {
next = 0x0,
function = 0x7fffffffda70,
args = 0x7fffffffd8b0,
nargs = 0,
debug_on_exit = 0
}
gcpro1 = {
next = 0x7fffffffdaa0,
var = 0x683a75,
nvars = 2822930839
}
gcpro2 = {
next = 0x7ffff7fd66e0,
var = 0x7fffffffda90,
nvars = 276967387
}
gcpro3 = {
next = 0x7ffff4617000,
var = 0x7fffffffda70,
nvars = 1
}
#27 0x00000000006a6270 in Feval (form=15346758, lexical=15120722) at eval.c:2021
count = 2
#28 0x00000000005cc3bf in top_level_2 () at keyboard.c:1164
No locals.
#29 0x00000000006a446d in internal_condition_case (bfun=0x5cc3a2 <top_level_2>, handlers=15172450, hfun=0x5cbea5 <cmd_error>) at eval.c:1333
val = 6079425
c = {
tag = 15120722,
val = 15120722,
next = 0x7fffffffdd00,
gcpro = 0x0,
jmp = {{
__jmpbuf = {2, -5741430973350281040, 4243568, 140737488347888, 0, 0, -5741430973453041488, 5741431852756107440},
__mask_was_saved = 0,
__saved_mask = {
__val = {4294967295, 0, 1, 11191568, 0, 0, 0, 0, 140737351960338, 1, 0, 1, 140737308399024, 1, 2, 140737488346656}
}
}},
backlist = 0x0,
handlerlist = 0x0,
lisp_eval_depth = 0,
pdlcount = 2,
poll_suppress_count = 1,
interrupt_input_blocked = 0,
byte_stack = 0x0
}
h = {
handler = 15172450,
var = 15120722,
chosen_clause = 140737488346080,
tag = 0x7fffffffdb90,
next = 0x0
}
#30 0x00000000005cc3f9 in top_level_1 (ignore=15120722) at keyboard.c:1172
No locals.
#31 0x00000000006a3cfd in internal_catch (tag=15168242, func=0x5cc3c1 <top_level_1>, arg=15120722) at eval.c:1090
c = {
tag = 15168242,
val = 15120722,
next = 0x0,
gcpro = 0x0,
jmp = {{
__jmpbuf = {2, -5741430973297852240, 4243568, 140737488347888, 0, 0, -5741430973339795280, 5741431850440851632},
__mask_was_saved = 0,
__saved_mask = {
__val = {15120722, 140737488346608, 6830709, 0, 4302523939, 140737311891096, 15120722, 15340368, 140737488346712, 14, 15147520, 14523360, 6827487, 140737488346672,
15120722, 4243568}
}
}},
backlist = 0x0,
handlerlist = 0x0,
lisp_eval_depth = 0,
pdlcount = 2,
poll_suppress_count = 1,
interrupt_input_blocked = 0,
byte_stack = 0x0
}
#32 0x00000000005cc31d in command_loop () at keyboard.c:1127
No locals.
#33 0x00000000005cb6f1 in recursive_edit_1 () at keyboard.c:754
count = 1
val = 6077156
#34 0x00000000005cbacc in Frecursive_edit () at keyboard.c:818
count = 0
buffer = 15120722
#35 0x00000000005c927c in main (argc=2, argv=0x7fffffffe2f8) at emacs.c:1693
dummy = 140737354131128
stack_bottom_variable = 0 '\000'
do_initial_setlocale = 1
skip_args = 0
rlim = {
rlim_cur = 8720000,
rlim_max = 18446744073709551615
}
no_loadup = 0
junk = 0x0
dname_arg = 0x0
ch_to_dir = 0x3d8f538 <Address 0x3d8f538 out of bounds>
Lisp Backtrace:
"message" (0xffffc4f0)
"display-startup-echo-area-message" (0xffffc9d8)
"command-line-1" (0xffffcf30)
"command-line" (0xffffd478)
"normal-top-level" (0xffffd8b0)
$1 = {
x = 82,
y = 631,
ybase = 649,
width = 288,
background_width = 288,
height = 25,
left_overhang = 0,
right_overhang = 0,
f = 0x146adb0,
w = 0x146bdc0,
display = 0x161a6b0,
window = 52428926,
row = 0x16748e0,
area = TEXT_AREA,
char2b = 0x0,
nchars = 12,
hl = DRAW_NORMAL_TEXT,
face = 0x16549c0,
font = 0x0,
cmp = 0x0,
cmp_id = 0,
cmp_from = 0,
cmp_to = 0,
extends_to_end_of_line_p = 0,
background_filled_p = 0,
two_byte_p = 0,
font_not_found_p = 0,
stippled_p = 0,
for_overlaps = 0,
padding_p = 0,
gc = 0xf64360,
first_glyph = 0xf20780,
img = 0x0,
slice = {
x = 0,
y = 0,
width = 0,
height = 0
},
clip_head = 0x0,
clip_tail = 0x0,
clip = {{
x = 1,
y = 631,
width = 840,
height = 25
}, {
x = 0,
y = 0,
width = 0,
height = 0
}},
num_clips = 1,
underline_position = 0,
underline_thickness = 0,
next = 0x7fffffffb940,
prev = 0x7fffffffbbe0
}
Continuing.
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff548a497 in kill () from /lib/libc.so.6
A debugging session is active.
Inferior 1 [process 27265] will be killed.
Quit anyway? (y or n)
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
[not found] ` <CAJQBtgmajJx3f2EfJCLCP-vWJpHMc+SinyAEjOKhQiRyt7pGGg@mail.gmail.com>
2012-06-29 9:40 ` bug#11813: Fwd: " Left Right
@ 2012-06-29 9:51 ` Eli Zaretskii
2012-06-29 10:17 ` Left Right
1 sibling, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2012-06-29 9:51 UTC (permalink / raw)
To: Left Right; +Cc: 11813
Again, PLEASE CC 11813@debbugs.gnu.org on all your messages in this
matter.
> Date: Fri, 29 Jun 2012 12:30:16 +0300
> From: Left Right <olegsivokon@gmail.com>
>
> I've reset the flags to no optimization and recompiled, and I see the
> same error. Below is the full log
Thanks.
> I'll paste it here in case the list doesn't accept attachments
The list does accept attachments.
> Starting program: /home/wvxvw/projects/emacs-sources/emacs/src/emacs -q
> [Thread debugging using libthread_db enabled]
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x000000000056c02e in x_draw_glyph_string_background
> (s=0x7fffffffba40, force_p=1) at xterm.c:1210
> 1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
> #0 0x000000000056c02e in x_draw_glyph_string_background
> (s=0x7fffffffba40, force_p=1) at xterm.c:1210
> box_line_width = 0
> #1 0x0000000000571508 in x_draw_glyph_string (s=0x7fffffffba40) at xterm.c:2814
> relief_drawn_p = 0
> #2 0x0000000000493044 in draw_glyphs (w=0x146bdc0, x=850,
> row=0x16748e0, area=TEXT_AREA, start=0, end=68, hl=DRAW_NORMAL_TEXT,
> overlaps=0) at xdisp.c:23404
> head = 0x7fffffffbbe0
> tail = 0x7fffffffb940
> s = 0x7fffffffba40
> clip_head = 0x0
> clip_tail = 0x0
> i = 68
> j = 32
> x_reached = 850
> last_x = 841
> area_left = 1
> f = 0x146adb0
Please go to the above stack frame:
(gdb) frame 2
and then display the glyph_row 'row':
(gdb) pgrow
and post here what it shows.
The 'pgrow' command is defined on src/.gdbinit, so either start GDB
from the src/ directory (so it reads .gdbinit automatically), or type
(gdb) source /path/to/src/.gdbinit
before invoking the 'pgrow' command.
I leave the rest of the backtrace, to get it recorded by the bug
tracker. Please always CC 11813@debbugs.gnu.org when you mail
responses about this bug.
> #3 0x000000000049a056 in x_write_glyphs (start=0xf20600, len=68) at
> xdisp.c:25046
> x = 0
> hpos = 0
> chpos = 0
> #4 0x0000000000415c2c in update_text_area (w=0x146bdc0, vpos=37) at
> dispnew.c:3773
> current_row = 0xf23b90
> desired_row = 0x16748e0
> rif = 0xab19c0
> changed_p = 0
> #5 0x000000000041676d in update_window_line (w=0x146bdc0, vpos=37,
> mouse_face_overwritten_p=0x7fffffffc16c) at dispnew.c:4014
> current_row = 0xf23b90
> desired_row = 0x16748e0
> rif = 0xab19c0
> changed_p = 0
> #6 0x000000000041563e in update_window (w=0x146bdc0, force_p=1) at
> dispnew.c:3575
> end = 0x16748e0
> mode_line_row = 0x16748e0
> header_line_row = 0x0
> changed_p = 0
> mouse_face_overwritten_p = 0
> row = 0x16723e0
> yb = 612
> n_updated = 0
> desired_matrix = 0x11d6bb0
> paused_p = 15208032
> preempt_count = 9
> rif = 0xab19c0
> #7 0x0000000000414cbc in update_window_tree (w=0x146bdc0, force_p=1)
> at dispnew.c:3340
> paused_p = 0
> #8 0x00000000004149a8 in update_frame (f=0x146adb0, force_p=1,
> inhibit_hairy_id_p=1) at dispnew.c:3269
> paused_p = 0
> root_window = 0x146bdc0
> #9 0x000000000045f36f in echo_area_display (update_frame_p=1) at xdisp.c:10752
> n = 1
> mini_window = 21417429
> w = 0x146cdd0
> f = 0x146adb0
> window_height_changed_p = 0
> sf = 0x146adb0
> #10 0x000000000045ad75 in message3_nolog (m=23714017, nbytes=65,
> multibyte=0) at xdisp.c:9628
> mini_window = 21417429
> frame = 21409205
> f = 0x146adb0
> sf = 0x146adb0
> #11 0x000000000045a8cc in message3 (m=23714017, nbytes=65,
> multibyte=0) at xdisp.c:9565
> gcpro1 = {
> next = 0x7fffffffc430,
> var = 0x6a9c9b,
> nvars = 0
> }
> #12 0x0000000000699686 in Fmessage (nargs=2, args=0x7fffffffc4f0) at
> editfns.c:3436
> val = 23714017
> #13 0x00000000006a8de7 in Ffuncall (nargs=3, args=0x7fffffffc4e8) at eval.c:2802
> fun = 14492773
> original_fun = 15278610
> funcar = 15361794
> numargs = 2
> lisp_numargs = 6827520
> val = 11994129
> backtrace = {
> next = 0x7fffffffc940,
> function = 0x7fffffffc4e8,
> args = 0x7fffffffc4f0,
> nargs = 2,
> debug_on_exit = 0
> }
> internal_args = 0x7fffffffc9d8
> i = 15279986
> #14 0x0000000000718bbc in exec_byte_code (bytestr=11994369,
> vector=11994557, maxdepth=24, args_template=0, nargs=0,
> args=0x7fffffffc9d8) at bytecode.c:784
> count = 4
> op = 2
> vectorp = 0xb705c8
> stack = {
> pc = 0xd9cad0 ")\207",
> byte_string = 11994369,
> byte_string_start = 0xd9ca97 "\305\030\t\206\071",
> constants = 11994557,
> next = 0x7fffffffcac0
> }
> top = 0x7fffffffc4e8
> result = 15527856
> #15 0x00000000006a9c9b in funcall_lambda (fun=11994317, nargs=0,
> arg_vector=0x7fffffffc9d8) at eval.c:2986
> val = 8589921008
> syms_left = 0
> next = 19143602
> lexenv = 412
> count = 4
> i = 2
> optional = -13792
> rest = 32767
> #16 0x00000000006a9529 in Ffuncall (nargs=1, args=0x7fffffffc9d0) at eval.c:2869
> fun = 11994317
> original_fun = 19439986
> funcar = 100000000
> numargs = 0
> lisp_numargs = 23522358
> val = 140737488347888
> backtrace = {
> next = 0x7fffffffcea0,
> function = 0x7fffffffc9d0,
> args = 0x7fffffffc9d8,
> nargs = 0,
> debug_on_exit = 0
> }
> internal_args = 0x7fffffffcf30
> i = 0
> #17 0x0000000000718bbc in exec_byte_code (bytestr=11996273,
> vector=11997101, maxdepth=88, args_template=1028, nargs=1,
> args=0x7fffffffcf38) at bytecode.c:784
> count = 4
> op = 0
> vectorp = 0xb70fb8
> stack = {
> pc = 0xd9c51a "\210\b\203\021",
> byte_string = 11996273,
> byte_string_start = 0xd9c518 "\306 \210\b\203\021",
> constants = 11997101,
> next = 0x7fffffffd000
> }
> top = 0x7fffffffc9d0
> result = 140737488341568
> #18 0x00000000006a9c9b in funcall_lambda (fun=11996221, nargs=1,
> arg_vector=0x7fffffffcf30) at eval.c:2986
> val = 4310088018
> syms_left = 1028
> next = 15147520
> lexenv = 14970704
> count = 4
> i = 140737488345264
> optional = 22
> rest = 0
> #19 0x00000000006a9529 in Ffuncall (nargs=2, args=0x7fffffffcf28) at eval.c:2869
> fun = 11996221
> original_fun = 19437266
> funcar = 15147520
> numargs = 1
> lisp_numargs = 6827520
> val = 19597478
> backtrace = {
> next = 0x7fffffffd3e0,
> function = 0x7fffffffcf28,
> args = 0x7fffffffcf30,
> nargs = 1,
> debug_on_exit = 0
> }
> internal_args = 0x12b0896
> i = 15279746
> #20 0x0000000000718bbc in exec_byte_code (bytestr=11955625,
> vector=11957277, maxdepth=72, args_template=0, nargs=0,
> args=0x7fffffffd478) at bytecode.c:784
> count = 4
> op = 1
> vectorp = 0xb67428
> stack = {
> pc = 0xd9f3d7 "\210\016H\203\214\005\201\300",
> byte_string = 11955625,
> byte_string_start = 0xd9ee57 "\306
> \020\307\021\n\023\307\024\310\311!\211\307=\204\060",
> constants = 11957277,
> next = 0x7fffffffd4f0
> }
> top = 0x7fffffffcf28
> result = 23097713
> #21 0x00000000006a9c9b in funcall_lambda (fun=11955573, nargs=0,
> arg_vector=0x7fffffffd478) at eval.c:2986
> val = 140737488345264
> syms_left = 0
> next = 140737488343984
> lexenv = 6786392
> count = 4
> i = 5
> optional = -11112
> rest = 32767
> #22 0x00000000006a9529 in Ffuncall (nargs=1, args=0x7fffffffd470) at eval.c:2869
> fun = 11955573
> original_fun = 19238802
> funcar = 15147520
> numargs = 0
> lisp_numargs = 6827520
> val = 15120722
> backtrace = {
> next = 0x7fffffffda40,
> function = 0x7fffffffd470,
> args = 0x7fffffffd478,
> nargs = 0,
> debug_on_exit = 0
> }
> internal_args = 0x1607171
> i = 22203478
> #23 0x0000000000718bbc in exec_byte_code (bytestr=11951433,
> vector=11951885, maxdepth=32, args_template=0, nargs=0,
> args=0x7fffffffd8b0) at bytecode.c:784
> count = 3
> op = 0
> vectorp = 0xb65f18
> stack = {
> pc = 0xd9f934
> "\210)\210\351\352\353\"\210\354\321\355\"\211;\203\256",
> byte_string = 11951433,
> byte_string_start = 0xd9f89f "\b\203\b",
> constants = 11951885,
> next = 0x0
> }
> top = 0x7fffffffd470
> result = 140737308851520
> #24 0x00000000006a9c9b in funcall_lambda (fun=11951381, nargs=0,
> arg_vector=0x7fffffffd8b0) at eval.c:2986
> val = 140737353973760
> syms_left = 0
> next = 140737308427896
> lexenv = 140737293415912
> count = 3
> i = 4294969316
> optional = 33
> rest = 0
> #25 0x00000000006a98c5 in apply_lambda (fun=11951381, args=15120722)
> at eval.c:2929
> args_left = 15120722
> i = 0
> numargs = 0
> arg_vector = 0x7fffffffd8b0
> gcpro1 = {
> next = 0x0,
> var = 0x15f0778,
> nvars = 0
> }
> gcpro2 = {
> next = 0x100000000,
> var = 0xffffffff,
> nvars = 140737488345680
> }
> gcpro3 = {
> next = 0x7fff00000001,
> var = 0x0,
> nvars = 140733193388033
> }
> tem = 2
> sa_count = 3
> sa_must_free = 0
> #26 0x00000000006a7120 in eval_sub (form=15346758) at eval.c:2212
> fun = 11951381
> val = 140737353973760
> original_fun = 19139458
> original_args = 15120722
> funcar = 15120722
> backtrace = {
> next = 0x0,
> function = 0x7fffffffda70,
> args = 0x7fffffffd8b0,
> nargs = 0,
> debug_on_exit = 0
> }
> gcpro1 = {
> next = 0x7fffffffdaa0,
> var = 0x683a75,
> nvars = 2822930839
> }
> gcpro2 = {
> next = 0x7ffff7fd66e0,
> var = 0x7fffffffda90,
> nvars = 276967387
> }
> gcpro3 = {
> next = 0x7ffff4617000,
> var = 0x7fffffffda70,
> nvars = 1
> }
> #27 0x00000000006a6270 in Feval (form=15346758, lexical=15120722) at eval.c:2021
> count = 2
> #28 0x00000000005cc3bf in top_level_2 () at keyboard.c:1164
> No locals.
> #29 0x00000000006a446d in internal_condition_case (bfun=0x5cc3a2
> <top_level_2>, handlers=15172450, hfun=0x5cbea5 <cmd_error>) at
> eval.c:1333
> val = 6079425
> c = {
> tag = 15120722,
> val = 15120722,
> next = 0x7fffffffdd00,
> gcpro = 0x0,
> jmp = {{
> __jmpbuf = {2, -5741430973350281040, 4243568,
> 140737488347888, 0, 0, -5741430973453041488, 5741431852756107440},
> __mask_was_saved = 0,
> __saved_mask = {
> __val = {4294967295, 0, 1, 11191568, 0, 0, 0, 0,
> 140737351960338, 1, 0, 1, 140737308399024, 1, 2, 140737488346656}
> }
> }},
> backlist = 0x0,
> handlerlist = 0x0,
> lisp_eval_depth = 0,
> pdlcount = 2,
> poll_suppress_count = 1,
> interrupt_input_blocked = 0,
> byte_stack = 0x0
> }
> h = {
> handler = 15172450,
> var = 15120722,
> chosen_clause = 140737488346080,
> tag = 0x7fffffffdb90,
> next = 0x0
> }
> #30 0x00000000005cc3f9 in top_level_1 (ignore=15120722) at keyboard.c:1172
> No locals.
> #31 0x00000000006a3cfd in internal_catch (tag=15168242, func=0x5cc3c1
> <top_level_1>, arg=15120722) at eval.c:1090
> c = {
> tag = 15168242,
> val = 15120722,
> next = 0x0,
> gcpro = 0x0,
> jmp = {{
> __jmpbuf = {2, -5741430973297852240, 4243568,
> 140737488347888, 0, 0, -5741430973339795280, 5741431850440851632},
> __mask_was_saved = 0,
> __saved_mask = {
> __val = {15120722, 140737488346608, 6830709, 0,
> 4302523939, 140737311891096, 15120722, 15340368, 140737488346712, 14,
> 15147520, 14523360, 6827487, 140737488346672,
> 15120722, 4243568}
> }
> }},
> backlist = 0x0,
> handlerlist = 0x0,
> lisp_eval_depth = 0,
> pdlcount = 2,
> poll_suppress_count = 1,
> interrupt_input_blocked = 0,
> byte_stack = 0x0
> }
> #32 0x00000000005cc31d in command_loop () at keyboard.c:1127
> No locals.
> #33 0x00000000005cb6f1 in recursive_edit_1 () at keyboard.c:754
> count = 1
> val = 6077156
> #34 0x00000000005cbacc in Frecursive_edit () at keyboard.c:818
> count = 0
> buffer = 15120722
> #35 0x00000000005c927c in main (argc=2, argv=0x7fffffffe2f8) at emacs.c:1693
> dummy = 140737354131128
> stack_bottom_variable = 0 '\000'
> do_initial_setlocale = 1
> skip_args = 0
> rlim = {
> rlim_cur = 8720000,
> rlim_max = 18446744073709551615
> }
> no_loadup = 0
> junk = 0x0
> dname_arg = 0x0
> ch_to_dir = 0x3d8f538 <Address 0x3d8f538 out of bounds>
>
> Lisp Backtrace:
> "message" (0xffffc4f0)
> "display-startup-echo-area-message" (0xffffc9d8)
> "command-line-1" (0xffffcf30)
> "command-line" (0xffffd478)
> "normal-top-level" (0xffffd8b0)
> $1 = {
> x = 82,
> y = 631,
> ybase = 649,
> width = 288,
> background_width = 288,
> height = 25,
> left_overhang = 0,
> right_overhang = 0,
> f = 0x146adb0,
> w = 0x146bdc0,
> display = 0x161a6b0,
> window = 52428926,
> row = 0x16748e0,
> area = TEXT_AREA,
> char2b = 0x0,
> nchars = 12,
> hl = DRAW_NORMAL_TEXT,
> face = 0x16549c0,
> font = 0x0,
> cmp = 0x0,
> cmp_id = 0,
> cmp_from = 0,
> cmp_to = 0,
> extends_to_end_of_line_p = 0,
> background_filled_p = 0,
> two_byte_p = 0,
> font_not_found_p = 0,
> stippled_p = 0,
> for_overlaps = 0,
> padding_p = 0,
> gc = 0xf64360,
> first_glyph = 0xf20780,
> img = 0x0,
> slice = {
> x = 0,
> y = 0,
> width = 0,
> height = 0
> },
> clip_head = 0x0,
> clip_tail = 0x0,
> clip = {{
> x = 1,
> y = 631,
> width = 840,
> height = 25
> }, {
> x = 0,
> y = 0,
> width = 0,
> height = 0
> }},
> num_clips = 1,
> underline_position = 0,
> underline_thickness = 0,
> next = 0x7fffffffb940,
> prev = 0x7fffffffbbe0
> }
> Continuing.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x00007ffff548a497 in kill () from /lib/libc.so.6
> A debugging session is active.
>
> Inferior 1 [process 27265] will be killed.
>
> Quit anyway? (y or n)
>
> As an aside, I also tried to compile it with no XFT support, with the
> same result. When configuring for this compilation I didn't add any
> more options, just the --enable-checking --enable-asserts.
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-06-29 9:51 ` Eli Zaretskii
@ 2012-06-29 10:17 ` Left Right
2012-06-29 10:37 ` Eli Zaretskii
0 siblings, 1 reply; 13+ messages in thread
From: Left Right @ 2012-06-29 10:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 11813
Program received signal SIGSEGV, Segmentation fault.
0x000000000056c02e in x_draw_glyph_string_background
(s=0x7fffffffba40, force_p=1) at xterm.c:1210
1210 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width
(gdb) frame 2
#2 0x0000000000493044 in draw_glyphs (w=0x146bdc0, x=850,
row=0x1674890, area=TEXT_AREA, start=0, end=68, hl=DRAW_NORMAL_TEXT,
overlaps=0) at xdisp.c:23404
23404 FRAME_RIF (f)->draw_glyph_string (s);
(gdb) pgrow
TEXT: 68 glyphs
0 0: CHAR[ ] str=eb7881[0] blev=0,btyp=L w=11 a+d=14+4 face=1 [
1 11: CHAR[U] str=11bef51[1] blev=0,btyp=L w=10 a+d=14+4 face=1
2 21: CHAR[:] str=169a6c1[0] blev=0,btyp=L w=10 a+d=14+4 face=1
3 31: CHAR[-] str=11daed1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
4 41: CHAR[-] str=11daeb1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
5 51: CHAR[-] str=11dbba1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
6 61: CHAR[ ] str=b0bf61[0] blev=0,btyp=L w=10 a+d=14+4 face=1
7 71: CHAR[ ] str=b0bf61[1] blev=0,btyp=L w=10 a+d=14+4 face=1
8 81: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
9 105: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
10 129: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
11 153: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
12 177: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
13 201: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
14 225: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
15 249: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
16 273: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
17 297: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
18 321: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
19 345: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
20 369: CHAR[ ] str=11c5121[0] blev=0,btyp=L w=10 a+d=14+4 face=1
21 379: CHAR[ ] str=11c5121[1] blev=0,btyp=L w=10 a+d=14+4 face=1
22 389: CHAR[ ] str=11c5121[2] blev=0,btyp=L w=10 a+d=14+4 face=1
23 399: CHAR[A] str=11dd7d1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
24 409: CHAR[l] str=11dd7d1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
25 419: CHAR[l] str=11dd7d1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
26 429: CHAR[ ] str=11ab001[0] blev=0,btyp=L w=10 a+d=14+4 face=1
27 439: CHAR[L] str=11ab001[1] blev=0,btyp=L w=10 a+d=14+4 face=1
28 449: CHAR[1] str=11ab001[3] blev=0,btyp=L w=10 a+d=14+4 face=1
29 459: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
30 469: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
31 479: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
32 489: CHAR[ ] str=11aff91[0] blev=0,btyp=L w=10 a+d=14+4 face=1
33 499: CHAR[ ] str=11aff91[1] blev=0,btyp=L w=10 a+d=14+4 face=1
34 509: CHAR[(] str=1196d71[0] blev=0,btyp=L w=10 a+d=14+4 face=1
35 519: CHAR[L] str=169a621[0] blev=0,btyp=L w=10 a+d=14+4 face=1
36 529: CHAR[i] str=169a621[1] blev=0,btyp=L w=10 a+d=14+4 face=1
37 539: CHAR[s] str=169a621[2] blev=0,btyp=L w=10 a+d=14+4 face=1
38 549: CHAR[p] str=169a621[3] blev=0,btyp=L w=10 a+d=14+4 face=1
39 559: CHAR[ ] str=169a621[4] blev=0,btyp=L w=10 a+d=14+4 face=1
40 569: CHAR[I] str=169a621[5] blev=0,btyp=L w=10 a+d=14+4 face=1
41 579: CHAR[n] str=169a621[6] blev=0,btyp=L w=10 a+d=14+4 face=1
42 589: CHAR[t] str=169a621[7] blev=0,btyp=L w=10 a+d=14+4 face=1
43 599: CHAR[e] str=169a621[8] blev=0,btyp=L w=10 a+d=14+4 face=1
44 609: CHAR[r] str=169a621[9] blev=0,btyp=L w=10 a+d=14+4 face=1
45 619: CHAR[a] str=169a621[10] blev=0,btyp=L w=10 a+d=14+4 face=1
46 629: CHAR[c] str=169a621[11] blev=0,btyp=L w=10 a+d=14+4 face=1
47 639: CHAR[t] str=169a621[12] blev=0,btyp=L w=10 a+d=14+4 face=1
48 649: CHAR[i] str=169a621[13] blev=0,btyp=L w=10 a+d=14+4 face=1
49 659: CHAR[o] str=169a621[14] blev=0,btyp=L w=10 a+d=14+4 face=1
50 669: CHAR[n] str=169a621[15] blev=0,btyp=L w=10 a+d=14+4 face=1
51 679: CHAR[)] str=1196f51[0] blev=0,btyp=L w=10 a+d=14+4 face=1
52 689: CHAR[ ] str=1196f91[0] blev=0,btyp=L w=10 a+d=14+4 face=1
53 699: CHAR[ ] pos=0 blev=0,btyp=L w=10 a+d=14+4 face=1
54 709: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
55 719: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
56 729: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
57 739: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
58 749: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
59 759: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
60 769: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
61 779: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
62 789: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
63 799: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
64 809: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
65 819: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
66 829: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1
67 839: CHAR[ ] pos=-1 blev=0,btyp=B w=10 a+d=14+4 face=1 ]
Here's what I get in the pgrow
Next, the contents of row:
(gdb) display row
1: row = (struct glyph_row *) 0x1674890
(gdb) display *row
2: *row = {
glyphs = {0xf20600, 0xf20600, 0xf21680, 0xf21680},
used = {0, 68, 0},
x = 0,
y = 612,
pixel_width = 849,
ascent = 18,
height = 25,
phys_ascent = 18,
phys_height = 25,
visible_height = 25,
extra_line_spacing = 0,
hash = 46368546,
start = {
pos = {
charpos = 0,
bytepos = 0
},
overlay_string_index = 0,
string_pos = {
charpos = 0,
bytepos = 0
},
dpvec_index = 0
},
end = {
pos = {
charpos = 0,
bytepos = 0
},
overlay_string_index = 0,
string_pos = {
charpos = 0,
bytepos = 0
},
dpvec_index = 0
},
minpos = {
charpos = 0,
bytepos = 0
},
maxpos = {
charpos = 0,
bytepos = 0
},
overlay_arrow_bitmap = 0,
left_user_fringe_bitmap = 0,
right_user_fringe_bitmap = 0,
left_fringe_bitmap = 0,
right_fringe_bitmap = 0,
left_user_fringe_face_id = 0,
right_user_fringe_face_id = 0,
left_fringe_face_id = 0,
right_fringe_face_id = 0,
left_fringe_offset = 0,
right_fringe_offset = 0,
fringe_bitmap_periodic_p = 0,
redraw_fringe_bitmaps_p = 0,
enabled_p = 1,
truncated_on_left_p = 0,
truncated_on_right_p = 0,
continued_p = 0,
displays_text_p = 0,
ends_at_zv_p = 0,
fill_line_p = 0,
indicate_empty_line_p = 0,
contains_overlapping_glyphs_p = 0,
full_width_p = 1,
mode_line_p = 1,
overlapped_p = 0,
ends_in_middle_of_char_p = 0,
starts_in_middle_of_char_p = 0,
overlapping_p = 0,
mouse_face_p = 0,
ends_in_newline_from_string_p = 0,
exact_window_width_line_p = 0,
cursor_in_fringe_p = 0,
ends_in_ellipsis_p = 0,
indicate_bob_p = 0,
indicate_top_line_p = 0,
indicate_eob_p = 0,
indicate_bottom_line_p = 0,
reversed_p = 0,
continuation_lines_width = 0,
clip = 0x0
}
Best.
Oleg
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-06-29 10:17 ` Left Right
@ 2012-06-29 10:37 ` Eli Zaretskii
2012-06-29 10:42 ` Eli Zaretskii
2012-06-29 10:49 ` Left Right
0 siblings, 2 replies; 13+ messages in thread
From: Eli Zaretskii @ 2012-06-29 10:37 UTC (permalink / raw)
To: Left Right; +Cc: 11813
> Date: Fri, 29 Jun 2012 13:17:48 +0300
> From: Left Right <olegsivokon@gmail.com>
> Cc: 11813@debbugs.gnu.org
>
> (gdb) pgrow
> TEXT: 68 glyphs
> 0 0: CHAR[ ] str=eb7881[0] blev=0,btyp=L w=11 a+d=14+4 face=1 [
> 1 11: CHAR[U] str=11bef51[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> 2 21: CHAR[:] str=169a6c1[0] blev=0,btyp=L w=10 a+d=14+4 face=1
> 3 31: CHAR[-] str=11daed1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> 4 41: CHAR[-] str=11daeb1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> 5 51: CHAR[-] str=11dbba1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> 6 61: CHAR[ ] str=b0bf61[0] blev=0,btyp=L w=10 a+d=14+4 face=1
> 7 71: CHAR[ ] str=b0bf61[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> 8 81: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 9 105: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 10 129: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 11 153: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 12 177: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 13 201: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 14 225: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 15 249: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 16 273: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 17 297: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 18 321: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> 19 345: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
This is the mode line (of the "*scratch*" buffer, I presume). The
GLYPHLESS parts seem to indicate that Emacs has no font to display the
buffer name in bold. Is that possible, given your configuration of
fonts?
I'll try to find a way to avoid a crash in this case.
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-06-29 10:37 ` Eli Zaretskii
@ 2012-06-29 10:42 ` Eli Zaretskii
2012-06-29 10:49 ` Left Right
1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2012-06-29 10:42 UTC (permalink / raw)
To: olegsivokon; +Cc: 11813
> Date: Fri, 29 Jun 2012 13:37:39 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 11813@debbugs.gnu.org
>
> > Date: Fri, 29 Jun 2012 13:17:48 +0300
> > From: Left Right <olegsivokon@gmail.com>
> > Cc: 11813@debbugs.gnu.org
> >
> > (gdb) pgrow
> > TEXT: 68 glyphs
> > 0 0: CHAR[ ] str=eb7881[0] blev=0,btyp=L w=11 a+d=14+4 face=1 [
> > 1 11: CHAR[U] str=11bef51[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 2 21: CHAR[:] str=169a6c1[0] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 3 31: CHAR[-] str=11daed1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 4 41: CHAR[-] str=11daeb1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 5 51: CHAR[-] str=11dbba1[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 6 61: CHAR[ ] str=b0bf61[0] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 7 71: CHAR[ ] str=b0bf61[1] blev=0,btyp=L w=10 a+d=14+4 face=1
> > 8 81: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 9 105: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 10 129: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 11 153: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 12 177: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 13 201: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 14 225: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 15 249: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 16 273: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 17 297: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 18 321: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
> > 19 345: GLYPHLESS[HEX] str=11bf4c1[1] w=24 a+d=18+7 face=13 slice=2,65530,2,5
>
> This is the mode line (of the "*scratch*" buffer, I presume).
By the way: is this on a TTY or in a GUI session?
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-06-29 10:37 ` Eli Zaretskii
2012-06-29 10:42 ` Eli Zaretskii
@ 2012-06-29 10:49 ` Left Right
2012-07-03 17:31 ` Eli Zaretskii
1 sibling, 1 reply; 13+ messages in thread
From: Left Right @ 2012-06-29 10:49 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 11813
> By the way: is this on a TTY or in a GUI session?
This is the GUI session.
> The
> GLYPHLESS parts seem to indicate that Emacs has no font to display the
> buffer name in bold.
It's not impossible, if I knew what font it is looking for I'd know
for sure. I had some problems before with multilingual support and
added fonts on the case by case basis, those I could find. Although
Emacs23 I have from PPA starts fine with the fonts I have. Correct me
if I'm wrong, but Emacs doesn't seem to read fonts.conf from my user
directory - how would I set it to use certain fonts?
Best.
Oleg
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-06-29 10:49 ` Left Right
@ 2012-07-03 17:31 ` Eli Zaretskii
2012-07-03 17:33 ` Eli Zaretskii
2012-07-03 21:54 ` Jan Djärv
0 siblings, 2 replies; 13+ messages in thread
From: Eli Zaretskii @ 2012-07-03 17:31 UTC (permalink / raw)
To: Left Right; +Cc: 11813
> Date: Fri, 29 Jun 2012 13:49:55 +0300
> From: Left Right <olegsivokon@gmail.com>
> Cc: 11813@debbugs.gnu.org
>
> > By the way: is this on a TTY or in a GUI session?
>
> This is the GUI session.
That was a stupid question on my part, sorry.
> > The
> > GLYPHLESS parts seem to indicate that Emacs has no font to display the
> > buffer name in bold.
>
> It's not impossible, if I knew what font it is looking for I'd know
> for sure. I had some problems before with multilingual support and
> added fonts on the case by case basis, those I could find. Although
> Emacs23 I have from PPA starts fine with the fonts I have. Correct me
> if I'm wrong, but Emacs doesn't seem to read fonts.conf from my user
> directory - how would I set it to use certain fonts?
Sorry, I don't know, I don't have experience with GTK and related
environments.
Could you try the patch I just posted and see if it solves the issue
at hand?
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-07-03 17:31 ` Eli Zaretskii
@ 2012-07-03 17:33 ` Eli Zaretskii
2012-07-03 21:54 ` Jan Djärv
1 sibling, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2012-07-03 17:33 UTC (permalink / raw)
To: olegsivokon; +Cc: 11813
> Date: Tue, 03 Jul 2012 20:31:44 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 11813@debbugs.gnu.org
>
> Could you try the patch I just posted and see if it solves the issue
> at hand?
The patch is here:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=11850#16
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-07-03 17:31 ` Eli Zaretskii
2012-07-03 17:33 ` Eli Zaretskii
@ 2012-07-03 21:54 ` Jan Djärv
2012-07-04 10:25 ` Left Right
1 sibling, 1 reply; 13+ messages in thread
From: Jan Djärv @ 2012-07-03 21:54 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Left Right, 11813@debbugs.gnu.org
Hello.
3 jul 2012 kl. 19:31 skrev Eli Zaretskii <eliz@gnu.org>:
>> Date: Fri, 29 Jun 2012 13:49:55 +0300
>> From: Left Right <olegsivokon@gmail.com>
>> Cc: 11813@debbugs.gnu.org
>>
>> It's not impossible, if I knew what font it is looking for I'd know
>> for sure. I had some problems before with multilingual support and
>> added fonts on the case by case basis, those I could find. Although
>> Emacs23 I have from PPA starts fine with the fonts I have. Correct me
>> if I'm wrong, but Emacs doesn't seem to read fonts.conf from my user
>> directory - how would I set it to use certain fonts?
>
> Sorry, I don't know, I don't have experience with GTK and related
> environments.
>
The file font.conf is used by fontconfig and not related to Gtk. Fontconfig is used for all aa-fonts on X11.
Jan D.
^ permalink raw reply [flat|nested] 13+ messages in thread
* bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background
2012-07-03 21:54 ` Jan Djärv
@ 2012-07-04 10:25 ` Left Right
0 siblings, 0 replies; 13+ messages in thread
From: Left Right @ 2012-07-04 10:25 UTC (permalink / raw)
To: 11813
Hi, sorry for delay.
I've applied the patch, and it looks like the initial problem is
fixed, however, the other problem, which seems related surfaces. Below
is debugger output (I've compiled w/o optimization flags).
gdb ./src/emacs
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/wvxvw/projects/emacs-sources/emacs/src/emacs...done.
(gdb) r -q
Starting program: /home/wvxvw/projects/emacs-sources/emacs/src/emacs -q
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x000000000056d3cb in x_draw_glyphless_glyph_string_foreground
(s=0x7fffffffba40) at xterm.c:1419
1419 code = s->font->driver->encode_char (s->font, str[j]);
(gdb) p s
$1 = (struct glyph_string *) 0x7fffffffba40
(gdb) p *s
$2 = {x = 82, y = 631, ybase = 649, width = 288, background_width =
288, height = 25, left_overhang = 0, right_overhang = 0, f =
0x146adb0, w = 0x146bdc0, display = 0x161a6b0,
window = 60817534, row = 0x16748e0, area = TEXT_AREA, char2b =
0x7fffffffb710, nchars = 12, hl = DRAW_NORMAL_TEXT, face = 0x1615dd0,
font = 0x0, cmp = 0x0, cmp_id = 0, cmp_from = 0,
cmp_to = 0, extends_to_end_of_line_p = 0, background_filled_p = 1,
two_byte_p = 0, font_not_found_p = 0, stippled_p = 0, for_overlaps =
0, padding_p = 0, gc = 0x16a5450,
first_glyph = 0xf20780, img = 0x0, slice = {x = 0, y = 0, width = 0,
height = 0}, clip_head = 0x0, clip_tail = 0x0, clip = {{x = 1, y =
631, width = 840, height = 25}, {x = 0, y = 0,
width = 0, height = 0}}, num_clips = 1, underline_position = 0,
underline_thickness = 0, next = 0x7fffffffb940, prev = 0x7fffffffbbe0}
(gdb) p s->font
$3 = (struct font *) 0x0
(gdb) c
Continuing.
Fatal error (11)
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5255497 in kill () from /lib/libc.so.6
(gdb) q
If I may suggest, I don't know the code very well, but, could it
assert on whether the font exists or not and print out somehow what
font it is looking for? That might be even better then accounting for
non-existing fonts later on.
One more clarification, this is not GTK, I'm running KDE 4.4.5.
Perhaps, although unlikely, I have to change something in it's fonts
configuration? (not that I know of such, but if you do, you are
welcome to suggest).
Best.
Oleg
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2012-07-04 10:25 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-29 2:25 bug#11813: Segmentation fault on launch related to x_draw_glyph_string_background Left Right
2012-06-29 6:33 ` Eli Zaretskii
[not found] ` <CAJQBtgkvLqF2bXfegG2bM9sBHsMEahSy69DTyPpNeJrsOgdV4g@mail.gmail.com>
2012-06-29 9:02 ` Eli Zaretskii
[not found] ` <CAJQBtgmajJx3f2EfJCLCP-vWJpHMc+SinyAEjOKhQiRyt7pGGg@mail.gmail.com>
2012-06-29 9:40 ` bug#11813: Fwd: " Left Right
2012-06-29 9:51 ` Eli Zaretskii
2012-06-29 10:17 ` Left Right
2012-06-29 10:37 ` Eli Zaretskii
2012-06-29 10:42 ` Eli Zaretskii
2012-06-29 10:49 ` Left Right
2012-07-03 17:31 ` Eli Zaretskii
2012-07-03 17:33 ` Eli Zaretskii
2012-07-03 21:54 ` Jan Djärv
2012-07-04 10:25 ` Left Right
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.