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

Previous Next

Packages: ns, emacs;

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


View this message in rfc822 format

From: Mike <deactivated <at> gmail.com>
To: 3605 <at> debbugs.gnu.org
Subject: bug#3605: Crash in ns_index_color (nsterm.m:1305)
Date: Wed, 21 Oct 2009 17:05:20 -0700
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



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.