[Mono-bugs] [Bug 77549][Wis] Changed - mcs crashes if a dependency
of a referenced assembly is missing
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Feb 14 04:48:32 EST 2006
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 rharinath at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=77549
--- shadow/77549 2006-02-14 04:25:23.000000000 -0500
+++ shadow/77549.tmp.28021 2006-02-14 04:48:32.000000000 -0500
@@ -2,22 +2,22 @@
Product: Mono: Compilers
Version: 1.1
OS: other
OS Details: fedora core 4
Status: NEW
Resolution:
-Severity:
-Priority: Normal
+Severity: Unknown
+Priority: Wishlist
Component: C#
AssignedTo: rharinath at novell.com
ReportedBy: flipper98 at gmx.net
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
-Summary: [GMCS] gmcs crashes (if a referenced assembly is missing)
+Summary: mcs crashes if a dependency of a referenced assembly is missing
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
gmcs seems to crash if a referenced assembly references a missing assembly.
@@ -52,6 +52,22 @@
{
public Test()
{
IDbConnection conn = new SQLiteConnection();
}
}
+
+------- Additional Comments From rharinath at novell.com 2006-02-14 04:48 -------
+Hmm. If I understand right
+
+ * You have assembly A.dll, which references B.dll
+ * you reference A.dll (-r:A.dll), but don't have B.dll around
+ => you get a crash
+
+This has got to do with 'mcs' in-as-much as it uses System.Reflection
+to load referenced assemblies. It may end up needing some work on the
+runtime to throw an appropriate exception instead of aborting out.
+
+Actually, your use-case should probably be an error, even if B.dll is
+present. IIRC, you need to reference each dependency of A.dll
+explicitly, i.e., you need -r:B.dll too.
+
More information about the mono-bugs
mailing list