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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to