[Mono-bugs] [Bug 386641] New: SIGABRT or hang on serializing uninitialised RuntimeXxxxHandle

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon May 5 06:51:47 EDT 2008


           Summary: SIGABRT or hang on serializing uninitialised
           Product: Mono: Runtime
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Unlikely to be done but serializing an uninitialised
RuntimeTypeHandle/RuntimeFieldHandle/RuntimeMethodHandle causes a crash or
using System;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;

class RuntimeHandlesDefaultSerialize
    static void Main()
        System.IO.MemoryStream strm = new System.IO.MemoryStream ();
        BinaryFormatter fmtr = new BinaryFormatter ();
        RuntimeTypeHandle th = new RuntimeTypeHandle ();
        RuntimeFieldHandle fh = new RuntimeFieldHandle ();
        RuntimeMethodHandle mh = new RuntimeMethodHandle ();
        fmtr.Serialize(strm, th);
        fmtr.Serialize(strm, fh);
        fmtr.Serialize(strm, mh);

First causes a 100% CPU hang, second and third cause a crash.

On MSFT each fails with a similar exception:
System.Runtime.Serialization.SerializationException: Object fields may not be
properly initialized.
   at System.RuntimeTypeHandle.GetObjectData(SerializationInfo info,
StreamingContext context)
   … ...

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