[Mono-bugs] [Bug 75831][Min] Changed - [GMCS] Multidimensional array as generic paramater causes gmcs to crash

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Aug 22 09:21:58 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by malekith at pld-linux.org.

http://bugzilla.ximian.com/show_bug.cgi?id=75831

--- shadow/75831	2005-08-18 04:35:17.000000000 -0400
+++ shadow/75831.tmp.13670	2005-08-22 09:21:58.000000000 -0400
@@ -80,6 +80,28 @@
 
 Additional Information:
 The same error appears with the nemerle compiler, so the bug is probably in
 System.Reflection.Emit.
 
 I'm using Mono svn r48453.
+
+------- Additional Comments From malekith at pld-linux.org  2005-08-22 09:21 -------
+It seems to be ,,fixed'' by:
+
+Index: metadata.c
+===================================================================
+--- metadata.c  (revision 48620)
++++ metadata.c  (working copy)
+@@ -1642,8 +1642,8 @@
+
+        cached = g_hash_table_lookup (generic_inst_cache, ginst);
+        if (cached) {
+-               for (i = 0; i < ginst->type_argc; i++)
+-                       mono_metadata_free_type (ginst->type_argv [i]);
++               // for (i = 0; i < ginst->type_argc; i++)
++               //      mono_metadata_free_type (ginst->type_argv [i]);
+                g_free (ginst->type_argv);
+                g_free (ginst);
+                return cached;
+
+the problem is that some type is not duplicated, then freed and used
+again.


More information about the mono-bugs mailing list