Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2009 07:41:44 +1000
From:      Dave Hardman <dave@hardman.name>
To:        freebsd-questions@freebsd.org
Subject:   Re: Gnucash 2.2.7_2 after upgrade to Firefox 3.0.9
Message-ID:  <20090429214144.GA26009@loc.alh.ost>
In-Reply-To: <20090429174842.8E786A40EE@maxine.cjones.org>
References:  <20090429174842.8E786A40EE@maxine.cjones.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090429214144.GA26009>