[Mono-bugs] [Bug 673094] New: Assemblies not loaded consistently in multiple AppDomains
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Feb 17 13:07:35 EST 2011
https://bugzilla.novell.com/show_bug.cgi?id=673094
https://bugzilla.novell.com/show_bug.cgi?id=673094#c0
Summary: Assemblies not loaded consistently in multiple
AppDomains
Classification: Mono
Product: Mono: Runtime
Version: 2.6.x
Platform: i686
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: mapperso at cisco.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13)
Gecko/20110103 Fedora/3.6.13-1.fc14 Firefox/3.6.13
The test attached demonstrates that when using the Assembly.Load(byte[]) method
reflected types are perceived differently in two identically built AppDomains.
I also ran this under Monodevelop and captured the application output. The
first AppDomain loads the assembly as it's referenced (while JITing
DoTest()???). The second AppDomain appears to load the assembly from the byte
array.
********************** Monodevelop Application Output *********************
Loaded assembly:
/home/mapperso/Projects/GetCustomAttributesTest/ConsoleApp/bin/Debug/ConsoleApp.exe
Loaded assembly: __MetadataTypes
Loaded assembly: __MetadataTypes
Thread started:
Loaded assembly: __MetadataTypes
Thread started:
Loaded assembly:
/home/mapperso/Projects/GetCustomAttributesTest/ConsoleApp/bin/Debug/LoadedAssembly.dll
Types compare equal : True
Loaded assembly: data-0x9392a20
Types compare equal : False
Reproducible: Always
Steps to Reproduce:
1.tar xf test.tar.gz
2.mono Program.exe
Actual Results:
Types compare equal : True
Types compare equal : False
Expected Results:
Types compare equal : True
Types compare equal : True
I've tested the attached assemblies on 2.6.7, 2.8.2 and a recent build from git
- all have the same behaviour. With Win7/Net3.5 this works as expected.
--
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.
More information about the mono-bugs
mailing list