From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joseph@photosessionsltd.com Newsgroups: gmane.emacs.bugs Subject: bug#12050: 23.3; font trashes mode-line file name Date: Mon, 30 Jul 2012 04:20:11 -0400 Message-ID: <9c7c5885dde95b641a727c4fc6709083.squirrel@server208.nhsdns.com> References: <2e244dfb827ebd8ba5e578bf011d1971.squirrel@server208.nhsdns.com> <831ujzkyv2.fsf@gnu.org> <83mx2jhdmt.fsf@gnu.org> <83ehnuh435.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1343636464 24048 80.91.229.3 (30 Jul 2012 08:21:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2012 08:21:04 +0000 (UTC) Cc: 12050@debbugs.gnu.org To: "Eli Zaretskii" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 30 10:21:04 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvlDr-0005wn-DX for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 10:21:03 +0200 Original-Received: from localhost ([::1]:44511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvlDq-0004gw-Md for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 04:21:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvlDj-0004ew-28 for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 04:21:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvlDe-000332-GJ for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 04:20:54 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvlDd-00032t-VJ for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 04:20:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SvlKb-00086s-Sj for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 04:28:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: joseph@photosessionsltd.com Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jul 2012 08:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12050 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12050-submit@debbugs.gnu.org id=B12050.134363684931131 (code B ref 12050); Mon, 30 Jul 2012 08:28:01 +0000 Original-Received: (at 12050) by debbugs.gnu.org; 30 Jul 2012 08:27:29 +0000 Original-Received: from localhost ([127.0.0.1]:49875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvlK5-000864-Cz for submit@debbugs.gnu.org; Mon, 30 Jul 2012 04:27:29 -0400 Original-Received: from server208.nhsdns.com ([64.22.111.162]:33704) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvlK3-00085w-4z for 12050@debbugs.gnu.org; Mon, 30 Jul 2012 04:27:28 -0400 Original-Received: from localhost ([127.0.0.1]:39712 helo=server208.nhsdns.com) by server208.nhsdns.com with esmtpa (Exim 4.77) (envelope-from ) id 1SvlD1-0004b9-QS; Mon, 30 Jul 2012 04:20:11 -0400 Original-Received: from 173.76.125.145 ([173.76.125.145]) (SquirrelMail authenticated user joseph@photosessionsltd.com) by server208.nhsdns.com with HTTP; Mon, 30 Jul 2012 04:20:11 -0400 In-Reply-To: <83ehnuh435.fsf@gnu.org> User-Agent: SquirrelMail/1.4.22 X-Priority: 3 (Normal) Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server208.nhsdns.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - photosessionsltd.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62611 Archived-At: with src/xdisp.c 22736 fix (24.1 line numbers differ by ~300 but context is correct): run -q -fn -adobe-times-bold-r-normal--0-0-0-0-p-0-iso8859-15 does not crash emacs but mode-line is completely undecipherable. each char appears to have an octal representation of a char inside a rectangular box run -q -fn -adobe-times-medium-r-normal--0-0-0-0-p-0-iso8859-15 crash at xfaces.c:4841 4841 if (! EQ (face->font->props[i], def_face->font->props[i])) (gdb) print def_face->font $2 = (struct font *) 0x0 run -q -fn -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-15 crash at xfaces.c:4841 4841 if (! EQ (face->font->props[i], def_face->font->props[i])) (gdb) print def_face->font $2 = (struct font *) 0x0 run -q -fn -adobe-helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-15 crash at xfaces.c:4841 4841 if (! EQ (face->font->props[i], def_face->font->props[i])) (gdb) print def_face->font $2 = (struct font *) 0x0 >> Date: Sun, 29 Jul 2012 07:44:16 -0400 >> From: joseph@photosessionsltd.com >> >> with the gdb command >> run -q -fn -adobe-times-bold-r-normal--0-0-0-0-p-0-iso8859-15 >> the crash occurs at xterm.c:1216 >> 1216 else if (FONT_HEIGHT (s->font) < s->height - 2 * box_line_width > > This is fixed in the development sources, patch below. > >> with the gdb command >> run -q -fn -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-15 >> the crash occurs at xfaces.c:4841 >> 4841 if (! EQ (face->font->props[i], def_face->font->props[i])) > > Why does this crash? is def_face->font a NULL pointer or something? > >> recall that the times line crashes in 23.3 and 24.1 and the helvetica >> line >> works fine in 23.3 and crashes in 24.1. > > Note that both fonts are bold. If you use the non-bold variant of the > same font, does the problem go away? > > --- src/xdisp.c 2012-07-07 21:39:45 +0000 > +++ src/xdisp.c 2012-07-08 15:49:39 +0000 > @@ -22736,7 +22736,7 @@ fill_glyphless_glyph_string (struct glyp > last = s->row->glyphs[s->area] + end; > voffset = glyph->voffset; > s->face = FACE_FROM_ID (s->f, face_id); > - s->font = s->face->font; > + s->font = s->face->font ? s->face->font : FRAME_FONT (s->f); > s->nchars = 1; > s->width = glyph->pixel_width; > glyph++; > >