From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Problem report #16 Date: Wed, 12 Apr 2006 10:41:27 -0700 Message-ID: <200604121741.k3CHfRrO029529@amrm2.ics.uci.edu> References: <200604111548.k3BFmtRQ015112@scanner2.ics.uci.edu> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144863714 18614 80.91.229.2 (12 Apr 2006 17:41:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2006 17:41:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 12 19:41:49 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTjLg-0000xl-9s for ged-emacs-devel@m.gmane.org; Wed, 12 Apr 2006 19:41:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTjLf-00020w-Hx for ged-emacs-devel@m.gmane.org; Wed, 12 Apr 2006 13:41:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FTjLR-00020S-E9 for emacs-devel@gnu.org; Wed, 12 Apr 2006 13:41:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FTjLN-0001zu-Tr for emacs-devel@gnu.org; Wed, 12 Apr 2006 13:41:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTjLN-0001zr-QO for emacs-devel@gnu.org; Wed, 12 Apr 2006 13:41:29 -0400 Original-Received: from [128.195.11.178] (helo=amrm2.ics.uci.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FTjQW-00075l-7o for emacs-devel@gnu.org; Wed, 12 Apr 2006 13:46:48 -0400 Original-Received: from amrm2.ics.uci.edu (amrm2.ics.uci.edu [127.0.0.1]) by amrm2.ics.uci.edu (8.13.6/8.13.6) with ESMTP id k3CHfSIk029530 for ; Wed, 12 Apr 2006 10:41:28 -0700 Original-Received: (from dann@localhost) by amrm2.ics.uci.edu (8.13.6/8.13.6/Submit) id k3CHfRrO029529; Wed, 12 Apr 2006 10:41:27 -0700 Original-To: emacs-devel@gnu.org In-Reply-To: <200604111548.k3BFmtRQ015112@scanner2.ics.uci.edu> (Dan Nicolaescu's message of "Tue, 11 Apr 2006 08:48:55 -0700") Original-Lines: 55 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:52791 Archived-At: Dan Nicolaescu writes: > CID: 16 > Checker: FORWARD_NULL (help) > File: emacs/src/fontset.c > Function: fs_load_font > Description: Variable "face" tracked as NULL was dereferenced. > > Event var_compare_op: Added "face" due to comparison "face != 0" > Also see events: [var_deref_op] > At conditional (1): "face != 0" taking false path > > 667 if (face) > 668 id = face->fontset; > > At conditional (2): "id < 0" taking true path > > 669 if (id < 0) > 670 fontset = Qnil; > 671 else > 672 fontset = FONTSET_FROM_ID (id); > 673 > > At conditional (3): "fontset != Qnil" taking true path > At conditional (4): "(fontset & -8)->parent != Qnil" taking true path > > 674 if (!NILP (fontset) > 675 && !BASE_FONTSET_P (fontset)) > 676 { > 677 elt = FONTSET_REF_VIA_BASE (fontset, c); > > At conditional (5): "elt != Qnil" taking true path > > 678 if (!NILP (elt)) > 679 { > 680 /* A suitable face for C is already recorded, which means > 681 that a proper font is already loaded. */ > 682 int face_id = XINT (elt); > 683 > 684 xassert (face_id == face->id); > > At conditional (6): "face_id < ((f)->face_cache)->used" taking false path > > 685 face = FACE_FROM_ID (f, face_id); > > Event var_deref_op: Variable "face" tracked as NULL was dereferenced. > Also see events: [var_compare_op] > > 686 return (*get_font_info_func) (f, face->font_info_id); > 687 } This problem could happen if fs_load_font was called with face=NULL and id>0. Can that happen?