From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#3158: 23.0.92; assertion failure in fontset_find_font Date: Thu, 30 Apr 2009 14:54:37 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <877i12hm3e.fsf@cyd.mit.edu> Reply-To: YAMAMOTO Mitsuharu , 3158@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1241071964 2123 80.91.229.12 (30 Apr 2009 06:12:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2009 06:12:44 +0000 (UTC) Cc: Chong Yidong , 3158@emacsbugs.donarmstrong.com To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 30 08:12:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LzPV8-0000Yx-GN for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Apr 2009 08:12:06 +0200 Original-Received: from localhost ([127.0.0.1]:49995 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzPV7-0006xt-S3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Apr 2009 02:12:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzPV2-0006xE-KW for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 02:12:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzPUw-0006wO-QR for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 02:11:59 -0400 Original-Received: from [199.232.76.173] (port=49001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzPUw-0006wF-IO for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 02:11:54 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33291) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzPUw-0001D2-3z for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 02:11:54 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3U6BpwT004230; Wed, 29 Apr 2009 23:11:52 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3U6032O032128; Wed, 29 Apr 2009 23:00:03 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 30 Apr 2009 06:00:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3158 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3158-submit@emacsbugs.donarmstrong.com id=B3158.124107088230737 (code B ref 3158); Thu, 30 Apr 2009 06:00:03 +0000 Original-Received: (at 3158) by emacsbugs.donarmstrong.com; 30 Apr 2009 05:54:42 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mathmail.math.s.chiba-u.ac.jp (mathmail.math.s.chiba-u.ac.jp [133.82.132.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3U5sc2L030731 for <3158@emacsbugs.donarmstrong.com>; Wed, 29 Apr 2009 22:54:40 -0700 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 8C20D2C48; Thu, 30 Apr 2009 14:54:37 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 30 Apr 2009 02:11:59 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27563 Archived-At: >>>>> On Thu, 30 Apr 2009 13:52:19 +0900, Kenichi Handa 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 [# 142 nil] # 0] nil] (gdb) p i $1 = 1 YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp