[Mono-bugs] mcs segvs when compiling with a refernce to IronPython

Mathew Yeates myeates at jpl.nasa.gov
Sat Mar 25 23:07:07 EST 2006


Linux  (Redhat?)   2.6.12-1.1398_FC4smp #1 SMP x86
mono 1.1.13.4_1-installer.bin


--------
using IronPython.Hosting;
.
.
 [WebMethod(Description="Say Hello!")]
                public string HelloWorld(int i)
                {
                        PythonEngine pe = new PythonEngine(); // this 
line causes mcs to SEGV

----------------------
mcs myfile.cs -r:System.Web.Services /t:library 
-r:/home/myeates/IronPython.dll produces:


** (/home/myeates/mono-1.1.13.4/lib/mono/1.0/mcs.exe:32706): WARNING **: 
The class System.Collections.Generic.IDictionary`2 could not be loaded, 
used in mscorlib, Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089

=================================================================
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:

in (wrapper managed-to-native) 
System.Reflection.MonoMethodInfo:get_method_info
(intptr,System.Reflection.MonoMethodInfo&) <0x4>
in (wrapper managed-to-native) 
System.Reflection.MonoMethodInfo:get_method_info
(intptr,System.Reflection.MonoMethodInfo&) <0xffffffe5>
in System.Reflection.MonoMethod:get_Attributes () <0x25>
in System.Reflection.MethodBase:get_IsVirtual () <0xc>
in Mono.CSharp.MemberCache:AddMethods 
(System.Reflection.BindingFlags,System.Typ
e) <0x188>
in Mono.CSharp.MemberCache:AddMethods (System.Type) <0x13>
in Mono.CSharp.MemberCache:.ctor (Mono.CSharp.IMemberContainer) <0x149>
in Mono.CSharp.TypeHandle:.ctor (System.Type) <0xbc>
in Mono.CSharp.TypeHandle:GetTypeHandle (System.Type) <0x4e>
in Mono.CSharp.TypeHandle:GetMemberCache (System.Type) <0xb>
in Mono.CSharp.TypeManager:MemberLookup_FindMembers 
(System.Type,System.Reflecti
on.MemberTypes,System.Reflection.BindingFlags,string,bool&) <0x14e>
in Mono.CSharp.TypeManager:RealMemberLookup 
(System.Type,System.Type,System.Type
,System.Reflection.MemberTypes,System.Reflection.BindingFlags,string,System.Coll
ections.IList) <0x1ad>
in Mono.CSharp.TypeManager:MemberLookup 
(System.Type,System.Type,System.Type,Sys
tem.Reflection.MemberTypes,System.Reflection.BindingFlags,string,System.Collecti
ons.IList) <0x1f>
in Mono.CSharp.Expression:MemberLookup 
(Mono.CSharp.EmitContext,System.Type,Syst
em.Type,System.Type,string,System.Reflection.MemberTypes,System.Reflection.Bindi
ngFlags,Mono.CSharp.Location) <0x38>
in Mono.CSharp.Expression:MemberLookupFinal 
(Mono.CSharp.EmitContext,System.Type
,System.Type,string,System.Reflection.MemberTypes,System.Reflection.BindingFlags
,Mono.CSharp.Location) <0x2f>
in Mono.CSharp.New:DoResolve (Mono.CSharp.EmitContext) <0x301>
in Mono.CSharp.Expression:Resolve 
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFl
ags) <0xe3>
in Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext) <0x12>
in Mono.CSharp.Assign:DoResolve (Mono.CSharp.EmitContext) <0xd0>
in Mono.CSharp.Expression:Resolve 
(Mono.CSharp.EmitContext,Mono.CSharp.ResolveFl
ags) <0xe3>
in Mono.CSharp.Expression:Resolve (Mono.CSharp.EmitContext) <0x12>
in Mono.CSharp.ExpressionStatement:ResolveStatement 
(Mono.CSharp.EmitContext) <0
x13>
in Mono.CSharp.StatementExpression:Resolve (Mono.CSharp.EmitContext) <0x1f>
in Mono.CSharp.Block:Resolve (Mono.CSharp.EmitContext) <0x1d9>
in Mono.CSharp.EmitContext:ResolveTopBlock 
(Mono.CSharp.EmitContext,Mono.CSharp.
ToplevelBlock,Mono.CSharp.Parameters,Mono.CSharp.IMethodData,bool&) <0x122>
in Mono.CSharp.EmitContext:EmitTopBlock 
(Mono.CSharp.IMethodData,Mono.CSharp.Top
levelBlock) <0x4b>
in Mono.CSharp.MethodData:Emit 
(Mono.CSharp.TypeContainer,Mono.CSharp.Attributab
le) <0x1ab>
in Mono.CSharp.Method:Emit () <0x30>
in Mono.CSharp.TypeContainer:EmitType () <0x64d>
in Mono.CSharp.RootContext:EmitCode () <0x226>
in Mono.CSharp.Driver:MainDriver (string[]) <0xae4>
in Mono.CSharp.Driver:Main (string[]) <0x41>
in (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[] 
(object,in
tptr,intptr,intptr) <0x78f293f>

Native stacktrace:

        
/home/myeates/mono-1.1.13.4/bin/mono(mono_handle_native_sigsegv+0xbb) [0
x814ee2b]
        /home/myeates/mono-1.1.13.4/bin/mono [0x813b2cf]
        [0xf7a440]
        /home/myeates/mono-1.1.13.4/bin/mono [0x8096722]
        /home/myeates/mono-1.1.13.4/bin/mono [0x8096ae0]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_type_create_from_typespec_full
+0x101) [0x8098ce1]
        /home/myeates/mono-1.1.13.4/bin/mono [0x808fce9]
        /home/myeates/mono-1.1.13.4/bin/mono [0x8090a71]
        /home/myeates/mono-1.1.13.4/bin/mono(mono_class_get_full+0x25) 
[0x8090af
5]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_metadata_interfaces_from_typed
ef_full+0x10a) [0x809768a]
        /home/myeates/mono-1.1.13.4/bin/mono [0x808f168]
        /home/myeates/mono-1.1.13.4/bin/mono [0x8090a7f]
        /home/myeates/mono-1.1.13.4/bin/mono(mono_class_get+0x20) 
[0x8090ac0]
        /home/myeates/mono-1.1.13.4/bin/mono [0x8096a5c]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_metadata_parse_type_full+0xf6)
 [0x8095c66]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_metadata_parse_method_signatur
e_full+0x189) [0x8096109]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_method_signature_full+0xad) [0
x80bf42d]
        /home/myeates/mono-1.1.13.4/bin/mono(mono_method_signature+0x21) 
[0x80bf
371]
        /home/myeates/mono-1.1.13.4/bin/mono [0x80c37d9]
        [0xad879e]
        [0xad875e]
        [0xad8715]
        [0xad80f1]
        [0xad7f14]
        [0xad7e52]
        [0xad7cf5]
        [0xad7bf7]
        [0xad7ab4]
        [0x68c56f]
        [0x68bede]
        [0x68bd10]
        [0x68bc11]
        [0x7c9498]
        [0x7c8ea2]
        [0x68b874]
        [0x68b723]
        [0x69882c]
        [0x6987f0]
        [0x698302]
        [0x697c43]
        [0x697aac]
        [0x7c44dc]
        [0x7c4109]
        [0xae2a0e]
        [0xae1f4f]
        [0x84f1a5]
        [0x84dbe2]
        [0x84886c]
        /home/myeates/mono-1.1.13.4/bin/mono [0x813b180]
        /home/myeates/mono-1.1.13.4/bin/mono(mono_runtime_invoke+0x27) 
[0x80d63f
7]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_runtime_exec_main+0xb1) [0x80d
7561]
        
/home/myeates/mono-1.1.13.4/bin/mono(mono_runtime_run_main+0x171) [0x80d
7131]
        /home/myeates/mono-1.1.13.4/bin/mono(strftime+0x1b6a) [0x805d002]
        /home/myeates/mono-1.1.13.4/bin/mono(mono_main+0x841) [0x805d9d1]
        /home/myeates/mono-1.1.13.4/bin/mono(__fxstat64+0x133) [0x805c3cb]
        /lib/libc.so.6(__libc_start_main+0xc6) [0x8dade6]
        /home/myeates/mono-1.1.13.4/bin/mono(sinh+0x49) [0x805c321]







More information about the mono-bugs mailing list