[Mono-bugs] [Bug 590967] New: application freeze during AppDomain.Unload

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 24 18:25:26 EDT 2010



           Summary: application freeze during AppDomain.Unload
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.4.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: hmandevteam at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=350416)
 --> (http://bugzilla.novell.com/attachment.cgi?id=350416)
sample solution to explain problem

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2)
Gecko/20100121 Mandriva Linux/1.9.2-69.1mib2010.0 (2010.0) Firefox/3.6

I used an AssemblyLoader class loaded in a different AppDomain to load a plugin
assembly and create a plugin class calling CreateInstance method of
AssemblyLoader class.
Instance of plugin class implement ISharedClass so i call a method Exec()
contained into interface and implemented in plugin class, after unload
AppDomain created and i used also GC.Collect() + GC.WaitForPendingFinalizers().

i put this steps in a loop and after some times.... freeze

in my real application my plugin is more complex and i have a freeze after
first or second appdomain.unload

i haven't this problem on mswindows 

i saw this problem already in prev. Mono releases

Reproducible: Always

Steps to Reproduce:
1. launch mono --debug LoadAssemblyConsoleApp.exe
Actual Results:  
freeze of application

Expected Results:  
application terminate correctlly

Configure bugmail: http://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