Bug 315723 (MONO62670) - referencing a module using -reference causes mcs to crash
Summary: referencing a module using -reference causes mcs to crash
Status: RESOLVED MOVED
Alias: MONO62670
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-07 19:43 UTC by Colin JN Breame
Modified: 2007-09-15 21:24 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:49:29 UTC


---- Reported by colin@breame.com 2004-08-07 12:43:15 MST ----

e.g. mcs -r:bin/obj/common.mod server/*.cs

where common.mod is a previously compiled module.

A dialog box is displayed reading:
Error
** ERROR **: file metadata.c: line 872 (mono_meta_data_decode_row):
assertion failed: (res_size == count) aborting...



---- Additional Comments From miguel@ximian.com 2004-08-07 20:59:11 MST ----

Works here, please provide a test case to replicate.



---- Additional Comments From colin@breame.com 2004-08-08 14:24:19 MST ----

Beg your pardon - this only happens when the module name ends with .dll

e.g. mcs -r:mod.dll *.cs



---- Additional Comments From agorecki@ectrolinux.com 2005-07-17 23:34:12 MST ----

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@entro src $ mcs -target:module VersionString.cs
agorecki@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@entro src $ mcs -target:module VersionString.cs
agorecki@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@entro src $ mcs -target:library VersionString.cs
agorecki@entro src $ mcs -target:library
-reference:./VersionString.dll VersionSelection.cs


Test Four:
----------
agorecki@entro src $ mcs -target:library VersionString.cs
agorecki@entro src $ mcs -target:module -reference:./VersionString.dll
VersionSelection.cs


Any thoughts?



---- Additional Comments From bmaurer@users.sf.net 2005-07-18 00:08:18 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO58244 ***


Unknown bug field "cf_op_sys_details" encountered while moving bug
   <cf_op_sys_details>Gentoo Linux</cf_op_sys_details>
Unknown operating system unknown. Setting to default OS "Other".
This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"