[Mono-bugs] [Bug 683409] SMP problems on ARM

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 7 14:52:27 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=683409

https://bugzilla.novell.com/show_bug.cgi?id=683409#c3


--- Comment #3 from Zoltan Varga <vargaz at gmail.com> 2011-04-07 18:52:27 UTC ---
The following patch seems to be hit when running the above testcase using
GC_DONT_GC=1 mono bug.exe

diff --git a/mono/metadata/object.c b/mono/metadata/object.c
index 250e947..a0f025d 100644
--- a/mono/metadata/object.c
+++ b/mono/metadata/object.c
@@ -4857,6 +4857,11 @@ mono_string_new_size (MonoDomain *domain, gint32 len)
 #ifndef HAVE_SGEN_GC
        s = mono_object_allocate_ptrfree (size, vtable);

+       if (s == vtable) {
+               printf ("BAR!\n");
+               *(int*)0 = 0;
+       }
+
        s->length = len;
 #else
        s = mono_gc_alloc_string (vtable, size, len);

This means that the string vtable pointer somehow ends up the GC freelist.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list