From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs crashes, 07nov16 Date: Thu, 22 Nov 2007 08:07:04 +0100 Message-ID: <47452A98.8000408@swipnet.se> References: <4742CE2C.8000809@swipnet.se> <4743E151.9050405@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1195715256 4564 80.91.229.12 (22 Nov 2007 07:07:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 22 Nov 2007 07:07:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: bob@rattlesnake.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 22 08:07:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Iv6A2-0002lQ-7O for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2007 08:07:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iv69o-0005Po-3Y for ged-emacs-devel@m.gmane.org; Thu, 22 Nov 2007 02:07:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iv69b-0005Bp-5R for emacs-devel@gnu.org; Thu, 22 Nov 2007 02:07:15 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iv69a-0005Ab-Dj for emacs-devel@gnu.org; Thu, 22 Nov 2007 02:07:14 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iv69a-0005AO-9k for emacs-devel@gnu.org; Thu, 22 Nov 2007 02:07:14 -0500 Original-Received: from av7-2-sn3.vrr.skanova.net ([81.228.9.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iv69Z-000171-RM for emacs-devel@gnu.org; Thu, 22 Nov 2007 02:07:14 -0500 Original-Received: by av7-2-sn3.vrr.skanova.net (Postfix, from userid 502) id 5EF5C389ED; Thu, 22 Nov 2007 08:06:00 +0100 (CET) Original-Received: from smtp3-1-sn3.vrr.skanova.net (smtp3-1-sn3.vrr.skanova.net [81.228.9.101]) by av7-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 1F8BF3803D; Thu, 22 Nov 2007 08:06:00 +0100 (CET) Original-Received: from husetbladh.homeip.net (90-231-102-24-no59.tbcn.telia.com [90.231.102.24]) by smtp3-1-sn3.vrr.skanova.net (Postfix) with ESMTP id AB9E337E47; Thu, 22 Nov 2007 08:07:11 +0100 (CET) User-Agent: Thunderbird 2.0.0.9 (X11/20071031) In-Reply-To: X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:83840 Archived-At: Looks loke you printed *s->font twice, but not *s->font_info. It could be an effect of optimization, can you try again wih -O0? Thanks, Jan D. Robert J. Chassell skrev: > 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 > 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=""},{name="h",type="long unsigned int",value=""},{name="y",type="int",value=""},{name="relief_drawn_p",type="int",value="0"}] > (gdb) p boff > ^done,locals=[{name="tem",type="long unsigned int",value=""},{name="h",type="long unsigned int",value=""},{name="y",type="int",value=""},{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 > >