https://bugzilla.novell.com/show_bug.cgi?id=386641
Summary: SIGABRT or hang on serializing uninitialised
RuntimeXxxxHandle
Product: Mono: Runtime
Version: 1.9.0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [email protected]
Found By: ---
Unlikely to be done but serializing an uninitialised
RuntimeTypeHandle/RuntimeFieldHandle/RuntimeMethodHandle causes a crash or
hang.
[[
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.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs