[Mono-bugs] [Bug 62670][Wis] Changed - referencing a module using -reference causes mcs to crash

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Jul 17 23:34:12 EDT 2005


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 agorecki at ectrolinux.com.

http://bugzilla.ximian.com/show_bug.cgi?id=62670

--- shadow/62670	2004-08-08 14:24:20.000000000 -0400
+++ shadow/62670.tmp.5165	2005-07-17 23:34:12.000000000 -0400
@@ -1,22 +1,21 @@
 Bug#: 62670
 Product: Mono: Compilers
-Version: unspecified
+Version: 1.1
 OS: unknown
-OS Details: Windows XP
-Status: NEEDINFO   
+OS Details: Gentoo Linux
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: C#
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: colin at breame.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: referencing a module using -reference causes mcs to crash
 
 e.g. mcs -r:bin/obj/common.mod server/*.cs
 
 where common.mod is a previously compiled module.
 
@@ -29,6 +28,55 @@
 Works here, please provide a test case to replicate.
 
 ------- Additional Comments From colin at breame.com  2004-08-08 14:24 -------
 Beg your pardon - this only happens when the module name ends with .dll
 
 e.g. mcs -r:mod.dll *.cs
+
+------- Additional Comments From agorecki at ectrolinux.com  2005-07-17 23:34 -------
+This bug is still present. I've done a bit of testing an concluded the
+following:
+
+When compiling to any target type using mcs and -reference, the
+compilation will fail when -reference targets a module assembly. Using
+a library with -reference compiles without a problem. Here is the
+output of the various test cases:
+
+Test one:
+---------
+agorecki at entro src $ mcs -target:module VersionString.cs
+agorecki at entro src $ mcs -target:library
+-reference:./VersionString.netmodule VersionSelection.cs
+
+** ERROR **: file metadata.c: line 914 (mono_metadata_decode_row):
+assertion failed: (res_size == count)
+aborting...
+Aborted
+
+
+Test Two:
+---------
+agorecki at entro src $ mcs -target:module VersionString.cs
+agorecki at entro src $ mcs -target:module
+-reference:./VersionString.netmodule VersionSelection.cs
+
+** ERROR **: file metadata.c: line 914 (mono_metadata_decode_row):
+assertion failed: (res_size == count)
+aborting...
+Aborted
+
+
+Test Three:
+-----------
+agorecki at entro src $ mcs -target:library VersionString.cs
+agorecki at entro src $ mcs -target:library
+-reference:./VersionString.dll VersionSelection.cs
+
+
+Test Four:
+----------
+agorecki at entro src $ mcs -target:library VersionString.cs
+agorecki at entro src $ mcs -target:module -reference:./VersionString.dll
+VersionSelection.cs
+
+
+Any thoughts?


More information about the mono-bugs mailing list