From: Dmitry Antipov <dmantipov@yandex.ru>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: About a crash in copy_font_spec
Date: Wed, 23 Oct 2013 09:53:47 +0400 [thread overview]
Message-ID: <5267646B.9060405@yandex.ru> (raw)
In-Reply-To: <526749C8.6050607@yandex.ru>
[-- Attachment #1: Type: text/plain, Size: 174 bytes --]
On 10/23/2013 08:00 AM, Dmitry Antipov wrote:
> Could you please try this?
Argh, these should be marked in order -
frame first, additional frame resources next...
Dmitry
[-- Attachment #2: mark_frame_font_2.patch --]
[-- Type: text/x-patch, Size: 656 bytes --]
=== modified file 'src/alloc.c'
--- src/alloc.c 2013-10-21 14:11:25 +0000
+++ src/alloc.c 2013-10-23 05:49:52 +0000
@@ -5951,8 +5951,21 @@
break;
case PVEC_FRAME:
- mark_vectorlike (ptr);
- mark_face_cache (((struct frame *) ptr)->face_cache);
+ {
+ struct frame *f = (struct frame *) ptr;
+
+ mark_vectorlike (ptr);
+ mark_face_cache (f->face_cache);
+#ifdef HAVE_WINDOW_SYSTEM
+ if (FRAME_WINDOW_P (f))
+ {
+ struct font *font = FRAME_FONT (f);
+
+ if (font && !VECTOR_MARKED_P (font))
+ mark_vectorlike ((struct Lisp_Vector *) font);
+ }
+#endif
+ }
break;
case PVEC_WINDOW:
next prev parent reply other threads:[~2013-10-23 5:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 17:23 About a crash in copy_font_spec martin rudalics
2013-10-22 17:32 ` martin rudalics
2013-10-23 4:00 ` Dmitry Antipov
2013-10-23 5:53 ` Dmitry Antipov [this message]
2013-10-23 6:29 ` martin rudalics
2013-10-23 7:34 ` martin rudalics
2013-10-23 8:44 ` martin rudalics
2013-10-23 9:45 ` Dmitry Antipov
2013-10-23 16:53 ` martin rudalics
2013-10-23 6:06 ` martin rudalics
2013-10-23 6:17 ` Dmitry Antipov
2013-10-23 6:29 ` martin rudalics
2013-10-23 7:21 ` Dmitry Antipov
2013-10-23 7:34 ` martin rudalics
2013-10-23 15:20 ` Eli Zaretskii
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=5267646B.9060405@yandex.ru \
--to=dmantipov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=rudalics@gmx.at \
/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).