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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=80062 --- shadow/80062 2006-11-26 20:54:25.000000000 -0500 +++ shadow/80062.tmp.14924 2006-11-26 20:54:25.000000000 -0500 @@ -0,0 +1,200 @@ +Bug#: 80062 +Product: Mono: Compilers +Version: 1.2 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: C# +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: gmcs fails to find existing assembly while linking + +Hi, +when compiling the attached code with +gmcs -pkg:gtk-sharp-2.0 test.cs -out:test.exe +mono-1.2.1/mcs/class/Mono.Cairo/Mono.Cairo/*.cs + +without having Mono.Cairo 2.0 installed (but Mono.Cairo 1.0 which gtk# is +linked against) gmcs crashes with the following error. Installing +Mono.Cairo 2.0 works around this but even then nothing is linked against it. + +This is easily reproducible with mono 1.2.1 and earlier... and even happens +in the real world with f-spot CVS, as they're source-bundling Mono.Cairo there. + +Bye + +** (/usr/lib/mono/2.0/gmcs.exe:29491): WARNING **: The following assembly +referenced from +/usr/lib/mono/gac/gdk-sharp/2.10.0.0__35e10195dab3c99f/gdk-sharp.dll could +not be loaded: + Assembly: Mono.Cairo (assemblyref_index=2) + Version: 1.0.5000.0 + Public Key: 0738eb9f132ed756 +The assembly was not found in the Global Assembly Cache, a path listed in +the MONO_PATH environment variable, or in the location of the executing +assembly (/usr/lib/pkgconfig/../../lib/mono/gtk-sharp-2.0). + + +** (/usr/lib/mono/2.0/gmcs.exe:29491): WARNING **: Could not load file or +assembly 'Mono.Cairo, Version=1.0.5000.0, Culture=neutral, +PublicKeyToken=0738eb9f132ed756' or one of its dependencies. + +================================================================= +Got a SIGSEGV while executing native code. This usually indicates +a fatal error in the mono runtime or one of the native libraries +used by your application. +================================================================= + +Stacktrace: + + at (wrapper managed-to-native) +System.Reflection.MonoMethodInfo.get_method_info +(intptr,System.Reflection.MonoMethodInfo&) <0x00004> + at (wrapper managed-to-native) +System.Reflection.MonoMethodInfo.get_method_info +(intptr,System.Reflection.MonoMethodInfo&) <0xffffffff> + at System.Reflection.MonoMethod.get_Attributes () <0x00025> + at System.Reflection.MethodBase.get_IsVirtual () <0x0000c> + at Mono.CSharp.MemberCache.AddMethods +(System.Reflection.BindingFlags,System.Type) <0x001a4> + at Mono.CSharp.MemberCache.AddMethods (System.Type) <0x00013> + at Mono.CSharp.MemberCache..ctor (Mono.CSharp.IMemberContainer) <0x00164> + at Mono.CSharp.TypeHandle..ctor (System.Type) <0x0013f> + at Mono.CSharp.TypeHandle.GetTypeHandle (System.Type) <0x0004e> + at Mono.CSharp.TypeHandle.GetMemberCache (System.Type) <0x0000b> + at Mono.CSharp.TypeManager.MemberLookup_FindMembers +(System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,bool&) +<0x0022a> + at Mono.CSharp.TypeManager.RealMemberLookup +(System.Type,System.Type,System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,System.Collections.IList) +<0x00192> + at Mono.CSharp.TypeManager.MemberLookup +(System.Type,System.Type,System.Type,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,System.Collections.IList) +<0x0001f> + at Mono.CSharp.Expression.MemberLookup +(System.Type,System.Type,System.Type,string,System.Reflection.MemberTypes,System.Reflection.BindingFlags,Mono.CSharp.Location) +<0x00061> + at Mono.CSharp.Expression.MemberLookup +(System.Type,System.Type,System.Type,string,Mono.CSharp.Location) <0x0001d> + at Mono.CSharp.MemberAccess.DoResolve +(Mono.CSharp.EmitContext,Mono.CSharp.Expression) <0x002dc> + at Mono.CSharp.MemberAccess.DoResolve (Mono.CSharp.EmitContext) <0x0000f> + at Mono.CSharp.Expression.Resolve +(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x00142> + at Mono.CSharp.Invocation.DoResolve (Mono.CSharp.EmitContext) <0x000ba> + at Mono.CSharp.Expression.Resolve +(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x00142> + at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00012> + at Mono.CSharp.Assign.DoResolve (Mono.CSharp.EmitContext) <0x000c4> + at Mono.CSharp.Expression.Resolve +(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFlags) <0x00142> + at Mono.CSharp.Expression.Resolve (Mono.CSharp.EmitContext) <0x00012> + at Mono.CSharp.ExpressionStatement.ResolveStatement +(Mono.CSharp.EmitContext) <0x00016> + at Mono.CSharp.StatementExpression.Resolve (Mono.CSharp.EmitContext) +<0x0001f> + at Mono.CSharp.Block.Resolve (Mono.CSharp.EmitContext) <0x001ef> + at Mono.CSharp.EmitContext.ResolveTopBlock +(Mono.CSharp.EmitContext,Mono.CSharp.ToplevelBlock,Mono.CSharp.Parameters,Mono.CSharp.IMethodData,bool&) +<0x0018d> + at Mono.CSharp.EmitContext.EmitTopBlock +(Mono.CSharp.IMethodData,Mono.CSharp.ToplevelBlock) <0x00048> + at Mono.CSharp.MethodData.Emit (Mono.CSharp.DeclSpace) <0x00162> + at Mono.CSharp.Method.Emit () <0x00017> + at Mono.CSharp.TypeContainer.EmitType () <0x002f9> + at Mono.CSharp.RootContext.EmitCode () <0x00206> + at Mono.CSharp.Driver.MainDriver (string[]) <0x00a55> + at Mono.CSharp.Driver.Main (string[]) <0x00055> + at (wrapper runtime-invoke) System.Object.runtime_invoke_int_string[] +(object,intptr,intptr,intptr) <0xffffffff> + +Native stacktrace: + + /usr/bin/mono [0x818a14f] + /usr/bin/mono [0x816c3cf] + [0xb7f91440] + [0xb6fd9921] + [0xb6dd5266] + [0xb6dd521d] + [0xb6dd4c1d] + [0xb6dd4a24] + [0xb6dd464d] + [0xb6dd44b8] + [0xb6dd4337] + [0xb6dd4264] + [0xb6ddfa6b] + [0xb6ddf0fb] + [0xb6ddef48] + [0xb6ddea1a] + [0xb6dcfb96] + [0xb6dcf6ad] + [0xb6dcf3b8] + [0xb6ddddb3] + [0xb6da4c5b] + [0xb6ddddb3] + [0xb6dddbf3] + [0xb6dd0395] + [0xb6ddddb3] + [0xb6dddbf3] + [0xb6dd024f] + [0xb6da23d0] + [0xb6dbba10] + [0xb6dbb416] + [0xb6dc1761] + [0xb6dc0feb] + [0xb6dc0e50] + [0xb6db7172] + [0xb6db3f77] + [0xb7137c76] + [0xb71361a6] + [0xb79a9074] + /usr/bin/mono [0x816c29a] + /usr/bin/mono(mono_runtime_invoke+0x27) [0x80ad7bf] + /usr/bin/mono(mono_runtime_exec_main+0x109) [0x80b1eca] + /usr/bin/mono(mono_runtime_run_main+0x27e) [0x80b21b1] + /usr/bin/mono(mono_jit_exec+0xbd) [0x80588f7] + /usr/bin/mono [0x80589d4] + /usr/bin/mono(mono_main+0x161b) [0x805a18d] + /usr/bin/mono [0x8057aa6] + /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc) [0xb7d61ebc] + /usr/bin/mono [0x8057a01] + +Debug info from gdb: + +(no debugging symbols found) +Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". +[Thread debugging using libthread_db enabled] +[New Thread -1210795792 (LWP 29491)] +[New Thread -1220260976 (LWP 29493)] +[New Thread -1220244592 (LWP 29492)] +0xb7f91410 in ?? () + 3 Thread -1220244592 (LWP 29492) 0xb7f91410 in ?? () + 2 Thread -1220260976 (LWP 29493) 0xb7f91410 in ?? () + 1 Thread -1210795792 (LWP 29491) 0xb7f91410 in ?? () + +Thread 3 (Thread -1220244592 (LWP 29492)): +#0 0xb7f91410 in ?? () +#1 0xb74483a8 in ?? () +#2 0x08223360 in ?? () +#3 0x00000000 in ?? () + +Thread 2 (Thread -1220260976 (LWP 29493)): +#0 0xb7f91410 in ?? () +#1 0xb7444188 in ?? () +#2 0x00000003 in ?? () +#3 0x00000000 in ?? () + +Thread 1 (Thread -1210795792 (LWP 29491)): +#0 0xb7f91410 in ?? () +#1 0xbffb1158 in ?? () +#2 0x00000000 in ?? () +#0 0xb7f91410 in ?? () + +Aborted (core dumped) _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
