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 13:45:39 +0400 [thread overview]
Message-ID: <52679AC3.3020202@yandex.ru> (raw)
In-Reply-To: <52678C5D.3010202@gmx.at>
[-- Attachment #1: Type: text/plain, Size: 363 bytes --]
On 10/23/2013 12:44 PM, martin rudalics wrote:
>> Maybe not really. Just got another crash in trunk ...
Hmm...just got something similar on GNU/Linux, but hopefully fix
with attached patch. If it doesn't help you, could you please
recompile with "make CPPFLAGS='-DGC_CHECK_MARKED_OBJECTS=1'"
and try to see whether some bogus objects are encountered?
Dmitry
[-- Attachment #2: mark_frame_font_3.patch --]
[-- Type: text/x-patch, Size: 678 bytes --]
=== modified file 'src/alloc.c'
--- src/alloc.c 2013-10-21 14:11:25 +0000
+++ src/alloc.c 2013-10-23 09:44:29 +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) && FRAME_X_OUTPUT (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 9:45 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
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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52679AC3.3020202@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.