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 [EMAIL PROTECTED]

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

--- shadow/82281        2007-08-01 14:47:29.000000000 -0400
+++ shadow/82281.tmp.4436       2007-08-01 14:47:29.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 82281
+Product: Mono: Runtime
+Version: 1.0
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: JIT
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Summary: [PPC] byte array + shift operation (+ foreach) causes 
NullReferenceException
+
+(Forwarding a report wrt some weird NRE by Kazuki.)
+
+Arch/Platform:
+iMac G5 + gentoo + mono(trunk)
+
+Code:
+
+static void Main ()
+{
+    uint temp = 0;
+    byte[] data = new byte[256];
+    for (int i = 0; i < 1; i ++) // *1
+        temp = (uint)(data[temp >> 24] | data[temp >> 0]); // *2
+}
+
+Actual Result:
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at test.Main () [0x00000] 
+
+Additional Notes:
+
+This does not happen when *1 is removed, or *2 is replaced with:
+
+        temp = (uint)(data[temp >> 0] | data[temp >> 24]);
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to