Bugzilla – Bug 321413
Compiler crashes when explicitly using 2.0 libraries
Last modified: 2007-09-15 21:24:23 UTC
---- Reported by xumuk@ngs.ru 2006-06-22 03:34:17 MST ---- Compiler fails to compile program that used web references Description of Problem: I tried to compile my program using mono mcs compiler, during compilation it faults with SIGSEGV. Steps to reproduce the problem: 1. get attached files 2. try to compile them usin commandline 3. c:\Program Files\Mono-1.1.15\bin>mcs.bat -noconfig -r:"C:\Program Files\Mono-1.1.15\lib\mono\gac\System\2.0.0.0__b77a5c561934e089\System.dll" -r:"C:\Program files\Mono-1.1.15\lib\mono\gac\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" -r:"C:\Program files\Mono-1.1.15\lib\mono\gac\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" -r:"C:\Program Files\Mono-1.1.15\lib\mono\gac\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" -r:"C:\Program Files\Mono-1.1.15\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" D:\XuMiX\Workplace\ATEF\executors\plesknet\Main.cs D:\XuMiX\Workplace\ATEF\executors\plesknet\AssemblyInfo.cs "D:\XuMiX\Workplace\ATEF\executors\plesknet\Web References\Web\Reference.cs" Actual Results: c:\Program Files\Mono-1.1.15\bin>mcs.bat -noconfig -r:"C:\Program Files\Mono-1.1.15\lib\mono\gac\System\2.0.0.0__b77a5c5 61934e089\System.dll" -r:"C:\Program Files\Mono-1.1.15\lib\mono\gac\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dl l" -r:"C:\Program Files\Mono-1.1.15\lib\mono\gac\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" -r:"C:\Program Fil es\Mono-1.1.15\lib\mono\gac\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" -r:"C:\Program Files\ Mono-1.1.15\lib\mono\gac\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" D:\XuMiX\Workplace\ATEF\executors\plesknet \Main.cs D:\XuMiX\Workplace\ATEF\executors\plesknet\AssemblyInfo.cs "D:\XuMiX\Workplace\ATEF\executors\plesknet\Web Ref erences\Web\Reference.cs" ** (C:\PROGRA~1\Mono-1.1.15\lib\mono\1.0\mcs.exe:1188): WARNING **: The class System.Threading.SendOrPostCallback 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.Type) <0x194> in Mono.CSharp.MemberCache:AddMethods (System.Type) <0x37> in Mono.CSharp.MemberCache:.ctor (Mono.CSharp.IMemberContainer) <0x132> 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:LookupMemberCache (System.Type) <0xca> in Mono.CSharp.TypeContainer:get_BaseCache () <0x46> in Mono.CSharp.TypeContainer:FindBaseMemberWithSameName (string,bool) <0xf> in Mono.CSharp.FieldBase:CheckBase () <0x60> in Mono.CSharp.FieldMember:Define () <0x67> in Mono.CSharp.Field:Define () <0x1f> in MemberCoreArrayList:DefineContainerMembers () <0x64> in Mono.CSharp.TypeContainer:DefineContainerMembers (Mono.CSharp.TypeContainer/MemberCoreArrayList) <0x14> in Mono.CSharp.Class:DefineContainerMembers (Mono.CSharp.TypeContainer/MemberCoreArrayList) <0x37> in Mono.CSharp.TypeContainer:DoDefineMembers () <0x136> in Mono.CSharp.Class:DoDefineMembers () <0x3f> in Mono.CSharp.TypeContainer:DefineMembers () <0x4a> in Mono.CSharp.RootContext:PopulateTypes () <0xb9> in Mono.CSharp.Driver:MainDriver (string[]) <0x957> in Mono.CSharp.Driver:Main (string[]) <0x42> in (wrapper runtime-invoke) System.Object:runtime_invoke_int_string[] (object,intptr,intptr,intptr) <0xf027fa6> This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Expected Results: normal compile How often does this happen? Always Additional Information: the project attached ---- Additional Comments From xumuk@ngs.ru 2006-06-22 03:34:48 MST ---- Created an attachment (id=170012) project attached ---- Additional Comments From rharinath@novell.com 2006-06-22 04:03:32 MST ---- You are using 2.0 profile assemblies with the 1.0 compiler. ---- Additional Comments From xumuk@ngs.ru 2006-06-26 03:44:27 MST ---- is it possible not to SIGSEGV, but to print some pretty message like "You are using 2.0 profile assemblies with the 1.0 compiler. Use gmcs instead." ? ---- Additional Comments From miguel@ximian.com 2006-07-13 02:30:09 MST ---- I updated the comments. btw, you are not supposed to reference libraries in the GAC directly, we reserve the right to change the contents and the layout of the GAC as we please. ---- Additional Comments From rharinath@novell.com 2006-11-08 04:49:48 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO78286 *** Imported an attachment (id=170012) Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>windows 2003 server ent</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"