all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 08:00:08 +0400	[thread overview]
Message-ID: <526749C8.6050607@yandex.ru> (raw)
In-Reply-To: <5266B6A0.6050105@gmx.at>

[-- Attachment #1: Type: text/plain, Size: 365 bytes --]

On 10/22/2013 09:32 PM, martin rudalics wrote:

>> After boostrapping one of my patched trunk i686-pc-mingw32 Emacsen, it
>> reliably crashes with the following backtrace.
>
> P.S.: I can reproduce it with trunk as well, almost identic backtrace, but
> not yet with emacs -Q.  As soon as I have a recipe I'll send a bug report.

Could you please try this?

Dmitry


[-- Attachment #2: mark_frame_font.patch --]
[-- Type: text/x-patch, Size: 664 bytes --]

=== modified file 'src/alloc.c'
--- src/alloc.c	2013-10-21 14:11:25 +0000
+++ src/alloc.c	2013-10-23 03:55:36 +0000
@@ -5951,8 +5951,20 @@
 	    break;
 
 	  case PVEC_FRAME:
-	    mark_vectorlike (ptr);
-	    mark_face_cache (((struct frame *) ptr)->face_cache);
+	    {
+	      struct frame *f = (struct frame *) ptr;
+#ifdef HAVE_WINDOW_SYSTEM
+	      if (FRAME_WINDOW_P (f))
+		{
+		  struct font *font = FRAME_X_OUTPUT (f)->font;
+
+		  if (font && !VECTOR_MARKED_P (font))
+		    mark_vectorlike ((struct Lisp_Vector *) font);
+		}
+#endif
+	      mark_vectorlike (ptr);
+	      mark_face_cache (f->face_cache);
+	    }
 	    break;
 
 	  case PVEC_WINDOW:


  reply	other threads:[~2013-10-23  4:00 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 [this message]
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
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=526749C8.6050607@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.