[Mono-bugs] [Bug 72148][Maj] New - Problem when trying to run C# Express 2005 beta code , pointer convertion

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Feb 2005 18:57:29 -0500 (EST)

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 stef.mp@gmail.com.


--- shadow/72148	2005-02-02 18:57:29.000000000 -0500
+++ shadow/72148.tmp.7991	2005-02-02 18:57:29.000000000 -0500
@@ -0,0 +1,65 @@
+Bug#: 72148
+Product: Mono: Runtime
+Version: unspecified
+OS Details: Windows XP PRO SP2
+Status: NEW   
+Priority: Major
+Component: JIT
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: stef.mp@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Problem when trying to run C# Express 2005 beta code , pointer convertion
+Using Mono 1.1.3 on Windows Xp pro sp2;P4 2.53;1gb ram
+Description of Problem:
+Possible problem on pointer convertion , jit time
+Code : 
+[assuming float fr[15]]
+fixed (float* p = &fr[0])
+   //Uncomenting the line below makes the exe to crash under mono
+   //uint temp = *(uint*)p;
+   write(r[n], temp , 4);
+I have many "convertions" of this type on the code , like
+[assuming uint r[16];float fr[15]]]
+uint tmp=read(r[0],4);
+And all of em are working perfectly..
+Note here that i have removed any Gui from the application , 
+it is console based.
+Actual Results:
+Error : mini.c :line 7369 (mini_select_instructions) should not be 
+reached , aborting. ; p[rogram terminates after that.
+Expected Results:
+It should run without any errors
+How often does this happen? 
+Allways , if i remove the line the exe runs.
+Additional Information:
+The code is from an [rather old now] DreamCast emulator that i was 
+working on C#.If anone wants the source to test it , please email 
+me.Also , i'm getting some rather strange results[errors] when i use my 
+recompiler core [recompiles sh4 to .net IL] but these must 
+incopatibilitys between MS .net /Mono on System.Reflection.emit so i do 
+not report them as bugs.
+I'm using VC# 2005 Express Beta 1 as ide/compiler.