From: "Robert J. Chassell" <bob@rattlesnake.com>
To: emacs-devel@gnu.org
Subject: Re: Emacs crashes, 07nov16
Date: Wed, 21 Nov 2007 12:45:44 +0000 (UTC) [thread overview]
Message-ID: <m1Iuoxc-002K4JC@rattlesnake.com> (raw)
In-Reply-To: <4743E151.9050405@swipnet.se> (message from Jan Djärv on Wed, 21 Nov 2007 08:42:09 +0100)
jan.h.d@swipnet.se writes
Hmm, it looks like someone is overwriting the stack. 77 is
X_ImageText16 (XDrawImageString16) so some parameter to that call
is bad. But where that corruption happens is har to know.
Interesting! I get this
(gdb) l x_draw_glyph_string_foreground
Function "x_draw_glyph_string_foreground" not defined.
both when my breakpoint is abort () at emacs.c:431 and when it is
x_connection_closed at xterm.c:7786
even though
x_draw_glyph_string_foreground (s) is defined on line 1316 of xterm.c
and line 1374 of xterm.c is
XDrawImageString16 (s->display, s->window, s->gc, x,
When I run and try to display the euro character having previously:
(gdb) b 1374
<i.e. the line that XDrawImageString16 is on. Not to be confused with
XDrawString16 that occurs a bit before this line>
I see this:
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/local/src/emacs/src/emacs -i -q --eval '(emacs-version t)' -bg DodgerBlue4 -fg white -fn '-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1' -geometry 80x44+545+51 -name '-q GNU Emacs in Debugger 4'
[Thread debugging using libthread_db enabled]
[New Thread 0xb71fc920 (LWP 10230)]
[Switching to Thread 0xb71fc920 (LWP 10230)]
Breakpoint 4, x_draw_glyph_string (s=0xbfe761b0) at xterm.c:1374
(gdb) p *s
$1 = {
x = 30,
y = 180,
ybase = 196,
width = 10,
background_width = 10,
height = 20,
left_overhang = 0,
right_overhang = 0,
f = 0x8601840,
w = 0x86019c8,
display = 0x85b8f00,
window = 46137561,
row = 0x86278cc,
area = TEXT_AREA,
char2b = 0xbfe76190,
nchars = 1,
hl = DRAW_NORMAL_TEXT,
face = 0x8798b40,
font = 0x8859550,
font_info = 0x8603318,
cmp = 0x0,
gidx = 0,
extends_to_end_of_line_p = 0,
background_filled_p = 0,
two_byte_p = 1,
font_not_found_p = 0,
stippled_p = 0,
for_overlaps = 0,
gc = 0x858e5f8,
first_glyph = 0x86064b8,
img = 0x0,
slice = {
x = 0,
y = 0,
width = 0,
height = 0
},
clip_head = 0x0,
clip_tail = 0x0,
next = 0xbfe76100,
prev = 0x0
}
(gdb) p *s->font
$2 = {
ext_data = 0x8798be8,
fid = 46138179,
direction = 0,
min_char_or_byte2 = 0,
max_char_or_byte2 = 255,
min_byte1 = 0,
max_byte1 = 255,
all_chars_exist = 0,
default_char = 0,
n_properties = 23,
properties = 0x8847370,
min_bounds = {
lbearing = 0,
rbearing = 0,
width = 10,
ascent = -3,
descent = -15,
attributes = 0
},
max_bounds = {
lbearing = 9,
rbearing = 10,
width = 10,
ascent = 16,
descent = 4,
attributes = 0
},
per_char = 0xb6d75000,
ascent = 16,
descent = 4
}
(gdb) p *s->font_info
$3 = {
ext_data = 0x8798be8,
fid = 46138179,
direction = 0,
min_char_or_byte2 = 0,
max_char_or_byte2 = 255,
min_byte1 = 0,
max_byte1 = 255,
all_chars_exist = 0,
default_char = 0,
n_properties = 23,
properties = 0x8847370,
min_bounds = {
lbearing = 0,
rbearing = 0,
width = 10,
ascent = -3,
descent = -15,
attributes = 0
},
max_bounds = {
lbearing = 9,
rbearing = 10,
width = 10,
ascent = 16,
descent = 4,
attributes = 0
},
per_char = 0xb6d75000,
ascent = 16,
descent = 4
}
(gdb) p x
^done,locals=[{name="tem",type="long unsigned int",value="<value optimized out>"},{name="h",type="long unsigned int",value="<value optimized out>"},{name="y",type="int",value="<value optimized out>"},{name="relief_drawn_p",type="int",value="0"}]
(gdb) p boff
^done,locals=[{name="tem",type="long unsigned int",value="<value optimized out>"},{name="h",type="long unsigned int",value="<value optimized out>"},{name="y",type="int",value="<value optimized out>"},{name="relief_drawn_p",type="int",value="0"}]
(gdb)
Starting with fixed 20 and going to a Courier font of 18 (there are
none readily available for 20) using S-down-mouse-1 (mouse-set-font),
I can display the Euro sign as I can with fixed 18.
When I do S-down-mouse-1 (mouse-set-font) with fixed 18 (i.e., with
-Misc-Fixed-Medium-R-Normal--18-120-100-100-C-90-ISO8859-1), I do not
see fontset startup: 20-dot medium which is visible when I start with
fixed 20 (i.e., with
-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1).
Incidentally, Courier fonts 14 and 18 are bigger than fixed 20 and
Courier font 12 is smaller.
Today's GNU Emacs CVS snapshot, Wed, 2007 Nov 21 10:49 UTC
GNU Emacs 23.0.50.9 (i686-pc-linux-gnu, GTK+ Version 2.12.1)
started in debugger with
set args -i -q \
--eval '(emacs-version t)' -bg DodgerBlue4 -fg white \
-fn '-Misc-Fixed-Medium-R-Normal--20-200-75-75-C-100-ISO8859-1' \
-geometry 80x44+545+51 -name '-q GNU Emacs in Debugger 4'
architecture: i686
Linux kernel: 2.6.22-2-686
distribution: Debian testing, updated today
--
Robert J. Chassell GnuPG Key ID: 004B4AC8
bob@rattlesnake.com bob@gnu.org
http://www.rattlesnake.com http://www.teak.cc
next prev parent reply other threads:[~2007-11-21 12:45 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 19:35 Emacs crashes, 07nov16 Robert J. Chassell
2007-11-18 13:01 ` Richard Stallman
2007-11-18 22:06 ` Robert J. Chassell
2007-11-19 12:25 ` Richard Stallman
2007-11-19 14:05 ` Robert J. Chassell
2007-11-20 3:59 ` Richard Stallman
2007-11-20 11:17 ` Robert J. Chassell
2007-11-20 12:08 ` Jan Djärv
2007-11-20 16:07 ` Robert J. Chassell
2007-11-21 7:42 ` Jan Djärv
2007-11-21 12:45 ` Robert J. Chassell [this message]
2007-11-21 15:13 ` Stefan Monnier
2007-11-22 7:07 ` Jan Djärv
2007-11-22 12:31 ` Robert J. Chassell
2007-11-22 13:13 ` Jan Djärv
2007-11-22 16:00 ` Robert J. Chassell
2007-11-23 9:45 ` Jan Djärv
2007-11-23 12:31 ` Robert J. Chassell
2007-11-23 12:46 ` David Kastrup
2007-11-23 14:54 ` Jan Djärv
2007-11-23 17:07 ` Robert J. Chassell
2007-11-24 9:20 ` Jan Djärv
2007-11-24 14:08 ` Robert J. Chassell
2007-11-26 14:54 ` Jan Djärv
2007-11-26 16:44 ` Robert J. Chassell
2007-11-26 19:04 ` Jan Djärv
2007-11-24 9:19 ` Jan Djärv
2007-11-21 12:04 ` Richard Stallman
2007-11-21 17:20 ` Robert J. Chassell
2007-11-22 7:07 ` Jan Djärv
2007-11-22 11:55 ` Robert J. Chassell
2007-11-19 20:37 ` RMAIL misbehaving (Was: Re: Emacs crashes, 07nov16) Alfred M. Szmidt
2007-11-21 12:05 ` Richard Stallman
2007-12-13 0:15 ` Alfred M. Szmidt
2007-12-14 10:10 ` Richard Stallman
-- strict thread matches above, loose matches on Subject: below --
2007-11-19 0:30 Emacs crashes, 07nov16 Robert J. Chassell
2007-11-28 12:06 Robert J. Chassell
2007-11-28 17:49 ` Jan Djärv
2007-11-28 18:36 Robert J. Chassell
2007-11-29 6:51 ` Jan Djärv
2007-11-29 11:28 ` Robert J. Chassell
2007-11-29 12:05 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1Iuoxc-002K4JC@rattlesnake.com \
--to=bob@rattlesnake.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).