Changeset: 5a76b085afbe for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5a76b085afbe
Modified Files:
        gdk/gdk_utils.mx
Branch: Mar2011
Log Message:

Make sure we initialize the HEAPcache before we (potentially) use it in the 
first BATnew().

This fixes a segfault during server start-up when compiled with clang for 
32-bits.

Hopefully, this might also fix segfaults (bus errors?) with server start-up
on other systems (Darwin, Solaris, ...) ?


diffs (20 lines):

diff --git a/gdk/gdk_utils.mx b/gdk/gdk_utils.mx
--- a/gdk/gdk_utils.mx
+++ b/gdk/gdk_utils.mx
@@ -1687,6 +1687,8 @@
        GDKremovedir(DELDIR);
        BBPinit();
 
+       HEAPcacheInit();
+
        GDKenv = BATnew(TYPE_str, TYPE_str, 100);
        if (GDKenv == NULL)
                GDKfatal("GDKinit: Could not create environment BAT");
@@ -1767,7 +1769,6 @@
                MT_create_thread(&GDKvmtrim_id, GDKvmtrim, &GDK_mem_maxsize, 
MT_THR_JOINABLE);
 #endif
 
-       HEAPcacheInit();
        return 1;
 }
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to