GNU bug report logs - #45156
28.0.50; Segfault due to glyph_row being set to NULL

Previous Next

Package: emacs;

Reported by: Torsten Bronger <bronger <at> physik.rwth-aachen.de>

Date: Thu, 10 Dec 2020 07:57:01 UTC

Severity: normal

Found in version 28.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Torsten Bronger <bronger <at> physik.rwth-aachen.de>, 45156 <at> debbugs.gnu.org
Subject: bug#45156: 28.0.50; Segfault due to glyph_row being set to NULL
Date: Thu, 10 Dec 2020 02:35:52 -0600
[Message part 1 (text/plain, inline)]
Torsten Bronger <bronger <at> physik.rwth-aachen.de> writes:

> I see Emacs segfaulting when moving the cursor upwards in a LaTeX
> document while tex-fold-mode is active.  The starting position of the
> cursor is important.
>
> I placed all files to reproduce the bug at
> <http://wilson.bronger.org/emacs-glyph_row-bug.tar>.  The TeX file needs

I've attached the relevant file test.tex here.

> to be put in /tmp.  tex-fold-mode must be present.  Furthermore, place
> .emacs and .emacs.desktop in the proper positions, start current Git
> Emacs, and press the "cursor up" button.  Then, Emacs crashes for me.

Here are the steps I followed:

0. Install auctex
1. Put test.tex in /tmp
2. emacs -Q
3. C-x C-f /tmp/test.tex
4. <up>

But I did not see any crash.  Are any other steps needed to reproduce
this?

Could you also produce a backtrace of the problem?  You can find
instructions for doing that by typing `C-h C-d'.  Don't forget to
rebuild Emacs with debugging symbols first.

> The subject of this bug is just to give it a name.  I do not know
> whether glyph_row is the issue.  However, I bisected the problem, and it
> started with commit f425a774, which sets glyph_row to NULL in two
> places.  If I revert this commit, the problem is gone.
[test.tex (text/x-tex, attachment)]

This bug report was last modified 4 years and 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.