[Mono-bugs] [Bug 82276][Nor] New - using assembly load hooks can lead to runtime crashes
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Aug 1 11:10:30 EDT 2007
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vargaz at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82276
--- shadow/82276 2007-08-01 11:10:29.000000000 -0400
+++ shadow/82276.tmp.643 2007-08-01 11:10:29.000000000 -0400
@@ -0,0 +1,46 @@
+Bug#: 82276
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: vargaz at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: using assembly load hooks can lead to runtime crashes
+
+Testcase:
+<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+using System;
+using System.Reflection;
+
+class Tests {
+
+ static void AssemblyLoadHandler(Object ob, AssemblyLoadEventArgs
+args) {
+ args.LoadedAssembly.GetTypes ();
+ }
+
+ static void Main ()
+ {
+ AppDomain domain = AppDomain.CurrentDomain;
+
+ domain.AssemblyLoad += new
+AssemblyLoadEventHandler(AssemblyLoadHandler);
+
+ AssemblyName aname = new AssemblyName ();
+ aname.Name = "System";
+ Assembly.Load (aname).GetTypes ();
+ }
+}
+>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
+
+What happens here is that we invoke managed code from inside of metadata
+code, and the managed code can see partially initialized runtime structures.
More information about the mono-bugs
mailing list