[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


           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:
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);

            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,

            //Thread.Sleep (100);

            return 0;

** (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:

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