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.bugs Subject: bug#60580: 29.0.60; crash in xdisp.c with modus theme and display-fill-column-indicator Date: Thu, 05 Jan 2023 21:57:39 +0200 Message-ID: <83h6x4wy8c.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14140"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60580@debbugs.gnu.org To: chad Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 05 20:58:32 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1pDWNj-0003WN-9x for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Jan 2023 20:58:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pDWNM-0007KP-4H; Thu, 05 Jan 2023 14:58:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDWNG-0007Jo-Sv for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 14:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pDWNG-0005jA-Km for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 14:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pDWNG-00037t-GY for bug-gnu-emacs@gnu.org; Thu, 05 Jan 2023 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Jan 2023 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60580 X-GNU-PR-Package: emacs Original-Received: via spool by 60580-submit@debbugs.gnu.org id=B60580.167294865111978 (code B ref 60580); Thu, 05 Jan 2023 19:58:02 +0000 Original-Received: (at 60580) by debbugs.gnu.org; 5 Jan 2023 19:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:52949 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDWMk-000377-Rw for submit@debbugs.gnu.org; Thu, 05 Jan 2023 14:57:31 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pDWMj-00036v-Id for 60580@debbugs.gnu.org; Thu, 05 Jan 2023 14:57:29 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pDWMe-0005ap-AN; Thu, 05 Jan 2023 14:57:24 -0500 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=YdUw7cof1pKngHd+8vj0JKo/+vXv7oeAk4BEjFxgYRo=; b=jHmKs8XrsrXy Q49cihyhnd2nU5zHPw1GDmm1J45bv/umS7tLerWu9REIwDK2M/o7q5VEzgGBzQ9cfNp1aQVAq3xs8 xCKzf37aStGSp206wo2KplaRzGR7AXNuwbjWjTxwB3s52oJOSxVocYSFNCK+EvadwQ2+rwH6DuP6g 1PUATqZfduMwJpqoEhcy3IQe31AoNOw5STmYLnDsA3JX8HKnO1ifdtHL3e/qR8nPgCQKSV6CV2MVO 7LapzKHCgejfwIDkAz452Z6X+QjZLfOA/pO2+eaeScR0EyWFCHsbzSA4/ks1UNzEYNCDmvL49gilN 2FDOingyfIfkMakLXM3log==; Original-Received: from [87.69.77.57] (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 1pDWMd-0004oN-Nk; Thu, 05 Jan 2023 14:57:24 -0500 In-Reply-To: (message from chad on Thu, 5 Jan 2023 14:19:48 -0500) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252633 Archived-At: > From: chad > Date: Thu, 5 Jan 2023 14:19:48 -0500 > > From emacs -q, evaluate: > > (custom-set-variables '(custom-enabled-themes '(modus-vivendi))) > (global-display-fill-column-indicator-mode 1) > > Emacs will fail the eassert in append_stretch_glyph at > xdisp.c:30993. Doesn't happen here. What is your default face's font with that theme? > Looking at it in gdb, append_stretch_glyph is passed an > it with both ascent=descent=1 and height=11. I don't understand: if ascent=descent=1 and height=11, then how come the condition eassert (ascent >= 0 && ascent <= height); fails to be true? The backtrace tells a different story: > #1 0x0000555555823630 in die > (msg=0x555555991b70 "ascent >= 0 && ascent <= height", file=0x55555598b48f "xdisp.c", line=30993) at alloc.c:7706 > #2 0x00005555556388a2 in append_stretch_glyph > (it=0x7fffffff8430, object=XIL(0), width=639, height=2, ascent=11) > at xdisp.c:30993 It says here that height = 2 and ascent = 11. Which is very strange. Can you tell what happens here (line 23325): const int stretch_ascent = (((it->ascent + it->descent) * FONT_BASE (font)) / FONT_HEIGHT (font)); What are the values of the following at that line: FONT_BASE (font) FONT_HEIGHT (font) it->ascent it->descent stretch_ascent