all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: Kenichi Handa <handa@m17n.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, 3158@emacsbugs.donarmstrong.com
Subject: bug#3158: 23.0.92; assertion failure in fontset_find_font
Date: Thu, 30 Apr 2009 14:54:37 +0900	[thread overview]
Message-ID: <wlljpiu1nm.wl%mituharu@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <E1LzOFv-0005Cv-Id@etlken>

>>>>> On Thu, 30 Apr 2009 13:52:19 +0900, Kenichi Handa <handa@m17n.org> said:

>> >   1. Compile Emacs with "make CFLAGS='-g -DENABLE_CHECKING'"
>> >   2. emacs -Q
>> >   3. M-x list-charset-chars RET mac-roman RET
>> >
>> >   .../src/fontset.c:551: Emacs fatal error: assertion failed:
>> >   VECTORLIKEP((rfont_def))
>> >
>> > The value of rfont_def is nil when this failure happens.

>> I think the relevant code in fontset_find_font needs to check when
>> rfont_def is nil, and ignore those values.  Handa-san, could you verify?

> I fixed it by breaking the loop instead of ignoring that
> element because rfont_def nil means "don't try the remaining
> fonts and the fallback fonts".

I still have an assertion violation with the above procedure at a
different line:

...src/fontset.c:634: Emacs fatal error: assertion failed: VECTORLIKEP((rfont_def))

#3  0x0024256c in fontset_find_font (fontset=17306132, c=57374, face=0x10877e0, id=147, fallback=0) at /Users/mituharu/src/cvs/emacs-23/emacs/src/fontset.c:634
634		  if (! EQ (RFONT_DEF_FONT_DEF (rfont_def), font_def))
(gdb) list
629		 and supporting C. */
630	      font_def = RFONT_DEF_FONT_DEF (rfont_def);
631	      for (i++; i < ASIZE (vec); i++)
632		{
633		  rfont_def = AREF (vec, i);
634		  if (! EQ (RFONT_DEF_FONT_DEF (rfont_def), font_def))
635		    break;
636		  font_object = RFONT_DEF_OBJECT (AREF (vec, i));
637		  if (! NILP (font_object) && font_has_char (f, font_object, c))
638		    return rfont_def;
(gdb) call debug_print (rfont_def)
nil
(gdb) call debug_print (vec)
[[nil [#<font-spec nil nil nil nil iso10646-1 nil nil nil nil nil nil nil nil> 142 nil] #<font-object "-bitstream-Bitstream Vera Sans Mono-normal-normal-normal-*-12-*-*-*-m-0-iso10646-1"> 0] nil]
(gdb) p i
$1 = 1

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp






  parent reply	other threads:[~2009-04-30  5:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-30  3:11 bug#3158: 23.0.92; assertion failure in fontset_find_font Chong Yidong
     [not found] ` <E1LzOFv-0005Cv-Id@etlken>
2009-04-29  1:58   ` YAMAMOTO Mitsuharu
2009-04-30  5:00     ` bug#3158: marked as done (23.0.92; assertion failure in fontset_find_font) Emacs bug Tracking System
2009-04-30  5:54   ` YAMAMOTO Mitsuharu [this message]
2009-04-30  7:06     ` bug#3158: 23.0.92; assertion failure in fontset_find_font Kenichi Handa
2009-04-30  7:38       ` YAMAMOTO Mitsuharu

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=wlljpiu1nm.wl%mituharu@math.s.chiba-u.ac.jp \
    --to=mituharu@math.s.chiba-u.ac.jp \
    --cc=3158@emacsbugs.donarmstrong.com \
    --cc=cyd@stupidchicken.com \
    --cc=handa@m17n.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 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.