[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Crash with --enable-checking and some glyphs
From: |
Eli Zaretskii |
Subject: |
Re: Crash with --enable-checking and some glyphs |
Date: |
Sat, 27 Nov 2021 17:12:40 +0200 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: rpluim@gmail.com, emacs-devel@gnu.org
> Date: Sat, 27 Nov 2021 15:04:56 +0100
>
> if (it->char_to_display != '\n' && it->char_to_display != '\t')
> {
> it->nglyphs = 1;
>
> if (it->override_ascent >= 0)
> {
> it->ascent = it->override_ascent;
> it->descent = it->override_descent;
> boff = it->override_boff;
> }
> else
> {
> it->ascent = FONT_BASE (font) + boff;
> it->descent = FONT_DESCENT (font) - boff;
> }
>
> And boff is 3 because of:
>
> boff = font->baseline_offset;
> if (font->vertical_centering)
> boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
>
> (gdb) print font->vertical_centering
> $17 = true
>
>
> And we don't apply these sanity checks in this case:
>
> /* These limitations are enforced by an
> assertion near the end of this function. */
> if (it->ascent < 0)
> it->ascent = 0;
> if (it->descent < 0)
> it->descent = 0;
Right, I added a similar limitation, because I don't see what else
could we do in cases such as this one. I do wonder why others didn't
see the same problem in a very similar build on the same system.
- Re: Crash with --enable-checking and some glyphs, (continued)
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Eli Zaretskii, 2021/11/25
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Eli Zaretskii, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Eli Zaretskii, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Eli Zaretskii, 2021/11/26
- Re: Crash with --enable-checking and some glyphs, Eli Zaretskii, 2021/11/27
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/27
- Re: Crash with --enable-checking and some glyphs,
Eli Zaretskii <=
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/27
- Re: Crash with --enable-checking and some glyphs, Po Lu, 2021/11/27
- Re: Crash with --enable-checking and some glyphs, Gregory Heytings, 2021/11/27
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/27
- Re: Crash with --enable-checking and some glyphs, Gregory Heytings, 2021/11/27
- Re: Crash with --enable-checking and some glyphs, Eli Zaretskii, 2021/11/28
- Re: Crash with --enable-checking and some glyphs, Gregory Heytings, 2021/11/29
- Re: Crash with --enable-checking and some glyphs, Lars Ingebrigtsen, 2021/11/29
- Re: Crash with --enable-checking and some glyphs, Óscar Fuentes, 2021/11/25
- Re: Crash with --enable-checking and some glyphs, Gregor Zattler, 2021/11/25