RE: [Ikvm-developers] [Using SWT3.1M1] broken :(
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2004-09-10 15:12:44
|
Hi, A long shot, but it might be related to a garbage collection problem (where Mono somehow prematurely collects an object). Could you try the following IKVM.Runtime version:=20 http://www.frijters.net/test-20040910.zip Thanks. Regards, Jeroen > -----Original Message----- > From: ikv...@li...=20 > [mailto:ikv...@li...] On=20 > Behalf Of David Jung > Sent: Friday, September 10, 2004 16:53 > To: ikv...@li... > Subject: [Ikvm-developers] [Using SWT3.1M1] broken :( >=20 > Looks like something in that last snapshot broke something on=20 > mono/linux. > I cannot run even my HelloWorldSWT program anymore. It just > bombs with a NullPointer exception. Here is a stack trace=20 > with --trace=3Dall > in use [at end], but note that it isn't consistient (doesn't always=20 > happen at the same point > each time it is run). >=20 > A very similar simple SWT program actually causes a seg=20 > 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=20 > /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 >=20 > --trace=3Dall & stack trace (HelloWorldSWT program): >=20 > . . . . . ENTER: Frame:Leave ()(value:0xf5bba7fc, ) > . . . . . . ENTER: IKVM.Runtime.JNIEnv:UnwrapRef=20 > (intptr)(value:0x9c13008, 0x2c72, ) > . . . . . . . ENTER: System.IntPtr:ToInt32 ()(value:0xf5bba784, ) > . . . . . . . LEAVE: System.IntPtr:ToInt32 ()result=3D11378 > . . . . . . . ENTER: IKVM.Runtime.JNIEnv:GetLocalRefs=20 > ()(value:0x9c13008, ) > . . . . . . . . ENTER:=20 > System.Runtime.InteropServices.GCHandle:get_Target=20 > ()(value:0x9c1300c, ) > . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.Runtime.InteropServices.GCHandle:GetTarget (int)(162442008, ) > . . . . . . . . . . ENTER: (wrapper runtime-invoke)=20 > System.Object:runtime_invoke_void=20 > (object,intptr,intptr,intptr)([System.NullReferenceException:0 > x947a2a0],=20 > (nil), (nil), 0x800c50, ) > . . . . . . . . . . . ENTER: System.NullReferenceException:.ctor=20 > ()(this:0x947a2a0[System.NullReferenceException HelloWorldSWT.exe], ) > . . . . . . . . . . . . ENTER: Locale:GetText=20 > (string)([STRING:0x97425f0:A null value was found where an object=20 > instance was required.], ) > . . . . . . . . . . . . LEAVE: Locale:GetText=20 > (string)[STRING:0x97425f0:A null value was found where an object=20 > instance was required.] > . . . . . . . . . . . LEAVE: System.NullReferenceException:.ctor () > . . . . . . . . . . LEAVE: (wrapper runtime-invoke)=20 > System.Object:runtime_invoke_void=20 > (object,intptr,intptr,intptr)[OBJECT:(nil)] > EXCEPTION handling: NullReferenceException > . . . . . . . . . . ENTER: (wrapper runtime-invoke)=20 > System.Object:runtime_invoke_string=20 > (object,intptr,intptr,intptr)([System.NullReferenceException:0 > x947a2a0],=20 > (nil), (nil), 0x800d70, ) > . . . . . . . . . . . ENTER: System.Exception:ToString=20 > ()(this:0x947a2a0[System.NullReferenceException HelloWorldSWT.exe], ) > . . . . . . . . . . . . ENTER: System.Text.StringBuilder:.ctor=20 > (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe],=20 > [STRING:0x9b48f50:System.NullReferenceException], ) > . . . . . . . . . . . . . ENTER: System.Text.StringBuilder:.ctor=20 > (string,int,int,int)(this:0x9489810[System.Text.StringBuilder=20 > HelloWorldSWT.exe],=20 > [STRING:0x9b48f50:System.NullReferenceException], 0,=20 > 29, 29, ) > . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalAllocateStr (int)(29, ) > . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalAllocateStr (int)[STRING:0x9b48f00:] > . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string,int,int)([STRING:0x9b48f00:], 0,=20 > [STRING:0x9b48f50:System.NullReferenceException], 0, 29, ) > . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string,int,int) > . . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:.ctor=20 > (string,int,int,int) > . . . . . . . . . . . . LEAVE:=20 > System.Text.StringBuilder:.ctor (string) > . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append=20 > (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe],=20 > [STRING:0x9489858:: ], ) > . . . . . . . . . . . . . ENTER:=20 > System.Text.StringBuilder:InternalEnsureCapacity=20 > (int)(this:0x9489810[System.Text.StringBuilder=20 > HelloWorldSWT.exe], 31, ) > . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalAllocateStr (int)(58, ) > . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalAllocateStr (int)[STRING:0x9742390:] > . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string,int,int)([STRING:0x9742390:], 0,=20 > [STRING:0x9b48f00:System.NullReferenceException], 0, 29, ) > . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string,int,int) > . . . . . . . . . . . . . LEAVE:=20 > System.Text.StringBuilder:InternalEnsureCapacity (int) > . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string)([STRING:0x9742390:System.NullReferenceException],=20 > 29, [STRING:0x9489858:: ], ) > . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string) > . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append=20 > (string)[System.Text.StringBuilder:0x9489810] > . . . . . . . . . . . . ENTER: System.Exception:get_Message=20 > ()(this:0x947a2a0[System.NullReferenceException HelloWorldSWT.exe], ) > . . . . . . . . . . . . LEAVE: System.Exception:get_Message=20 > ()[STRING:0x9747b80:Object reference not set to an instance=20 > of an object] > . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append=20 > (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe],=20 > [STRING:0x9747b80:Object reference not set to an instance of=20 > an object], ) > . . . . . . . . . . . . . ENTER:=20 > System.Text.StringBuilder:InternalEnsureCapacity=20 > (int)(this:0x9489810[System.Text.StringBuilder=20 > HelloWorldSWT.exe], 83, ) > . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalAllocateStr (int)(116, ) > . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalAllocateStr (int)[STRING:0x90449c0:] > . . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string,int,int)([STRING:0x90449c0:], 0,=20 > [STRING:0x9742390:System.NullReferenceException: ], 0, 31, ) > . . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string,int,int) > . . . . . . . . . . . . . LEAVE:=20 > System.Text.StringBuilder:InternalEnsureCapacity (int) > . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string)([STRING:0x90449c0:System.NullReferenceExce > ption: ],=20 > 31, [STRING:0x9747b80:Object reference not set to an instance of an=20 > object], ) > . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string) > . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append=20 > (string)[System.Text.StringBuilder:0x9489810] > . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append=20 > (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe],=20 > [STRING:0x8d74f30:], ) > . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string)([STRING:0x90449c0:System.NullReferenceException:=20 > Object reference not set to an instance of an object], 83,=20 > [STRING:0x8d74f30:], ) > . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string) > . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append=20 > (string)[System.Text.StringBuilder:0x9489810] > . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.Environment:get_NewLine ()() > . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.Environment:get_NewLine ()[STRING:0x9bd9bf0: > ] > . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append=20 > (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe],=20 > [STRING:0x9bd9bf0: > ], ) > . . . . . . . . . . . . . ENTER: (wrapper managed-to-native)=20 > System.String:InternalStrcpy=20 > (string,int,string)([STRING:0x90449c0:System.NullReferenceException:=20 > Object reference not set to an instance of an object], 83,=20 > [STRING:0x9bd9bf0: > ], ) > . . . . . . . . . . . . . LEAVE: (wrapper managed-to-native)=20 > System.String:InternalStrcpy (string,int,string) > . . . . . . . . . . . . LEAVE: System.Text.StringBuilder:Append=20 > (string)[System.Text.StringBuilder:0x9489810] > . . . . . . . . . . . . ENTER: System.Text.StringBuilder:Append=20 > (string)(this:0x9489810[System.Text.StringBuilder HelloWorldSWT.exe],=20 > [STRING:0x97f0aa0:in (unmanaged) (wrapper managed-to-native)=20 > System.Runtime.InteropServices.GCHandle:GetTarget (int) > in <0x00004> (wrapper managed-to-native)=20 > 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 () > ], ) >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your=20 > judgement on > who ports your project to Linux PPC the best. Sponsored by IBM.=20 > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > Ikvm-developers mailing list > Ikv...@li... > https://lists.sourceforge.net/lists/listinfo/ikvm-developers >=20 |