[Mono-bugs] [Bug 77777][Cri] New - System.Timers.Timer object failed

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Mar 13 13:40:31 EST 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 wilson.lei at evertrust.com.

http://bugzilla.ximian.com/show_bug.cgi?id=77777

--- shadow/77777	2006-03-13 13:40:31.000000000 -0500
+++ shadow/77777.tmp.31860	2006-03-13 13:40:31.000000000 -0500
@@ -0,0 +1,85 @@
+Bug#: 77777
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Solaris 8
+OS Details: Solaris 8, Gnome 2.0 Desktop
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Critical
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: wilson.lei at evertrust.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Timers.Timer object failed
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+The following code runs on Linux but on Solaris it fails.
+Code:
+
+using System;
+ 
+class MainClass
+{
+        public static void Main(string[] args)
+        {
+                System.Timers.Timer tmr = new System.Timers.Timer();
+                tmr.Elapsed += new System.Timers.ElapsedEventHandler( 
+TestFunc );
+                tmr.AutoReset = true;
+                tmr.Interval = 1000;
+                tmr.Start();
+ 
+                //Console.WriteLine("Hello");
+ 
+                while( true )
+                {
+                }
+        }
+ 
+        public static void TestFunc(object source, 
+System.Timers.ElapsedEventArgs eArgs)
+        {
+                Console.WriteLine("Timer is working.");
+        }
+}
+
+Steps to reproduce the problem:
+1. mcs -target:exe -out:testtimer.exe -debug+ testtimer.cs
+2. mono --debug testtimer.exe
+
+Actual Results:
+=================================================================
+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:
+ 
+in (wrapper synchronized) System.Timers.Timer:add_Elapsed 
+(System.Timers.ElapsedEventHandler) <0xc>
+in (wrapper synchronized) System.Timers.Timer:add_Elapsed 
+(System.Timers.ElapsedEventHandler) <0xfffffeec>
+in (wrapper remoting-invoke-with-check) System.Timers.Timer:add_Elapsed 
+(System.Timers.ElapsedEventHandler) <0xffffee78>
+in MainClass:Main (string[]) (at /wilson/testtimer.cs:18)
+in (wrapper runtime-invoke) System.Object:runtime_invoke_void_string[] 
+(object,intptr,intptr,intptr) <0x13ff944>
+Abort (core dumped)
+
+Expected Results:
+Timer is working.
+
+
+How often does this happen? 
+Always.
+
+
+Additional Information:


More information about the mono-bugs mailing list