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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=341244#c2





--- Comment #2 from Juraj Skripsky <[EMAIL PROTECTED]>  2007-12-06 03:34:18 MST 
---
I haven't been able to find a way to reproduce the problem reliably. But I'm
still seeing the crash after mod-mono-server has been running for a day or two
(with the code from commit 89306) or a few days (without commit 89306).

After adding a few debug messages to handles.c, I found out that before getting
the "CreateThread: error creating thread handle" message, we're always reaching
these lines in _wapi_handle_new:

        if (_WAPI_SHARED_HANDLE(type)) {
                /* Add the shared section too */
                guint32 ref;

                ref = _wapi_handle_new_shared (type, handle_specific);
                if (ref == 0) {
                        _wapi_handle_collect ();
                        ref = _wapi_handle_new_shared (type, handle_specific);
                        if (ref == 0) {
>                               /* FIXME: grow the arrays */
>                               handle = _WAPI_HANDLE_INVALID;
>                               goto done;
                        }
                }


Running the following command now and then shows me a number which seems to be
continuously increasing:

export MONO_SHARED_DIR=/tmp; mono --wapi=hps | grep Thread |wc -l 
=> 1998

According to the following command, most of the threads have status exited
(=1):

export MONO_SHARED_DIR=/tmp; mono --wapi=hps | grep Thread | grep "state: 1"
|wc -l
=> 1935

It seems that we're consistently running out of handle slots after a while. Are
the handles for terminated threads supposed to be kept around for so long?


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to