[Mono-bugs] [Bug 78123][Nor] New - Race in Threading code
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sun Apr 16 12:13:16 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 s-kiess at web.de.
http://bugzilla.ximian.com/show_bug.cgi?id=78123
--- shadow/78123 2006-04-16 12:13:16.000000000 -0400
+++ shadow/78123.tmp.1871 2006-04-16 12:13:16.000000000 -0400
@@ -0,0 +1,107 @@
+Bug#: 78123
+Product: Mono: Runtime
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: s-kiess at web.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Race in Threading code
+
+Description of Problem: A Thread which is aborted immediately after startup
+causes a segfault.
+
+
+Steps to reproduce the problem:
+1. cat > thread.cs << EOF
+using System;
+using System.Threading;
+
+public class M {
+ public static void DoNothing () {
+ //Thread.Sleep (0);
+ }
+
+ public static void Main () {
+ for (int i=0; ; i++) {
+ Console.WriteLine (i);
+
+ Thread thread = new Thread (DoNothing);
+ thread.Start ();
+ //Thread.Sleep (0);
+ thread.Abort ();
+ thread.Join ();
+ }
+ }
+}
+EOF
+2. mcs thread.cs
+3. mono thread.exe
+
+Actual Results:
+0
+
+=================================================================
+Got a SIGSEGV while executing native code. This usually indicates
+a fatal error in the mono runtime or one of the native libraries
+used by your application.
+=================================================================
+
+Stacktrace:
+
+
+Native stacktrace:
+
+Speicherzugriffsfehler
+
+
+Expected Results:
+0
+1
+2
+3
+...
+
+How often does this happen?
+always. (Sometimes the program crashes at the second iteration.)
+
+Additional Information:
+When one of the Thread.Sleep (0) lines is enabled, the code works.
+
+On another computer using Mono 1.1.13.2 the code works.
+
+mono --version
+Mono JIT compiler version 1.1.13.6, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+ TLS: normal
+ GC: Included Boehm (with typed GC)
+ SIGSEGV : normal
+
+cat /proc/cpuinfo
+processor : 0
+vendor_id : GenuineIntel
+cpu family : 6
+model : 9
+model name : Intel(R) Pentium(R) M processor 1700MHz
+stepping : 5
+cpu MHz : 1700.136
+cache size : 1024 KB
+fdiv_bug : no
+hlt_bug : no
+f00f_bug : no
+coma_bug : no
+fpu : yes
+fpu_exception : yes
+cpuid level : 2
+wp : yes
+flags : fpu vme de pse tsc msr mce cx8 apic sep mtrr pge mca cmov
+pat clflush dts acpi mmx fxsr sse sse2 tm pbe tm2 est
+bogomips : 3365.54
More information about the mono-bugs
mailing list