[Mono-bugs] [Bug 78243][Nor] New - multiple threads omitting and
duplicating work
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Apr 29 17:55:06 EDT 2006
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by lion.vollnhals at googlemail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=78243
--- shadow/78243 2006-04-29 17:55:06.000000000 -0400
+++ shadow/78243.tmp.2117 2006-04-29 17:55:06.000000000 -0400
@@ -0,0 +1,94 @@
+Bug#: 78243
+Product: Mono: Class Libraries
+Version: 1.1
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: lion.vollnhals at googlemail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: multiple threads omitting and duplicating work
+
+Description of Problem:
+
+A program starts one thread, which itself starts many (sub-)threads.
+These (sub-)threads randomly but reproducibly omit or duplicate their given
+work.
+The testcase in particular starts one thread, which starts 12
+(sub-)threads, which should each print a unique number.
+But numbers are sometimes omitted or duplicated. The behavior seems random.
+
+
+Steps to reproduce the problem:
+
+1. Compile the testcase (a C# program)
+2. Run it a few times
+3. Notice the strange / unexpected behavior (omitted or duplicated numbers
+in the testcase)
+
+
+Actual Results:
+
+The actual results differ somewhat but the problem is clearly seen.
+Notice in this run the missing 01 and the duplicated 08 and 12.
+
+D:\test>mono testcase.exe
+02
+03
+04
+05
+06
+07
+08
+08
+10
+11
+12
+12
+
+
+Expected Results:
+
+The numbers should be unique. And each number from 01 to 12 should appear
+in the output. The order doesn't matter (because threads are used).
+
+03
+02
+01
+04
+05
+06
+07
+08
+09
+10
+11
+12
+
+
+How often does this happen?
+
+This problem is reproducibly. Sometimes several runs of the testcase are
+required in order to observe the problem.
+
+
+Additional Information:
+
+D:\test>mono --version
+Mono JIT compiler version 1.1.15, (C) 2002-2005 Novell, Inc and
+Contributors. ww
+w.mono-project.com
+ TLS: normal
+ GC: Included Boehm (with typed GC)
+ SIGSEGV: normal
+ Disabled: none
+
+
+My processor is a Athlon XP 2700+.
More information about the mono-bugs
mailing list