GNU bug report logs - #3605
Crash in ns_index_color (nsterm.m:1305)

Previous Next

Packages: emacs, ns;

Reported by: David Reitter <david.reitter <at> gmail.com>

Date: Thu, 18 Jun 2009 15:05:04 UTC

Severity: normal

Merged with 3606, 4530, 4532

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #54 received at 3605 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Mike <deactivated <at> gmail.com>
Cc: 3605 <at> debbugs.gnu.org
Subject: Re: Crash in ns_index_color (nsterm.m:1305)
Date: Sun, 31 Jan 2010 00:24:41 -0500
> I spent some more time looking at this, and I think I've found the problem:
>
> ns_defined_color needs to block input around its calls to ns_get_color
> and (at least) ns_index_color.  ns_get_color calls UNBLOCK_INPUT after
> allocating an autorelease NSColor.  Because the outer autorelease pool
> is flushed every time through the event loop, sometimes the color gets
> freed before ns_index_color has a chance to retain it.
>
> As a reliable test case, try loading the color palette from
> http://www.emacswiki.org/cgi-bin/wiki/palette.el

Thanks.  As you suggested, I have checked in a change to nsterm.m to
block input during ns_defined_color.  Could you test if the crash is
gone?




This bug report was last modified 12 years and 346 days ago.

Previous Next


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