[Mono-bugs] [Bug 499912] New: shutdown race when shutting down the threadpool

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 30 16:32:58 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=499912


           Summary: shutdown race when shutting down the threadpool
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: vargaz at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.10)
Gecko/2009042805 Iceweasel/3.0.9 (Debian-3.0.9-1)

A testcase:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
using System;
using System.Collections;
using System.Threading;
using System.Net;
using System.Net.Sockets;

class Test {

    static int Main () {
            TcpListener listener = new TcpListener (IPAddress.Loopback, 23456);
            listener.Start();

            Socket client = new Socket (AddressFamily.InterNetwork,
SocketType.Stream, ProtocolType.Tcp);
            client.Connect (IPAddress.Loopback, 23456);
            Socket server = listener.AcceptSocket ();

            for (int i = 0; i < 10; ++i)
                server.BeginSend (new byte[10], 0, 10, SocketFlags.None, null,
null);

            //Thread.Sleep (100);

            return 0;
    }
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Output:
** (bug.exe:2441): CRITICAL **: mono_g_hash_table_lookup: assertion `hash_table
!= NULL' failed

This happens because mono_thread_pool_cleanup () is called while tp threads are
still running.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.

-- 
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