[Mono-bugs] [Bug 36373][Nor] Changed - Mono aborts with an ExecutionEngineException

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Tue, 7 Jan 2003 14:13:56 -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 lupus@ximian.com.

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

--- shadow/36373	Tue Jan  7 01:58:35 2003
+++ shadow/36373.tmp.16487	Tue Jan  7 14:13:56 2003
@@ -1,14 +1,14 @@
 Bug#: 36373
 Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: SuSE Linux 8.0
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mathpup@mylinuxisp.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -52,6 +52,14 @@
 report as a reminding and to give more specific information.
 
 ------- Additional Comments From mathpup@mylinuxisp.com  2003-01-07 01:58 -------
 Created an attachment (id=3069)
 Test case
 
+
+------- Additional Comments From lupus@ximian.com  2003-01-07 14:13 -------
+This happens when a struct has no fields.
+csc (and also mcs a while ago) uses the ".size 1" hack to ensure the
+valuetype has a non-zero size. (mcs has been changed to add a dummy
+byte field, dunno why). The issue is that the marshal code only checks
+for fields and not for the .size hint and so it thinks the size of the
+struct is 0.