[Mono-bugs] [Bug 74927][Maj] Changed - DivideByZeroException thrown in uint division when NOT dividing by zero.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri May 13 18:06:03 EDT 2005


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 bmaurer@users.sf.net.

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

--- shadow/74927	2005-05-13 05:51:48.000000000 -0400
+++ shadow/74927.tmp.17120	2005-05-13 13:06:03.000000000 -0400
@@ -69,6 +69,38 @@
 
 Can you check if:
 
   * the binary compiled with CSC works on your mono runtime
   * the binary compiled with MCS works on the .NET runtime
 
+
+------- Additional Comments From bmaurer@users.sf.net  2005-05-13 13:06 -------
+I can't repo on amd64...
+
+builder@monobuild2:~> cat /etc/SuSE-release
+SuSE Linux 9.3 (x86-64)
+VERSION = 9.3
+builder@monobuild2:~> mono --version
+Mono JIT compiler version 1.1.7.99, (C) 2002-2005 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           __thread
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV      : normal
+        Globalization: normal
+builder@monobuild2:~> cat zzz.cs
+using System;
+ 
+public class MonoDivideProblem
+{
+        static uint  dividend = 0x80000000;
+        static uint divisor = 1;
+        public static void Main(string[] args)
+        {
+                Console.WriteLine("Dividend/Divisor = {0}",
+dividend/divisor);
+        }
+ 
+}
+builder@monobuild2:~> mcs zzz.cs
+builder@monobuild2:~> mono zzz.exe
+Dividend/Divisor = 2147483648
+



More information about the mono-bugs mailing list