[Mono-bugs] [Bug 36921][Nor] New - mono crashes with segfault in mono_marshal_get_native_wrapper

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Sat, 18 Jan 2003 06:08:10 -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 mathpup@mylinuxisp.com.

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

--- shadow/36921	Sat Jan 18 06:08:10 2003
+++ shadow/36921.tmp.16023	Sat Jan 18 06:08:10 2003
@@ -0,0 +1,42 @@
+Bug#: 36921
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mathpup@mylinuxisp.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono crashes with segfault in mono_marshal_get_native_wrapper
+
+Description of Problem: 
+ 
+When running (new) Qt# apps, mono aborts with the following: 
+ 
+0x080d2d63 in mono_marshal_get_native_wrapper (method=0x82618b0) at 
+marshal.c:2186 
+2186                            if (t->data.klass->delegate) { 
+ 
+Per Paolo's instructions, I did 
+ 
+print t 
+ 
+$1 = (struct _MonoType *) 0x8261918 
+ 
+print *t 
+ 
+$2 = {data = {klass = 0x0, type = 0x0, array = 0x0, method = 0x0},  attrs = 0, 
+type = 28, num_mods = 0, byref = 0, pinned = 0, modifiers =  0x8261920} 
+ 
+Paolo had me change line 2186 in marshal.c to 
+ 
+if (t->data.klass && t->data.klass->delegate) { 
+ 
+and that fixed the problem.