[Mono-bugs] [Bug 432388] mono_thread_attach() causes infinite loop on win32 with --profile

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 7 14:08:38 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=432388

User mprobst at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432388#c2





--- Comment #2 from Mark Probst <mprobst at novell.com>  2008-10-07 12:08:38 MDT ---
The problem here is that the profiler shutdown (simple_shutdown()) calls
mono_thread_attach(), at a time where the threading system has already shut
down.  On Linux the call does simply nothing, because mono_thread_current()
still returns a thread, whereas on Win32 it does not, so mono_thread_attach()
refuses to attach and instead waits for shutdown.  Unfortunately, that
particular thread is the last one alive, so it loops endlessly.

The attached patch solves the problem.  Massi: Do you have any objections?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list