[Mono-bugs] [Bug 577090] New: Intermittent threading issue with Mono 2.6.1 and SmartThreadPool

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Feb 4 12:33:14 EST 2010


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

http://bugzilla.novell.com/show_bug.cgi?id=577090#c0


           Summary: Intermittent threading issue with Mono 2.6.1 and
                    SmartThreadPool
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: apenn at hchb.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=340806)
 --> (http://bugzilla.novell.com/attachment.cgi?id=340806)
Error output

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.7)
Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

Briefly discussed this on https://bugzilla.novell.com/show_bug.cgi?id=566689
with Zoltan Varga. We have a multithreaded app that runs fine under 2.4.x but
intermittently breaks under 2.6.1. The exception (attached) looks like a
problem with the threading. We are using the Smart Thread Pool
(http://www.codeproject.com/KB/threads/smartthreadpool.aspx) to handle the
thread pool implementation.

As that application connects to a database we have and does specific things
against our database and target servers, I can't share the code, but basically
it queues up threads, and each thread makes a database connection, fetches data
for paths to check, and then looks for files in the paths indicated by the
returned data.

I am also attaching a sample application that uses the thread pool in a similar
way except it uses threads from the pool to calculate 100 sums. While I cannot
get the exception above, the application periodically freezes when printing
results to the console:

[... each result, numbered from 1 to 100, should be 27--after calculation it
prints and exits.]
52 :: 27
53 :: 27
54 :: 27
55 :: 27
56 :: 27
57 :: 27
58 :: 27
^C

I'm not sure if this is indicative of the other issue, but when it freezes,
Ctrl+C is required to get back to the shell.

Reproducible: Sometimes

Steps to Reproduce:
Run sample app repeatedly to attempt to produce thread crash or hung output.
Actual Results:  
Usually prints 100 sums but sometimes freezes while printing output.

Expected Results:  
Should calculate and print 100 sums every time without exceptions or freezing.

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