AUDIT: r21665 - gnucash/trunk/src/gnc-module - Bug #661383 - GnuCash segfault on Linux (Fedora 16 beta) because of

Geert Janssens gjanssens at code.gnucash.org
Sun Dec 4 12:34:38 EST 2011


Author: gjanssens
Date: 2011-12-04 12:34:37 -0500 (Sun, 04 Dec 2011)
New Revision: 21665
Trac: http://svn.gnucash.org/trac/changeset/21665

Modified:
   gnucash/trunk/src/gnc-module/gnc-module.c
Log:
Bug #661383 - GnuCash segfault on Linux (Fedora 16 beta) because of
shared library load / unload weirdness
BP

Modified: gnucash/trunk/src/gnc-module/gnc-module.c
===================================================================
--- gnucash/trunk/src/gnc-module/gnc-module.c	2011-12-04 11:05:17 UTC (rev 21664)
+++ gnucash/trunk/src/gnc-module/gnc-module.c	2011-12-04 17:34:37 UTC (rev 21665)
@@ -279,7 +279,7 @@
     gchar * (* f_descrip)(void);
 
     /*   g_debug("(init) dlopening '%s'\n", fullpath); */
-    gmodule = g_module_open(fullpath, G_MODULE_BIND_MASK);
+    gmodule = g_module_open(fullpath, G_MODULE_BIND_LAZY);
     if (gmodule == NULL)
     {
         g_warning("Failed to dlopen() '%s': %s\n", fullpath, g_module_error());
@@ -323,7 +323,7 @@
     info->module_age         = *(int *)age;
     info->module_revision    = *(int *)revision;
 
-
+    g_module_make_resident(gmodule);
 get_info_close:
     /*   g_debug("(init) closing '%s'\n", fullpath); */
     g_module_close(gmodule);



More information about the gnucash-changes mailing list