[Ikvm-developers] [Using SWT3.1M1] broken :(
Brought to you by:
jfrijters
|
From: David J. <ju...@or...> - 2004-09-10 14:56:25
|
Looks like something in that last snapshot broke something on mono/linux. I cannot run even my HelloWorldSWT program anymore. It just bombs with a NullPointer exception. Here is a stack trace with --trace=all in use [at end], but note that it isn't consistient (doesn't always happen at the same point each time it is run). A very similar simple SWT program actually causes a seg fault. The only thing I could get out of the debugger from this was: #0 0x005d3402 in ?? () #1 0x005bd950 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/tls/libpthread.so.0 #2 0x0074b68c in mono_method_full_name () from /usr/lib/libmono.so.0 #3 0x007593f8 in mono_once () from /usr/lib/libmono.so.0 #4 0x006fdb9a in mono_gchandle_free () from /usr/lib/libmono.so.0 #5 0x0070ce25 in mono_monitor_exit () from /usr/lib/libmono.so.0 #6 0x0075897d in mono_once () from /usr/lib/libmono.so.0 #7 0x00776442 in GC_end_blocking () from /usr/lib/libmono.so.0 #8 0x005ba98c in start_thread () from /lib/tls/libpthread.so.0 #9 0x0031716a in clone () from /lib/tls/libc.so.6 --trace=all & stack trace (HelloWorldSWT program): . . . . . ENTER: Frame:Leave ()(value:0xf5bba7fc, ) . . . . . . ENTER: IKVM.Runtime.JNIEnv:UnwrapRef (intptr)(value:0x9c13008, 0x2c72, ) . . . . . . . ENTER: System.IntPtr:ToInt32 ()(value:0xf5bba784, ) . . . . . . . LEAVE: System.IntPtr:ToInt32 ()result=11378 . . . . . . . ENTER: IKVM.Runtime.JNIEnv:GetLocalRefs ()(value:0x9c13008, ) . . . . . . . . ENTER: System.Runtime.InteropServices.GCHandle:get_Target ()(value:0x9c1300c, ) . . . . . . . . . ENTER: (wrapper managed-to-native) System.Runtime.InteropServices.GCHandle:GetTarget (int)(162442008, ) . . . . . . . . . . ENTER: (wrapper runtime-invoke) System.Object:runtime_invoke_void (object,intptr,intptr,intptr)([System.NullReferenceException:0x947a2a0], (nil), (nil), 0x800c50, ) . . . . . . . . . . . ENTER: System.NullReferenceException:.ctor ()(this:0x947a2a0[System.NullReferenceException HelloWorldSWT.exe], ) . . . . . . . . . . . . ENTER: Locale:GetText (string)([STRING:0x97425f0:A null value was found where an object instance was required.], ) . . . . . . . . . . . . LEAVE: Locale:GetText (string)[STRING:0x97425f0:A null value was found where an object instance was required.] . . . . . . . . . . . LEAVE: System.NullReferenceException:.ctor () . . . . . . . . . . LEAVE: (wrapper runtime-invoke) System.Object:runtime_invoke_void (object,intptr,intptr,intptr)[OBJECT:(nil)] EXCEPTION handling: NullReferenceException . . . . . . . . . . ENTER: (wrapper runtime-invoke) System.Object:runtime_invoke_string (object,intptr,intptr,intptr)([System.NullReferenceException:0x947a2a0], (nil), (nil), 0x800d70, ) . . . . . . . . . . . ENTER: System.Exception:ToString ()(this:0x947a2a0[System.NullReferenceException HelloWorldSWT.exe], ) . . . . . . . . . . . . ENTER: System.Text.StringBuilder:.ctor (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x9b48f50:System.NullReferenceException], ) . . . . . . . . . . . . . ENTER: System.Text.StringBuilder:.ctor (string,int,int,int)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x9b48f50:System.NullReferenceException], 0, 29, 29, ) . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalAllocateStr (int)(29, ) . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalAllocateStr (int)[STRING:0x9b48f00:] . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string,int,int)([STRING:0x9b48f00:], 0, [STRING:0x9b48f50:System.NullReferenceException], 0, 29, ) . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string,int,int) . . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:.ctor (string,int,int,int) . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:.ctor (string) . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x9489858:: ], ) . . . . . . . . . . . . . ENTER: System.Text.StringBuilder:InternalEnsureCapacity (int)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], 31, ) . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalAllocateStr (int)(58, ) . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalAllocateStr (int)[STRING:0x9742390:] . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string,int,int)([STRING:0x9742390:], 0, [STRING:0x9b48f00:System.NullReferenceException], 0, 29, ) . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string,int,int) . . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:InternalEnsureCapacity (int) . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string)([STRING:0x9742390:System.NullReferenceException], 29, [STRING:0x9489858:: ], ) . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string) . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append (string)[System.Text.StringBuilder:0x9489810] . . . . . . . . . . . . ENTER: System.Exception:get_Message ()(this:0x947a2a0[System.NullReferenceException HelloWorldSWT.exe], ) . . . . . . . . . . . . LEAVE: System.Exception:get_Message ()[STRING:0x9747b80:Object reference not set to an instance of an object] . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x9747b80:Object reference not set to an instance of an object], ) . . . . . . . . . . . . . ENTER: System.Text.StringBuilder:InternalEnsureCapacity (int)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], 83, ) . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalAllocateStr (int)(116, ) . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalAllocateStr (int)[STRING:0x90449c0:] . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string,int,int)([STRING:0x90449c0:], 0, [STRING:0x9742390:System.NullReferenceException: ], 0, 31, ) . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string,int,int) . . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:InternalEnsureCapacity (int) . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string)([STRING:0x90449c0:System.NullReferenceException: ], 31, [STRING:0x9747b80:Object reference not set to an instance of an object], ) . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string) . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append (string)[System.Text.StringBuilder:0x9489810] . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x8d74f30:], ) . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string)([STRING:0x90449c0:System.NullReferenceException: Object reference not set to an instance of an object], 83, [STRING:0x8d74f30:], ) . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string) . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append (string)[System.Text.StringBuilder:0x9489810] . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.Environment:get_NewLine ()() . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.Environment:get_NewLine ()[STRING:0x9bd9bf0: ] . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x9bd9bf0: ], ) . . . . . . . . . . . . . ENTER: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string)([STRING:0x90449c0:System.NullReferenceException: Object reference not set to an instance of an object], 83, [STRING:0x9bd9bf0: ], ) . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native) System.String:InternalStrcpy (string,int,string) . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append (string)[System.Text.StringBuilder:0x9489810] . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe], [STRING:0x97f0aa0:in (unmanaged) (wrapper managed-to-native) System.Runtime.InteropServices.GCHandle:GetTarget (int) in <0x00004> (wrapper managed-to-native) System.Runtime.InteropServices.GCHandle:GetTarget (int) in <0x00025> System.Runtime.InteropServices.GCHandle:get_Target () in <0x00022> IKVM.Runtime.JNIEnv:GetLocalRefs () in <0x00034> IKVM.Runtime.JNIEnv:UnwrapRef (intptr) in <0x00035> Frame:Leave () in <0x00139> org.eclipse.swt.internal.gtk.OS:gtk_main_iteration () in <0x00180> org.eclipse.swt.widgets.Shell:setVisible (bool) in <0x00036> org.eclipse.swt.widgets.Shell:open () in <0x00065> Snippet1:Main () ], ) |