[Mono-bugs] [Bug 379524] Environment. Exit in separate thread results in thread creation failure

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 22 14:09:29 EDT 2008


User robertj at gmx.net added comment

Robert Jordan <robertj at gmx.net> changed:

           What    |Removed                                         |Added
                 CC|                                                |robertj at gmx.net

--- Comment #3 from Robert Jordan <robertj at gmx.net>  2008-04-22 12:09:29 MST ---
In mono_thread_suspend_all_other_threads (), the code is waiting for events
that are supposed to be signaled from a within an APC launched by
signal_thread_state_change ().

It seems that these APCs never arrive because the threads are not in a waiting
state. As long as I'm using this thread proc, the APCs start getting dispatched
and the test case succeeds:

        static void Test ()
                string name = Thread.CurrentThread.CurrentCulture.Name;
                if (name != "en-CA")
                        Environment.Exit (0);
                Thread.Sleep (1000);

No sleep -> no APC -> no event signaling -> WaitForMultipleObjects in
mono_thread_suspend_all_other_threads  () is hanging.

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