From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: struct face question Date: Fri, 16 Sep 2022 10:42:20 +0300 Message-ID: <83illn4vfn.fsf@gnu.org> References: <87o7vfx4ni.fsf.ref@yahoo.com> <87o7vfx4ni.fsf@yahoo.com> <83leqj4xvh.fsf@gnu.org> <87fsgrwza4.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38494"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 16 09:43:09 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZ60D-0009rJ-Dt for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 09:43:09 +0200 Original-Received: from localhost ([::1]:45166 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oZ60C-0003DF-Aj for ged-emacs-devel@m.gmane-mx.org; Fri, 16 Sep 2022 03:43:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ5zY-0002Sv-2p for emacs-devel@gnu.org; Fri, 16 Sep 2022 03:42:28 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51892) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ5zX-0002uO-RI; Fri, 16 Sep 2022 03:42:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iKSdZTGmBHolBQGIpwkY5fwoDZWXFRWPPfzflNULHTQ=; b=KWYp/+ABerEl 3b7/e1pVO/vbyJ/dzncqMEs/Ifpc2T2dUWPuA7iefSFSCq/olryZWifu3JPRVROwEJoqZSyaoPTSa JXMvt8m8ScfLUvm5cHLM/RygYBhqQitRy9xPXIzla/kMb3/TRCnyh2rq20yqB7dIUwTyGzFelqf8h yZCuFaTmSQ9CXwDF8fjr7cHkQTYVSOc+wjwWh5sWgWalNO0Ib9llaJZXt+AiZ8mpFkAeHyqmkxXWA dZ5RDQGV0iJUx5jO+m+HLBlkykfF8RWMUWjqhuLX3AoMKmGBbeyc+vr3ZO9Ezdr1iUiYIw9rD46Dn xe6eYRkmUEgtpu9fGf+FqA==; Original-Received: from [87.69.77.57] (port=4914 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oZ5zW-0002Ly-71; Fri, 16 Sep 2022 03:42:26 -0400 In-Reply-To: <87fsgrwza4.fsf@yahoo.com> (message from Po Lu on Fri, 16 Sep 2022 15:31:47 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295459 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Fri, 16 Sep 2022 15:31:47 +0800 > > Eli Zaretskii writes: > > >> leading to face_for_char aborting from face->fontset being -1 later on. > > > > Please show a full backtrace from the crash, and preferably also a > > reproducer. What character are we trying to display in that case? > > In that specific case, a newline character. But the problem can also be > easily reproduced with the following code: > > (insert (propertize "foo" 'face '(:height 0.1))) > > as long as no core font of that height is installed. The assertion that triggers is too early: we don't use the fontset information before this part: fontset = FONTSET_FROM_ID (face->fontset); eassert (!BASE_FONTSET_P (fontset)); So does the problem go away if you move the assertion before the first of these two lines?