[Mono-bugs] [Bug 346160] New: Mono core dumps when reaching uninitialized object through reflection

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Dec 5 07:09:50 EST 2007


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


           Summary: Mono core dumps when reaching uninitialized object
                    through reflection
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: Kubuntu
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: stm at dbc.dk
         QAContact: mono-bugs at ximian.com
          Found By: ---


Created an attachment (id=185990)
 --> (https://bugzilla.novell.com/attachment.cgi?id=185990)
sample code of reflection bug in mono

Problem:
When using reflection (FieldInfo arrays) to iterate through object fields, mono
core dumps at runtime when reflection tries to use GetValue on a field with the
object as argument (see attached sample code)

Expected behaviour:
I would expect an ArgumentException, as access on fields of uninitialized
objects should be an exception.

Attached is an example tested with gmcs version 1.2.6.0 and Mono JIT compiler
version 1.2.6, revision 90732


-- 
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