From owner-freebsd-questions@FreeBSD.ORG Wed Apr 29 21:41:47 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80216106566C for ; Wed, 29 Apr 2009 21:41:47 +0000 (UTC) (envelope-from dave@hardman.name) Received: from flexo.grapevine.net.au (flexo.grapevine.net.au [203.129.32.140]) by mx1.freebsd.org (Postfix) with ESMTP id 159998FC0C for ; Wed, 29 Apr 2009 21:41:46 +0000 (UTC) (envelope-from dave@hardman.name) Received: from localhost (localhost [127.0.0.1]) by flexo.grapevine.net.au (Postfix) with ESMTP id C609D583A4F for ; Thu, 30 Apr 2009 07:41:44 +1000 (EST) Received: from flexo.grapevine.net.au ([127.0.0.1]) by localhost (flexo.grapevine.net.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 78SSrB+6pzXJ for ; Thu, 30 Apr 2009 07:41:44 +1000 (EST) Received: from loc.alh.ost (ppp-39.56.129.203.grapevine.net.au [203.129.56.39]) by flexo.grapevine.net.au (Postfix) with ESMTP id 50D1F583A4A for ; Thu, 30 Apr 2009 07:41:44 +1000 (EST) Date: Thu, 30 Apr 2009 07:41:44 +1000 From: Dave Hardman To: freebsd-questions@freebsd.org Message-ID: <20090429214144.GA26009@loc.alh.ost> References: <20090429174842.8E786A40EE@maxine.cjones.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="2fHTh5uZTiUOsy+g" Content-Disposition: inline In-Reply-To: <20090429174842.8E786A40EE@maxine.cjones.org> User-Agent: Mutt/1.4.2.3i Subject: Re: Gnucash 2.2.7_2 after upgrade to Firefox 3.0.9 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Apr 2009 21:41:47 -0000 --2fHTh5uZTiUOsy+g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 29, 2009 at 11:48:42AM -0600, Keith Seyffarth wrote: > > Is anyone else having issues wit Gnucash 2.2.7 crashing when you try > to open an account after portupgrading Firefox in response to security > audit reports from about a week ago? [...] > Ideas? Thoughts? Suggestions? > > Keith S. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" I had the same problem; the attached patch (supplied by Sebastian Held from gnucash.org) fixed the problem. Dave Hardman. --2fHTh5uZTiUOsy+g Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="gnucash-2.2.7-crash.patch" Index: /home/sebastian/src/gnucash-2.2/src/register/register-gnome/gnucash-style.c =================================================================== --- /home/sebastian/src/gnucash-2.2/src/register/register-gnome/gnucash-style.c (.../trunk/src/register/register-gnome/gnucash-style.c) (Revision 13692) +++ /home/sebastian/src/gnucash-2.2/src/register/register-gnome/gnucash-style.c (.../branches/2.2/src/register/register-gnome/gnucash-style.c) (Revision 18054) @@ -48,7 +48,16 @@ return &key; } +static gpointer +style_create_key (SheetBlockStyle *style) +{ + static gint key; + key = style->cursor->num_rows; + + return g_memdup(&key, sizeof(key)); +} + static void cell_dimensions_construct (gpointer _cd, gpointer user_data) { @@ -103,7 +112,7 @@ if (!dimensions) { dimensions = style_dimensions_new (style); g_hash_table_insert (sheet->dimensions_hash_table, - style_get_key (style), dimensions); + style_create_key (style), dimensions); } dimensions->refcount++; --2fHTh5uZTiUOsy+g--