[Mono-bugs] [Bug 522233] SIGSEGV when using WeakReferences in multi-threaded application

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 15 14:29:45 EDT 2009


User vargaz at gmail.com added comment

Zoltan Varga <vargaz at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |vargaz at gmail.com

--- Comment #1 from Zoltan Varga <vargaz at gmail.com>  2009-07-15 12:29:43 MDT ---
I tried to debug this, but didn't find out much. The crash seems to happen in

0x000000000064f69d in GC_is_marked (p=0x7fffdd768000 "\200\221") at mark.c:209
209         return(mark_bit_from_hdr(hhdr, word_no));
(gdb) up
#1  0x000000000064a3bc in GC_finalize () at finalize.c:560
560             if (!GC_is_marked(real_ptr)) {

Here real_ptr points to a Byte[] array, which is the object stored in the weak
ref by the testcase.

Using another testcase which allocates smaller byte arrays, the crash is
usually in 

0x00000000005fd53a in ves_icall_System_Array_GetLowerBound
(this=0x7ffff122f000, dimension=0) at icall.c:684
684             gint32 rank = ((MonoObject *)this)->vtable->klass->rank;

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

More information about the mono-bugs mailing list