[Mono-bugs] [Bug 76626][Wis] New - Mono doesn't unmarshal unions containing by-val arrays

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 3 11:22:45 EST 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 jonpryor at vt.edu.

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

--- shadow/76626	2005-11-03 11:22:45.000000000 -0500
+++ shadow/76626.tmp.14934	2005-11-03 11:22:45.000000000 -0500
@@ -0,0 +1,59 @@
+Bug#: 76626
+Product: Mono: Runtime
+Version: 1.1
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jonpryor at vt.edu               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono doesn't unmarshal unions containing by-val arrays
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+Mono doesn't properly unmarshal unions which contain by-value arrays.  It
+will properly unmarshal structs containing by-value arrays.
+
+Steps to reproduce the problem:
+1. Save & compile mua.c:
+      gcc -g -shared -o libmua.so mua.c
+2. Save & compile mua.cs:
+      mcs -debug+ mua.cs
+3. Run mua.exe:
+      LD_LIBRARY_PATH=`pwd` mono mua.exe
+
+Actual Results:
+
+g_info={ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f }
+  info={
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in [0x00057] (at mua.cs:33) Test:Main ()
+
+
+Expected Results:
+
+g_info={ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f }
+  info={  0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f }
+info.u6_addr8.Length=16
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+For comparison, compile the source with NO_UNION defined.  This removes the
+union semantics, and produces the above Expected Results:
+
+      mcs -debug+ -d:NO_UNION mua.cs
+      mono --debug mua.exe


More information about the mono-bugs mailing list