From: Paul Eggert <eggert@cs.ucla.edu>
To: Robert Marshall <robert@capuchin.co.uk>
Cc: 20890@debbugs.gnu.org
Subject: bug#20890: 25.0.50; build from git crashes on startup
Date: Sun, 26 Jul 2015 13:30:41 -0700 [thread overview]
Message-ID: <55B54371.4000907@cs.ucla.edu> (raw)
In-Reply-To: <87vbede71o.fsf@capuchin.co.uk>
[-- Attachment #1: Type: text/plain, Size: 279 bytes --]
Thanks for the bug report. From the backtrace it appears that ftfont_close's
implementation incorrectly assumes that ftfont_close can't be called from the
garbage collector. I've installed the attached FIXME comment and am CC'ing
Kenichi Handa, who's an expert in ftfont.c.
[-- Attachment #2: 0001-src-ftfont.c-ftfont_close-Add-comment-re-Bug-20890.patch --]
[-- Type: text/x-diff, Size: 860 bytes --]
From bcba2b845e35ebdbaf4d869d1b1a1a065e1c42a3 Mon Sep 17 00:00:00 2001
From: Paul Eggert <eggert@cs.ucla.edu>
Date: Sun, 26 Jul 2015 13:23:08 -0700
Subject: [PATCH] * src/ftfont.c (ftfont_close): Add comment re Bug#20890.
---
src/ftfont.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/ftfont.c b/src/ftfont.c
index b37b404..41d99df 100644
--- a/src/ftfont.c
+++ b/src/ftfont.c
@@ -1315,6 +1315,10 @@ ftfont_open (struct frame *f, Lisp_Object entity, int pixel_size)
static void
ftfont_close (struct font *font)
{
+ /* FIXME: Although this function can be called while garbage-collecting,
+ the function assumes that Lisp data structures are properly-formed.
+ This invalid assumption can lead to core dumps (Bug#20890). */
+
struct ftfont_info *ftfont_info = (struct ftfont_info *) font;
Lisp_Object val, cache;
--
2.1.0
next prev parent reply other threads:[~2015-07-26 20:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20180403152442.25413.61540@vcs0.savannah.gnu.org>
[not found] ` <20180403152443.B15F6215A9@vcs0.savannah.gnu.org>
[not found] ` <87a7ukc4zn.fsf@gmail.com>
[not found] ` <83k1tn4h4f.fsf@gnu.org>
2015-06-24 10:26 ` bug#20890: 25.0.50; build from git crashes on startup Robert Marshall
2015-07-26 20:30 ` Paul Eggert [this message]
2018-04-03 9:39 ` Robert Pluim
2018-04-03 10:06 ` Eli Zaretskii
2018-04-03 15:03 ` Paul Eggert
2018-04-03 15:13 ` Eli Zaretskii
2018-04-03 15:26 ` Paul Eggert
2018-04-04 8:52 ` bug#20890: master 1233bcb: Work around GC+Cairo bug Robert Pluim
2018-04-04 9:08 ` Eli Zaretskii
2018-04-04 12:10 ` Robert Pluim
2018-04-04 13:44 ` Eli Zaretskii
2018-04-04 18:00 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55B54371.4000907@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=20890@debbugs.gnu.org \
--cc=robert@capuchin.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).